AnsweredAssumed Answered

Integrating activiti explorer within spring mvc web application

Question asked by shivnarayanvarma on Apr 1, 2014
My requirement :

1. A background job is polling database , message channels to read new messages and create new invoice approval workflow task using

runtimeService.startProcessInstanceByKey("Invoice_Approval_Process", invoice.getId().toString(), vars);

2. User from local database will login through custom web application screen.

2. User will be authenticated against local user database.

3. User will shown list of all the Invoice review Task shown to him using :

taskService.createTaskQuery().taskAssignee(username).list();

So here in user welcome screen he will see list of all the task:

List of all Task                 Expected Action

Task 1                              Start Task Action link
Task 2                              Start Task Action link
Task 3                              Start Task Action link
Task 4                              Start Task Action link


Task n                              Start Task Action link. ( what should be URL for this hyperlink ? )

4. So now when user will click through "Start Task Action link" , He should be able to see next workflow stage assigned to user ( which may be approve the task or enter some additional info etc)

5. Now my problem is how to link this task list with activiti controller? so that when user click on task link he should be able to see next workflow stage.  what should be URL for this hyperlink "Start Task Action link"


Please help.

Outcomes