About this task
An operation state is a state in a transaction flow that
is bound to an operation. You can add events to the operation state
to enable the operation state to navigate to another state.
Procedure
To create an operation state, do the following steps:
- In the Enterprise Explorer pane, double-click
the transaction file that you want to edit to open the transaction
file in the Transaction editor.
- In the Transaction editor, click the Processor tab.
- In the Palette pane, click Operation.
- In the Processor tab of the Transaction
editor, click on the area at which you want to place the Operation
state icon
. If you want to change
the location of the Operation state icon in the Processor tab,
drag and drop the Operation state icon to the desired location.
- Click the operation state icon in the Processor tab.
- In the Properties tab of the Operation
state, click the General tab.
- In the Operation field of the General tab,
click the Browse icon
. The Select Operation window
opens.
- In the Select Operation window, select
an operation for the Operation state, and then click OK.
- In the Events panel of the General tab,
click the Add icon
to add events to the operation.
- Edit the related Java file. Shown below is an example of sample code from a .java file:
Note: In the image above, "ok" and "error" are
the names of the events that are defined in the Operation state