cancel
Showing results for 
Search instead for 
Did you mean: 

Completion of UserTask Based on different Users

chandanmb1
Champ on-the-rise
Champ on-the-rise
Hello,

My requirement is i have 10 different tasks assigned 10 different users in my organisation.
I tried simple workflow assigning 3 different users gonzo,kermit,fozzie.
When i logged in as gonzo, i am getting an option as pending task and if he clicks on Complete Task, it will move to next stage.

Similarly
When i start the process ,

1. i have custom web application, How will i show  a button as Execute/Complete for a User assigned to him. Users are not stored in activiti      
     tables.Users are stored in our Oracle database.

2. What command is to be issued to execute the particular class to be executed and make it complete.

Please guide!!
1 REPLY 1

hari
Star Contributor
Star Contributor
Hi,

1. You need to get all the tasks assigned to a user when he logs into your application.  If you are using the community version of Activiti then the users need not be in Activiti DB. They can reside in your database.

2. You can use either the REST API or the JAVA API to complete the task.
Using JAVA API: processEngineInstace.getTaskService().complete(taskID);
Using REST API: Refer to this http://activiti.org/userguide/index.html#_task_actions