AnsweredAssumed Answered

Integrating activiti explorer within spring mvc web application

Question asked by shivnarayanvarma on Mar 28, 2014
Latest reply on Apr 1, 2014 by jbarrez
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 :

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">
         <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" />
      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