25.11.2009, 22:32 | #1 |
Участник
|
ax 2009 workflow approvals
Hi,
I have workflow template with two Approvals. Example, SalesApproval(first step) and PurchApproval (second step). Template property CompleatedEventHandler has class with method, example "Compleate" where I can update my ApprovalStatus or something else. How can I known, which Approval (SalesApproval or PurchApproval) called this method? Or should I create separate classes for each Approval and set this classes for needed Outcomes (Approve, Deny,etc.) Thanks. |
|
26.11.2009, 20:10 | #2 |
Участник
|
Цитата:
Сообщение от Kent
Hi,
I have workflow template with two Approvals. Example, SalesApproval(first step) and PurchApproval (second step). Template property CompleatedEventHandler has class with method, example "Compleate" where I can update my ApprovalStatus or something else. How can I known, which Approval (SalesApproval or PurchApproval) called this method? Or should I create separate classes for each Approval and set this classes for needed Outcomes (Approve, Deny,etc.) Thanks. If you want to track Approval completion event you need to implement WorkflowElementCompletedEventHandler interface and specify its name in EventHandler property of Approval outcome. Two separate classes for each Approval needs to be implemented. |
|
|
|