This section describes how to add an existing data formatter
to a transition or a state.
About this task
Data formatter could be applied on transitions or states.
The data formatter on transitions would be applied after or override
the data formatter on related states. So when adding data formatter
to a transition have one more step of setting the Mapping behavior.
Procedure
- In the Enterprise Explorer pane, double-click the Transaction
file that contains the transitions to which you want to add a data
formatter. The Transaction file opens in the Transaction
editor.
- In the Transaction editor, click the Flow tab.
- In the Flow tab, click the state
to which you want to add the data formatter. Information
on the state displays in the Properties tab.
Note: If the
Properties tab
is not open, click to open the
Properties tab.
- In the Properties panel,
choose the Mapping direction.
- If you want to map output data, use Output Mapping.
- If you want to map input data, use Input Mapping.
These two directions share the same process. The following steps
take Input mapping as an example.
- Select 'Simple Mapping' above the Input Mapping field and
click 'browse' button to open the selection dialog.
- Select a data formatter from the list and click OK. You
could also use the filter to search for the data formatter you want.
Note: You could use 'New' button to define a new
data formatter if there is no appropriate data formatter. Then the
Mapping editor will be launched and please refer to
Defining data formatter for
details.
This step is only for adding a data formatter to a transition.
- Set the Mapping Behavior, ‘Override state
mapping’ or ‘Apply after state mapping’. These options
are used to decide whether to use the state mapping when there are
mappings already associated to an state that is origin or target state
of the transition. By default ‘Override state mapping’ is set.
Figure 1. Adding data mapping for a transition
For example,- In case of 'Apply after state mapping' as Input Mapping
Behavior, the target state mapping will be applied first and then
the transition mapping.
- In case of 'Override state mapping' as Output Mapping Behavior,
the source state mapping will not be applied and only the output transition
mapping will be applied.
- Save the Transaction file. Finally, adding
data formatter is completed.