cancel
Showing results for 
Search instead for 
Did you mean: 

How to insert comment in task using js??

raarm
Champ in-the-making
Champ in-the-making
Hi everyone,

How to insert comment in task…..I have this js:

var task = workflow.getTaskById(id);
task.endTask(args.t);

I need to insert comment before endTask!!


Thanks
1 REPLY 1

louise
Champ in-the-making
Champ in-the-making
taskId="jbpm$23"

var task = workflow.getTaskById(args.taskId);
task.endTask(task.properties.transitionId);