Created
August 18, 2016 03:53
-
-
Save Genzer/0adb6c04442460d99fe66dad7034c50d to your computer and use it in GitHub Desktop.
Use this script to list all running ICase (Axon.ivy) in a particular IProcessModelVersion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use axonivysystemdatabase; | |
-- state = 1 means RUNNING | |
declare @pmv_id int | |
set @pmv_id = 123456 -- set your PMV's Id here | |
select cx.*, te.processmodelversionid from | |
(select c.*, ts.taskelementid as 'taskelementid' from iwa_case c left join iwa_taskstart ts on c.taskstartid = ts.taskstartid) cx | |
left join iwa_taskelement te on cx.taskelementid = te.taskelementid | |
where state = 1 and processmodelversionid = @pmv_id |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment