Mapping input and output data for an activity in processes or human services
Before you begin
You must have a process or human service that contains a set of declared variables and an
activity. If you have existing mappings, they are automatically mapped in the new data mapping
feature.
Note: Auto-mapping does not overwrite existing mappings. No variables are generated for
existing variables with the same name but different types. By default, the variables are created as
private variables. You can later change them to input, output, or input and output variables as
needed.
About this task
When you develop a process, you must set the input and output mapping for each activity in a
process so that the variable values received and generated by the activities map to the variables
from the main process. In complex types inputs or outputs, you can map individual fields instead of
using a script.
Note: For inline user tasks, the Data Mapping tab does
not contain any auto-mapping capability. The interface of user inline tasks is defined by what you
choose to map. Additional information about inline user tasks is found in the topic Working with inline user tasks.
The following procedure describes how to map both input and output data for an activity. Depending on the logic of your process, an activity may require only input or output data and not both.
Procedure
- Open the process.
- Click the activity in the diagram, and go to the General tab in
the properties. Under Implementation, click Edit.
Alternatively, you can open the Data Mapping dialog from the Data
Mapping tab. The Data Mapping dialog displays the input and output variables that are available in the activity in two different tabs.
- In the Input Mapping and Output Mapping tabs, complete the fields with the variables you want to map.
- Click OK.
Example
- To map the whole object with every child field it contains, complete field next to the
parent.

- To switch from mapping the parent object to map each subfield in a parent object individually,
click the question mark icon in the subfield, and then click
Yes.

- To provide a constant value for simple type inputs, click the Literal
mode button next to the field you want to complete.

- To map objects with JavaScript,
click the JS button next to the field you want to
complete.

- To autofill the fields, click Suggest existing or new variables in the
dialog box. Automapping fills the fields with intelligent guesses.
