AnsweredAssumed Answered

Create a customized user interface to run and render the Activiti Process Templates

Question asked by manchandap on Jul 30, 2014
Latest reply on Jul 30, 2014 by frederikheremans1
Apologies for an open ended question. We are planning to use Activiti as workflow engine in our existing web application. So, we would be embedding the relevant Activiti Engine and Activiti REST APIs (and dependent JARs in our web app). Also, as part of that we need to develop a UI that would run/render the Process definition templates deployed in Activiti Engine. For Example, we would require a User interface that would render a human-interaction form to a user whom a task is assigned.

We cannot use the Vaadin based UI which is part of the Activiti Explorer. Our current user interface is based on Struts. So, my query is that do we have any APIs that can help me to render the UI components (text boxes, buttons, drop downs) that are defined in a process definition.
To clarify, let me take a snippet from a sample <blockcode>VacationRequest.bpmn20</blockcode> process definition
<blockcode>
    <startEvent id="request" activiti:initiator="employeeName">
      <extensionElements>
        <activiti:formProperty id="numberOfDays" name="Number of days" type="long" value="1" required="true"/>
        <activiti:formProperty id="startDate" name="First day of holiday (dd-MM-yyy)" datePattern="dd-MM-yyyy hh:mm" type="date" required="true" />
        <activiti:formProperty id="vacationMotivation" name="Motivation" type="string" />
      </extensionElements>
    </startEvent>
</blockcode>

This piece of process definition would render a HTML Form for an employee that would be used to fill in the vacation request. Activiti-Explorer provides Vaadin based UI Framework to manipulate these form definitions. But we are looking to do something similar in a Struts Based UI. So, are there any Activiti APIs that can be used to manipulate the process definition and create equivalent HTML tags. Any sort of documentation around that would be of great help.

Outcomes