Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Genzer/0adb6c04442460d99fe66dad7034c50d to your computer and use it in GitHub Desktop.
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
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