Using Assign as an Independent Activity

The assign elements works the same as the assign activity inside an input or output element, but it is not tied to a message. Used as an independent activity, the assign element inserts fixed numeric values or fixed strings into the process data.

Sterling B2B Integrator accepts the assign element only when it sets something in the process data equal to a fixed value.

When the assign element is used as an independent activity, it performs assignment from a constant to the process data. The to attribute corresponds to a path within the process data. The from attribute is used to extract information from a previously assigned value.

In the following example, the value 7 is assigned to X:

<assign to='X'>7</assign>

Assigns outside a service are visible to the whole process after the assign. Assigns within the service are only visible to the service.