The way the process start is a list of objects and each object has a single process and the flow starts with a service task.
Map variableMap = new HashMap();
variableMap.put("ids",idList);
variableMap.put("priority",25);
ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("imageProcess", variableMap);
How can i use this priority to set the priority of the task, As my first step is a service task and the second user task is based on the priority
Assuming that you are talking about the priority attribute on a User Task, you can set the priority using expression. An example below..
<userTask id="user-task" activiti:assignee="assignee" activitiriority="${priority}">
</userTask>
You can also do this programmatically using listeners such as event listener, task listener etc upon task creation
Ciju
Hi @cjose
How to do it programmatically using listeners such as event listener, task listener etc upon task creation
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.