Designing and running the "Request for absence" process model

In this tutorial, we will design a simple process model which presents a “Request for abscence” process. Then we deploy and execute it.

Designing your own organization

  1. Before designing your process models, you should define the groups and individual users.
  2. Start your tomcat by executing TOMCAT_HOME\bin\startup.bat (Windows) or TOMCAT_HOME\bin\startup.bat (Linux).
  3. Open your browser and go to http://localhost:8080/flowable-ui/.
  4. Login as admin with admin/test, then select IDM App→Users.
  5. Click on Create user to add a new user to your organization by giving Id: david, Password: david, First name: David, Last name: David, Email: david@example.com. Click Save.
  6. By the same way, add the user diana.

  7. Select IDM App→Groups.
  8. Click on Create group to add a new group to your organization and enter Id: employee, Name: Employee. Click Save.
  9. By the same way, add the group Director.

  10. Select the group Employee, then Click on the + add user sign to add David to the group, then click on the name after search it.
  11. By the same way, add the user diana in the group Director.

  12. Select IDM App→Privileges.
  13. Select Access the workflow application → Groups
  14. Click on Add a group, then add Director group by search it and select it.
  15. By the same way, add the groop Employee.

  16. Let begin designing the Request for absence process model!

Designing a process model

  1. In Flowable (http://localhost:8080/flowable-ui/), select Modeler App→Process→Create Process.
  2. Enter new model Model Name: Request for absence, Model Key: request_for_absence. Click Create new model.
  3. Design a process model by drag and drop model elements, you should have something similar to this picture:

  4. On the start event, specify the following properties:
    1. Initiator: initiator
    2. Form reference→New form:
      1. Form name: Initial form
      2. Form key: initial_form
      3. Then click on Create new form.
      4. Drag and drop the form components:
        1. Date then click on the edic icon after hover the component

          1. lable: Absense date, Override id?:checked,Id: dateToAbsense
          2. Then click Close

        2. In the similare way add other Text:
          1. lable: Reason

  5. On the Director decision activity, specify the following properties:
    1. Assignment→Assignment→Candidate groups: director
    2. Form reference→New form:
      1. Form name: Initial form
      2. Form key: initial_form
      3. Then click on Create new form.
    3. Drag and drop the form components:
      1. +People then click on the edit icon after hover on the component:
        1. lable: Employee, Override id?:checked, Id: initiator
      2. In the similare way add Date, Text, and Checkbox
        1. lable: Absense date, Override id?:checked,Id: dateToAbsense
        2. lable: Reason
        3. lable: Approval

  6. On the sequence flow from Director decision to accept, specify the property Flow condition: ${approval == 'true'}
  7. On the sequence flow from Director decision to reject, specify the property Flow condition: ${approval == 'false'}
  8. On the accept activity, specify the following properties:
    1. Assignments→Assignment: Assigned to process initiator then click on Save - Documentation: Your absence request on ${dateToAbsense} is accepted. - On the reject activity, specify the following properties: - Assignments→Assignment: Assigned to process initiator then click on Save
    2. Documentation: Your absence request on ${dateToAbsense} is rejected.
  9. Click on Save the model icon, then click on Save and close editor.

Deploy a process model

  1. In the dashboard (http://localhost:8080/flowable-ui), in Modeler APP→Apps, click Create App with App definition name: Request absance, App definition key: request_absance.
  2. Now click on Edit included models then select your Request for absence process model, then click Close.
  3. Go to Save icon and check on Publish?, and click on Save.
  4. Now your process model is ready to be executed! Next section will show you how to execute such process model.
  5. Note that if you want to modify your process model, make sure to re-publish your process model by doing the same steps.

Executing a process model

  1. Logout and login as employee with david/david, then select Request absance→Processes→ + Start a process.
  2. Select your Request for absence process model, then click on Start process.
  3. Fill the information when and why David will be absent, then click Start process.


  4. Go to Processes→Select your running process → Show diagram to see the status of your executing process.


    As you can see, now the current task is Director decision which needed to be handled by a director.
  5. Logout and login as director with diana/diana, then select Request absance→Tasks. In case no tasks in the list you can check the filter and change the ASSIGNMENT to Tasks zhere I am one of the candidates.
  6. Select the process instance, and Click the Claim button to handle the task. Decide if you want to approve this absence request by checking Approval, then click the Complete task button.


  7. Logout and login as employee with david/david, then go to Request absance→Processes → Select you process → Show diagram to see the status of your executing process.


  8. Select Tasks→Inbox to see the result of your absence request, then click on Complete task button to end this process.


Exercices

  1. Remove the form property dateToAbsense and replace by two form properties absenseFrom and absenseTo. Execute the process again.
  2. Re-create the process model with the use of gateway:


    Execute the process again.
teaching_assistant/workflow/flowable_design_workflow.txt · Last modified: 2025/11/20 16:32 by Ali
Back to top
CC Attribution-Share Alike 4.0 International
chimeric.de = chi`s home Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0