Created
May 21, 2013 16:42
-
-
Save hasithaa/5621279 to your computer and use it in GitHub Desktop.
Modifying WSO2 BPS Claims Approval Task Sample for Escalation and deadline. Sample URL: http://docs.wso2.org/wiki/display/BPS300/Claims+Approval+Task+Sample
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <htd:task name="ApproveClaim"> | |
| <!-- Task definition is here --> | |
| <htd:deadlines> | |
| <htd:startDeadline name="sendNotifications"> | |
| <htd:documentation xml:lang="en-US"> | |
| if the claimed amount is less than 10000 and not started within 5 minutes, escalation notifications are sent | |
| -to the task's potential owners. | |
| </htd:documentation> | |
| <htd:for>PT5M</htd:for> | |
| <htd:escalation name="reminder"> | |
| <htd:condition> | |
| <![CDATA[htd:getInput("ClaimApprovalRequest")/test10:amount < 10000]]> | |
| </htd:condition> | |
| <htd:toParts> | |
| <htd:toPart name="firstname">htd:getInput("ClaimApprovalRequest")/test10:cust/test10:firstname</htd:toPart> | |
| <htd:toPart name="lastname">htd:getInput("ClaimApprovalRequest")/test10:cust/test10:lastname</htd:toPart> | |
| </htd:toParts> | |
| <htd:localNotification reference="tns:ClaimApprovalReminder"> | |
| <htd:documentation xml:lang="en-US"> | |
| Reuse the predefined notification "ClaimApprovalReminder". | |
| Overwrite the recipients with the task's potential owners. | |
| </htd:documentation> | |
| <htd:peopleAssignments> | |
| <htd:recipients> | |
| <htd:from>htd:getPotentialOwners("ApproveClaim")</htd:from> | |
| </htd:recipients> | |
| </htd:peopleAssignments> | |
| </htd:localNotification> | |
| </htd:escalation> | |
| </htd:startDeadline> | |
| </htd:deadlines> | |
| </htd:task> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment