Integrate AEM Adaptive Form with AEM Workflow: Streamlining Business Processes
The Invoke an AEM Workflow Submit Action associates an Adaptive Form with an AEM Workflow. When a form is submitted, the associated workflow starts automatically on the Author instance. You can save the data files, attachments, and Document of Record to the payload location of the workflow or to a variable. If the workflow is marked for external data storage and configured for an external data storage, then only the variable option is available. You can select from the list of variables available for the workflow model. If the workflow is marked for external data storage at a later stage and not at the time of workflow creation, then ensure that the required variable configurations are in place.
AEM as a Cloud Service offers various out of the box submit actions for handling form submissions. You can learn more about these options in the Adaptive Form Submit Action article.
Advantages
Some of the advantages of integrating AEM workflow with Adaptive Forms are:
- AEM Workflow integration allows for the automation of complex business processes involving form submissions.
- AEM Workflow supports conditional logic, thus allowing dynamic decisions based on form data or external factors.
- AEM Workflow routes tasks based on predefined rules and conditions, ensuring tasks are assigned to the right individuals or groups.
Integrate AEM Workflow with Adaptive Forms :headding-anchor:steps-to-integrate-workflow-with-af
To set up automated process with AEM Workflow for an Adaptive Form, perform the following steps:
-
Open the Content browser, and select the Guide Container component of your Adaptive Form.
-
Click the Guide Container properties icon. The Adaptive Form Container dialog box opens.
-
Click the Submission tab.
-
From the Submit Action drop-down list, select Invoke an AEM Workflow .
-
Select workflow model from the Workflow Model drop-down list.
-
Select option from the Store Data file using drop-down list.
Data file: It contains data submitted to the Adaptive Form. You can use the Data File Path option to specify the name of the file and path of file relative to the payload. For example, the
/addresschange/data.xml
path creates a folder namedaddresschange
and places it relative to payload. You can also specify onlydata.xml
to send only submitted data without creating a folder hierarchy. If the workflow is marked for external data storage, use the variable option and select the variable from the list of variables available for the workflow model. -
Select option from the Store attachments using drop-down list.
Attachments: You can use the Attachment Path option to specify the folder name to store the attachments uploaded to the Adaptive Form. The folder is created relative to the payload. If the workflow is marked for external data storage, use the variable option and select the variable from the list of variables available for the workflow model.
-
Select option from the Documents of record using drop-down list.
Document of Record: It contains the Document of Record generated for the Adaptive Form. You can use the Document of Record Path option to specify the name of the Document of Record file and path of file relative to the payload. For example, the
/addresschange/DoR.pdf
path creates a folder namedaddresschange
relative to the payload and places theDoR.pdf
relative to payload. You can also specify onlyDoR.pdf
to save only Document of Record without creating a folder hierarchy. If the workflow is marked for external data storage, use the variable option and select the variable from the list of variables available for the workflow model. -
Click Done.
Related Articles
- Send email
- Submit to SharePoint
- Submit using Form Data Model
- Submit to Azure Blob Storage
- Submit to REST endpoint
- Submit to OneDrive
- Invoke an AEM Workflow
- Submit to Power Automate
- Submit to Workfront Fusion
- Connect Adaptive Form to Salesforce application
- Connect an Adaptive Form to Microsoft® Dynamics OData