Development tools : Transaction editor : Drawing flows in the flow editor : Setting data mappings to states or transitions : Reusing data formatter
  
Reusing data formatter
This section describes how to add an existing data formatter to a transition or a state.
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.
1 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.
2 In the Transaction editor, click the Flow tab.
3 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 Window > Show View > Other > Properties to open the Properties tab.
4 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.
5 Select 'Simple Mapping' above the Input Mapping field and click 'browse' button to open the selection dialog.
This graphic is described in the surrounding text.
6 Select a data formatter from the list and click OK. You could also use the filter to search for the data formatter you want.
This graphic is described in the surrounding text.
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 see Defining data formatter for details.
This step is only for adding a data formatter to a transition.
7 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.
This graphic is described in the surrounding text.
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.
8 Save the Transaction file. Finally, adding data formatter is completed.
Go up to
Setting data mappings to states or transitions