ftos.context.propertyBag.get
Starting with v24.3.0, this is renamed from getProperty to ftos.context.propertyBag.get.
Returns a property value. Any property set by a workflow triggered in the same transaction can be accessed. For details on how to set a property value, see ftos.context.propertyBag.set.
The ftos.context.propertyBag.get and ftos.context.propertyBag.set functions allow you to exchange data between workflows.
This is a method suitable for routes modules of business service components modules.
Syntax
function ftos.context.propertyBag.get(propertyName: string): any
| Parameter | Description |
|---|---|
propertyName
|
Name of the property. |
Return Value
Returns the property value in its inherent data type.
Examples
In this example, we store the value of a property called output in a variable called storage.
var storage = ftos.context.propertyBag.get('output');
In this example, we convert the contents of a JSON object property called names into a string and store it in variable called namesStr.
var namesStr = JSON.stringify(ftos.context.propertyBag.get('names'));