How to get a pending activity def ID of a given process id

Confluence User - 23 Jul, 2020

Is there a way to get a pending activity def id or activity id for a given process not the current proesses in java bean shell or hash variable (JOGET DX)

Knwoing that #process.activityInst.ACTIVITY_DEF_ID.name# is not working

beanshell;activity;process

3


24 Jul, 2020
confluenceUser
confluenceUser

Hi, do you mean activity definition ID or activity instance ID? You can try to use #assignment.activityId# or #assignment.activityDefId# in Hash Variable#WorkflowAssignmentHashVariable

24 Jul, 2020
confluenceUser
confluenceUser

This will give the activityDefId of current Process
I want to get the activityDefId of given process id stored in a variable
Can I pass a processID to #assignment.activityDefID#

#assignment.activityDefID{variable.fk_processID}# ???
fk_processID have a processID of another process

27 Jul, 2020
confluenceUser
confluenceUser

So you mean you would like to retrieve the pending activities for a specific running process instance? You could use the JSON API#web/json/monitoring/activity/list, or perhaps its equivalent in the Java API WorkflowManager#getActivityList using BeanShell.

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print