Complete user task button in our application
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2016 02:49 AM
We need a complete user task button in our own application. And clicking on that, the user task completion should happen from our spring controller or directly from the listener. How can this be achieved?
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2016 05:07 AM
you could use this method from TaskService:
<code>
/**
* Called when the task is successfully executed,
* and the required task parameters are given by the end-user.
* @param taskId the id of the task to complete, cannot be null.
* @param variables task parameters. May be null or empty.
* @throws ActivitiObjectNotFoundException when no task exists with the given id.
*/
void complete(String taskId, Map<String, Object> variables);
</code>
<code>
/**
* Called when the task is successfully executed,
* and the required task parameters are given by the end-user.
* @param taskId the id of the task to complete, cannot be null.
* @param variables task parameters. May be null or empty.
* @throws ActivitiObjectNotFoundException when no task exists with the given id.
*/
void complete(String taskId, Map<String, Object> variables);
</code>
