Back to WLMLDAP, or WLMLDAP Info
| At line 142 added 1 line. |
| (a) Escalate to the manager whose id is an xpath using wlmfn:get-manager-email($arg as xs:string), the parameter is taken from $TaskInput |
| At line 143 changed 6 lines. |
| <escalation> |
| <duration expressionLanguage="xpath">'P0Y0M0DT0H3M0S'</duration> |
| <assignment> |
| <user>wlmfn:get-manager-uid($TaskInput/po:users)</user> |
| </assignment> |
| </escalation> |
| <escalation> |
| <duration>'P0Y0M0DT0H3M0S'</duration> |
| <assignment> |
| <!-- <user>'dale'</user> --> |
| <user>wlmfn:get-manager-uid($TaskInpu.part1/ns:users)</user> |
| </assignment> |
| </escalation> |
| At line 150 removed 1 line. |
| The wlmfn:get-manager-uid gets the users from the task input msg, and gets the manager uid. e.g. in our configuration sample, if $TaskInput/po:users returns 'john', wlmfn:get-manager-uid($TaskInput/po:users) returns 'dave' |
| At line 152 changed 9 lines. |
| {{{ |
| <notification name="notifyManager" |
| partnerLink="notifyManagerPartner" |
| partnerLinkType="nh:NotificationHandlerPLT" |
| role="NotificationHandlerPortTypeRole" |
| operation="nh:NotificationHandlerOperation"> |
| <recipient part="to"> |
| <address>wlmfn:get-manager-email()</address> |
| </recipient> |
| In our configuration sample, if $TaskInpu.part1/po:users returns 'john', wlmfn:get-manager-uid($TaskInput/po:users) returns 'dave', because 'dave' is the manager of 'john' (attribute: manager) \\ |
| At line 155 added 12 lines. |
| (b) Sends emails to the users assigned on the task using wlmfn:get-email($arg as xs:string) |
| {{{ |
| <notification name="notifyUsers"> |
| <email portType="ns1:NotificationHandlerPortType" operation="NotificationHandlerOperation"> |
| <!-- <address>'mei.wu@sun.com'</address> --> |
| <address>wlmfn:get-email($TaskInput.part1/ns:users)</address> |
| </email> |
| <message> |
| <subject>concat('There is a new task of approve purchase order assigned to you :', $TaskInput.part1/ns:purchaserName) </subject> |
| <body>'The task can be found at http://localhost:8080/WorklistWebApplication/wlm-jsp/wlmEntry.jsp'</body> |
| </message> |
| </notification> |
| At line 168 added 2 lines. |
| (c) Sends email to the manager of the current task owner using * wlmfn:get-manager-email() \\ |
| At line 171 added 12 lines. |
| {{{ |
| <notification name="notifyManager"> |
| <email portType="ns1:NotificationHandlerPortType" operation="NotificationHandlerOperation"> |
| <!-- <address>'mei.w.gao@gmail.com'</address> --> |
| <address>wlmfn:get-manager-email()</address> |
| </email> |
| <message> |
| <subject>'The approve purchase order task has been completed'</subject> |
| <body>concat(concat(' Purchase Order for ', $TaskInput.part1/ns:purchaserName), ' has been completed.')</body> |
| </message> |
| </notification> |
| }}} |
| At line 165 changed 1 line. |
| The full wf file can be found [here |http://wiki.open-esb.java.net/Wiki.jsp?page=LDAPWFSample] |
| The full project set can be downloaded [purchaseOrderReviewNotification_LDAP.zip|http://wiki.open-esb.java.net/attach/WLMSE/purchaseOrderReviewNotification_LDAP.zip] |