AnsweredAssumed Answered

Accessing the active workflow instance

Question asked by karaman on Sep 14, 2018

I am developing custom advanced workflows. I need to get the active workflow instance in a workflow listener (task script). I have used the code below that gets a list of the active workflow instances. But how can I get the specific instance for the current task?

Many thanks.

 

var workflowDef = workflow.getDefinition("activiti$" + task.processDefinitionId);
var activeinstanceslist=workflowDef .getActiveInstances();

Outcomes