XML Variables in AEM Workflow
- Applies to:
- Experience Manager 6.5
- Topics:
- Adaptive Forms
- Workflow
CREATED FOR:
- Beginner
- Developer
Variables of type XML are typically used when you have an XSD based Adaptive Form and want to extract values from the Adaptive Form submission in your workflow.
The following video walks you through the steps needed to create variables of type String and XML and use them in your workflow.
The XML variable can be used to pre-populate the adaptive form or store the adaptive form’s submission data in your workflow.
String variable can be populated by Xpathing into the XML variable. This string variable is then typically used to populate the e-mail template placeholders in Send Email component
The adaptive form data is stored under the data element as shown above. In the above XPath submitterName is the name of the text field in the Adaptive Form.
Creating XML Variables
Using Schema with XML Variable
Mapping a XML variable with schema. Use this capability with AEM Forms 6.5.1 onwards
Using the variable in send email
To get the assets working on your system, please follow the following steps:
- Download and import the assets into AEM using package manager
- Explore the workflow model to understand the variables that are used in the workflow
- Configure the Email Service
- Open the Adaptive Form
- Fill in the details and submit the form.