In this example, assume that the use case is as follows:
- Invoke a Servlet from a web page by clicking a button
- Pass an asset location (payload) and email address
- Invoke the Workflow from an AEM Servlet by using the Workflow API
- The Workflow lets a user either approve or deny the asset
- An OR Split step is used within the workflow and routes to different branches
- If approved, a property on the asset is modified and an email is sent to a email recipient.
- If not approved, the asset is not modified and a log messaged is created
To read this development article, check back on Tues June 26, 2018.