AnsweredAssumed Answered

Activiti 6 how to get all activity(will be executed) by process instance

Question asked by einsdan on Jul 10, 2017
Latest reply on Apr 24, 2019 by nnvnaveen

Map<String, Object> variables = new HashMap<String, Object>();

variables.put("flag", 1);

runtimeService.startProcessInstanceByKey(processDefinitionKey, variables);

// how to get all the list of tasks to be executed here

// if flag is 1, I will get task list(task1, task2, task4)

// if flag is 0, I will get task list(task1, task3)