Monday, 1 February 2016

UNDER COVER AGENT FOR MESSAGE EVENT

An undercover agent (UCA) is attached to a message event or a content event in a business process definition (BPD) and calls a service to handle the event.


  1. In the Designer view, click the plus (+) sign next to Implementation and then select Undercover Agent from the list.







 In the New Undercover Agent window, enter the following information: 
Name: Type a name for the new undercover agent. 
 Schedule Type: Select On Event from the drop-down list.
 Click Finish.




 Suppose i gave "UCA_CANCEL" as UCA name.

 



 If user generates an event on adhoc cancel order. It has to be handled.We are handling it to by UCA.

Click on Intermediate Message Event sendCancelOrder. Go to Implementation.
Select the UCA just we created.






 So upto now, We generated an event that has to be handled by some service.
Iam taking Cancel Laptop Order to handle this event.


 


 Click on Cancel Order Intermediate Message Event and go to implementation and select the UCA we created.



 UCA's must be same in order call and handle that particular service.


1 comment: