Show Menu
TOPICS×

Create Re-Usable AEM Forms Workflow Models

Starting with AEM Forms 6.5 release, we can now create workflow models which are not tied to a specific Adaptive Form. With this capability, you can now create one workflow model that can be invoked on different adaptive form submissions. With this capability, you can have a generic workflow to handle all adaptive form submissions for review and approval.
To design such a workflow, please perform the following steps
  1. Login to AEM
  2. Point your browser to workflow model
  3. Click Create | Create Model to Add Workflow Model
  4. Provide the appropriate Name and Title to the workflow model and then click on Done
  5. Open the newly created model in edit mode
  6. Drag and drop Assign Task component on to your workflow model
  7. Open the Assign Task component's configuration properties
  8. Tab to the Forms and Documents tab
  9. Select the Type - Adaptive Form or Read-Only Adaptive Form.
There are 3 ways by which the form path can be specified
  1. Available at an absolute path - This means the workflow will be tightly coupled with adaptive form. This is not what we want here
  2. Submitted to the workflow - This means when the adaptive form is submitted, the workflow engine will extract the name of the form from the submitted data. This is the option that needs to be selected
  3. Available at a path in a variable- This means the adaptive form will be picked up from the workflow variable The following screenshot shows you the correct option that you need to choose for de-coupling workflow from adaptive form