what is the difference "complete a task" VS "resolve a task"?

1,930 views
Skip to first unread message

lan...@gmail.com

unread,
Dec 8, 2013, 5:30:13 AM12/8/13
to camunda-...@googlegroups.com
hi all,
i have a queries as below :
1. the difference between "complete a task" VS "resolve a task".
2. how is the "resolve a task" behave? when i resolve a task, it will not go to next task. Also the original assignee of the task will be empty. why?
4. how to set local variable into the task when complete a task? this to keep track every task remark.

Roman Smirnov

unread,
Dec 9, 2013, 7:59:59 AM12/9/13
to camunda-...@googlegroups.com
Hi,

in the task lifecycle provided in our user guide you can see the difference between "complete a task" and "resolve a task".

  • "resolve a task": marks that the assignee is done with the task delegated to her and that it can be sent back to the owner. Can only be executed when the task has been delegated. The assignee will be set to the owner, who performed the delegation before.
  • "complete a task": marks a task as done and continues process execution.
If you "complete" a task then you can set local variables via the Java API as following:


TaskService taskService = ...;
Map<String, Object> taskVariables = new HashMap<String, Object>();
taskVariables
.put(...);

taskService
.completeTask("aTaskId", taskVariables);


and you can find the corresponding REST API method here.

If you "resolve" a task then you kann set local variables via the Java API as following:


TaskService taskService = ...;
Map<String, Object> taskVariables = new HashMap<String, Object>();
taskVariables
.put(...);

taskService
.resolveTask("aTaskId", taskVariables);


and you can find the corresponding REST API method here.

I hope that helps you!?

Cheers,
Roman

lim chee hong

unread,
Dec 11, 2013, 12:33:44 AM12/11/13
to camunda-...@googlegroups.com
Hi Roman,
Thanks for your code sharing. currently my application is using REST API to complete a task. my problem is which REST API able to set variable to task. if using /task/taskId/complete and set the variable in the post request, it is actually set the process variable instead of task variable. Please advice. thanks.

Roman Smirnov

unread,
Dec 11, 2013, 7:53:57 AM12/11/13
to camunda-...@googlegroups.com
Hi,

I posted the answer in your other thread:


Cheers,
Roman
Reply all
Reply to author
Forward
0 new messages