SBM Orchestration Guide → Orchestration Use Cases → Raising Events from External Products
Any external product that is capable of calling a Web service can raise events in SBM by calling a corresponding Web service. SBM Composer provides the ability to automatically generate a .wsdl file that you can use in the external product to call the Web service.
For example, suppose you use Salesforce.com to track customer prospects, and want to have a new item created in SBM whenever a potential customer is initially contacted. You can raise an external event that causes an asynchronous orchestration workflow to run whenever this event occurs. The orchestration workflow creates the item in SBM.
Because the event provides the inputs for the workflow, the .wsdl file must be designed specifically for the event and its associated orchestration workflows. You start by defining a custom event definition that defines the data you want to pass to the workflow. This event definition defines both the event that the external product will raise and the inputs for the orchestration workflow. The event definition determines the content of the .wsdl file. When you click the Export external event WSDL button in the event definition Property Editor, the .wsdl file that will be used to raise the event is created.
The following procedure describes a way to raise an external event that updates a field in a SBM item. In this procedure, a sales product sends an external event to update the Discount Percent field. In SBM Composer, you define two custom data fields in a custom event definition: ItemID and DiscountPercent. The orchestration workflow that is invoked when the external event is raised updates the item with the specified discount amount.
To update the discount percent value in an SBM item:
The Extension element is automatically added to the Custom data. Its Type is the event definition name with EventNoticeExtension appended to it.
The properties for the Extension element include its named type and namespace.
A new orchestration workflow is added to App Explorer.
Copyright © 2007–2015 Serena Software, Inc. All rights reserved.