cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to have sub forms in Activiti workflow?

vignesh1
Champ in-the-making
Champ in-the-making
Hi,

I am new to Activiti, and I have developed a simple workflow in Kickstart with 2 activities, one for request submission and another for approval. I want to know whether we have options for adding sub-forms i.e. the data entered in the request form should be shown in approval form with readonly option and the approver can just approve/reject the request by viewing the submitted detail.

Any help in this regard would be highly appreciated.

Thanks,
Vignesh
4 REPLIES 4

frederikherema1
Star Contributor
Star Contributor
When you use the built-in form-rendering, you can just use expressions to show the values filled in in the first form in HTML (eg: vacation request, approve.form):

<h1>Vacation Approval</h1>
<p>
  ${employeeName} would like to take ${numberOfDays} day(s) of vacation.
</p>
<p>
  Motivation: ${vacationMotivation}
</p>
<p>
  Do you approve this?
  <select name="vacationApproved">
    <option value="true">Yes</option>
    <option value="false">No</option>
   </select>
   <input type="hidden" name="vacationApproved_type" value="Boolean" />
</p>

When using external rendering and form-properties, you can add read-only form-properties:

<activiti:formProperty id="speaker" variable="SpeakerName" writable="false" />

vignesh1
Champ in-the-making
Champ in-the-making
Hi,
Thanks a lot for the reply, It worked for me and Im able to get the values using the expressions.

I would like to know how to add the drop downs in a form using Kick-start, because when i tried adding the options I can see only text/number/date options for the form elements. Kindly help me in this regard.

Thanks,
Vignesh

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
this is currently not supported yet vby kickstart afaik… sorry.

vignesh1
Champ in-the-making
Champ in-the-making
Hi Ronald,

Thanks for the reply.
Could you pls let me know whether anyother web-app tool from Activiti support form rendering with Drop downs apart from Kick-start?

Thanks,
Vignesh