Цитата:
Сообщение от
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.
Method
Completed of the class specified in
CompletedEventHandler property called when all activities associated with the template are done.
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.