Simple Paid Time Off Request Workflow

In this article, we look at a simple workflow used for requesting Paid Time Off. The business requirements are as follows:

  • User A requests time off by filling in an adaptive form.
  • The form is routed to AEM admin user (In real life it is routed to the submitter’s manager)
  • Admin opens the form. Admin should not be able to edit any information filled by the submitter.
  • Approver section should be visible to the approver(In this case it is the AEM admin user).

To accomplish the above requirement, we use a hidden field called initialstep in the form and its default value is set to Yes.When the form is submitted, the first step in the workflow sets the value of initialstep to No. The form has business rules to hide and show the appropriate sections based on the initialstep value.

Configure Form to Trigger AEM Workflow

Workflow walkthorugh

Submitter’s view of the Time Off Request form

initialstep

Approver view of the form

approverview

In the approver view, the approver is not able to edit the submitted data. There is also a new section meant for Approvers only.

To test this workflow on your system, please follow the steps mentioned below:

On this page