The eXchange Protocol Designer is where the user creates the Business Process flow. It provides a palette of modeling elements for designing your Business Process . Like other logical components in a project, BPs appear in the Project Explorer tree.
Elements from the Enterprise Explorer can either be dropped onto empty canvas or onto an Activity. Many elements provide custom settings so that you can model every detail of your process. Each Business Process you create consists of basic elements as described in the following sections:
You can include several different kinds of activities and subprocesses in a Business Process.
Do one of the following:
Drag a modeling element from the toolbar and drop it on the canvas.
Drag a web service operation from the Project Explorer and drop it on the canvas.
Click the default activity name and type a new name.
The activity appears on the modeling canvas.
Every activity name must contain at least one character (A-Z, a-z, or 0-9); it must start with a letter or an underscore (_), and it may contain spaces.
You can include several different kinds of activities and subprocesses in a BP. For examples of each of the different kinds of activities, see Table 6–1.
eXchange Integrator supports orthogonal and diagonal link styles. This setting applies to all links in a model and is an automated application of the style.
Move your cursor over the connector portion of your modeling element.
Hold the cursor over the outside edge of the modeling element until it changes from the arrow pointer to a hand.
See Figure 6–2.
Click down, and drag a line from the first activity to the connector of the second activity.
When the link attaches, release the mouse button.
|
Decision |
A Decision allows one of several possible paths to execute, based on expression logic. This element is used to create complex expressions that determine the path of the Business Process . It also contains the expression and connection names. Decisions allow you to define expressions that are evaluated to determine the proper Business Process flow. Expressions are built using the mapping interface and Business Process attributes. |
|
Event Based Decision |
Multiple possible messages can be juxtaposed against a timeout condition to allow the type of message received to determine the appropriate Business Process path. |
|
Flow |
Allows you to specify one or more activities to be performed concurrently. |
Intermediate events are those activities that can interrupt the flow of a Business Process . Some intermediate events handle exceptions that may occur during your Business Process or compensate for exceptions that occur.
On the toolbar, click the Intermediate Events drop-down icon, and then release the mouse button.
Point at the type of Intermediate event you want to add, click, and then drag the activity from the toolbar to the eXchange Protocol Designer canvas.
The selected Intermediate event appears on the modeling canvas.
|
Compensation Handler |
Used when something in a Business Process fails and requires a rollback or upstream activities (like money has to be returned to the customer). On an automatic basis in the Business Process , upstream steps in the Business Process are notified that the failure has occurred and certain transactions need to be reversed, sometimes in a sequential order. The compensation handler allows you to design the process and circumstances in which the compensation takes place. |
|
Catch Named Exception |
Each automated system (back-end system) or web service operation can publish their possible error codes (for instance, fault 15 is “bad data”). Those codes can be mapped to exception handlers. Each exception handler is connected to the scope that surrounds one or more steps in a Business Process . The components within that scope throws the exceptions when things go wrong and the exception handler automatically initiates the appropriate process to handle the problem. |
|
Catch All Exceptions |
This exception handler is configured to handle all exceptions that occur in a scope. |
|
Message Event |
This is similar to a Receive Activity, but it occurs only in the middle of a Business Process . Each of these elements can be a different message. |
|
Timer Event |
A timeout condition is set upon Activities, sets of Activities, or a Business Process as a whole, to ensure that processes complete within given amount of time. Timeout conditions also allow you to design the Business Process branch to take after a timeout condition takes place. |
The behavior for one or more activities can be defined by a scope. A scope can provide exception handlers, event handlers, a compensation handler, and data variables. The exception handlers for the scope can be used to catch the faults caused by the possible exception responses.
|
Scope |
The Scope element allows you to apply exception handlers, compensation, and transactionality to a set of sequential or simultaneous steps in a Business Process . |
|
While |
This allows you to create a looping process within a Business Process (for instance, a negotiation process may take several weeks, but the manager wants to review the daily status). The loop continues until the negotiation is complete, and then the Business Process continues. |
After creating a Business Process , you can check to see if there are any problems such as activities that are not connected or an incorrect number of output links from an activity.
On the toolbar, click Validate BP Model.
If an error is encountered, a message box displays information about the error. If there are no errors, a message appears stating that there were no errors.
If an error message displays, see Saving an Unfinished Business Process for information on repairing errors. Repairing the error may entail such items as adding logic to Decisions or adding attributes to activities.
Even if a Business Process is not complete and/or contains errors, you can save it as a work in progress and return to it later by doing any of the following:
On the File menu, choose Save
On the main toolbar, click Save
On the keyboard, press Ctrl+S