In this article, we will look at a simple workflow used for requesting Paid Time Off. The business requirements are as follows:
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
Submitter’s view of the Time Off Request form
Approver view of the form
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: