We have setup a workflow which implements an approval process.
We want to be able to transition between statuses in the workflow based on the email received from the supervising manager.
When a developer requests for an approval process, the manager might approve or reject his request.
How do I transition to "Approved" or "Rejected" statuses in the Workflow by checking for the "Approved" or "Rejected" response in the email.
Below is the image of the transitions in the workflow and the profile.
approval_workflow.png
workflow steps.png
I have already implemented the JEMH profile.
workflow_advance.png
I am trying the transition from Approval Pending to Approved.
I am not able to figure out how to implement the regular expression to look for the "Approved" response in the email. So, whatever response in received in the email, the transition always goes to Approved.
Any help would be greatly appreciated.
Thanks.