My requirement :
1. A background job is polling database , message channels to read new invoices and create new invoice approval workflow task using
runtimeService.startProcessInstanceByKey("Invoice_Approval_Process", invoice.getId().toString(), vars);
1. User will login through custom web application screen.
2. User will be authenticated.
3. User will shown list of all the Invoice review Task shown to him using :
taskService.createTaskQuery().taskAssignee(username).list();
4. Now question is I would like to show "review", "approve", "adjust" buttons defined in bpmn diagram to user and clicking approve should take it to next level of UserTask.
a. One of the way of doing it can be creating your custom jsp form with approve, review buttons and on the action it complete the task using java controller.
b. Another possibility : can I render activiti form to user (defined in bpmn diagram). and let activiti handle the process.
e.g. activii form:
<userTask id="task">
<extensionElements>
<activiti:formProperty id="room" />
<activiti:formProperty id="duration" type="long"/>
<activiti:formProperty id="speaker" variable="SpeakerName" writable="false" />
<activiti:formProperty id="street" expression="#{address.street}" required="true" />
</extensionElements>
</userTask>
How this can be done? Question is how to integrate with activiti form page for process from spring web page.
Thanks for your help in advance.
Regards, Shiv