<div class="gmail_quote"><br>Hi all<br><br>I am creating a workflow(integrated into a Java web application) for a leave application approval. The workflow is as follows:<br><br>Leave request is raised for an employee.<br><br>

Case 1: If employee&#39;s role is not team lead.<br>
The request is sent to employee&#39;s team lead.<br>If team lead rejects, workflow ends.<br>If team lead approves, request is forwarded to manager.<br><br>Case 2: If employee&#39;s role is team lead.<br>The request is directly sent to Manager.<br>


<br>Workflow ends when manager approves/rejects the application. At the time of approval/rejection the user needs to enter a comment.<br><br>I need to generate web-form for user input. The options can be dynamic and should be defined in workflow itself. How can I achieve this? What is the right way to manage different directions of a workflow based on different roles?<br>


<br>Any thoughts/suggestions are welcome. It will be helpful if someone can direct me to example/sample code to achieve this.<br><font color="#888888"><br><br clear="all">--<br>Regards<br>Aman<br><a href="http://www.IntelliGrape.com" target="_blank">http://www.IntelliGrape.com</a><br>



</font></div><br>