The Assign activity is a light-weight mapping tool. Like a map, the properties for Assign require specifying the source and target: the source of the data to be assigned is the literal or context property, and the target context property is where the assignment is to be made.
Use Assign from the Simple Activities tool palette to provide the two types of data modification:
Value-Based
A change to the data can be value-based by setting a specific value in the target document
Assign. Set a value and save to a context property.
Get an environment variable and save to a context property.
Get the process id (runtime instance id) and save to a context property.
This designates provides information about which instance of the process at runtime is the source of the data for the purpose of passing the id to a target application.
Retrieving the process id or the environment variable does not require identifying the source information. The process id or environment variable is acquired at runtime and inserted into the location specified by the target context reference.
Tree-Based
A change to the data can be tree-based by adding or removing a hierarchy of information that is presented in the target document.
The Graft option appends parent element and its child element information from the source to the target. The Prune option removes the parent element and all children from the target context.
Graft. Select Graft and add branches of data from the source to the target.
Prune. Select Prune and remove branches of data from the target.
For more complex transformations, see Creating a Map.