ftos.context.propertyBag.set
Starting with v24.3, this is renamed from setProperty to ftos.context.propertyBag.set.
Defines a property and its value. Workflows triggered in the same transaction can access the property and read it using the ftos.context.propertyBag.get function or reset it to a different value.
The ftos.context.propertyBag.get and ftos.context.propertyBag.set functions allow you to exchange data between workflows.
This is a routes method for business service components.
Syntax
function ftos.context.propertyBag.set(propertyName: string, value: any): void
| Parameter | Description |
|---|---|
propertyName
|
Name of the property. |
value
|
Property value. |
Examples
In this example, we define a property called age that stores the age for a 46 years old customer.
ftos.context.propertyBag.set('age', 46);
In this example, we define a property called names that stores a preson's first, middle, and last name.
ftos.context.propertyBag.set('names', {'first': 'Jonathan', 'middle': 'Schmoe', 'last': 'Doe'});