Показать сообщение отдельно
Старый 26.11.2009, 20:10   #2  
Mykola Galak is offline
Mykola Galak
Участник
 
40 / 39 (2) +++
Регистрация: 24.01.2008
Адрес: Copenhagen
Цитата:
Сообщение от 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.