Process properties access with scripting
You can set and retrieve Process Property component values within custom scripting by using the getProcessProperty() and setProcessProperty() methods available within the ExecutionUtil class.
To find the propertyKey, open the Process Property component. The Key field on the Process Property tab displays the value. You can get the componentID from the URL when you open the Process Property component.
You can set and retrieve dynamic process property values within custom scripting by using the getDynamicProcessProperty() and setDynamicProcessProperty() methods available within the ExecutionUtil class. For more information about these methods, refer to com.Boomi.execution.ExecutionUtil.
This can be done within a custom scripting step or custom scripting map function.
import com.boomi.execution.ExecutionUtil
// Set a Process Property component value
// Replace "ComponentID" with the component ID from the Process Property component
// Replace "PropertyKey" with the key from the Process Property tab
ExecutionUtil.setProcessProperty("ComponentID", "PropertyKey", "PropertyValue")
// Retrieve a Process Property component value
String myValue = ExecutionUtil.getProcessProperty("ComponentID", "PropertyKey")
// Set a Dynamic Process Property value
// Set the boolean to true to persist the value across process calls
String dynamicPropertyValue = "MyDynamicValue"
ExecutionUtil.setDynamicProcessProperty("PropertyName", dynamicPropertyValue, true)
// Retrieve a Dynamic Process Property value
String myDynamicValue = ExecutionUtil.getDynamicProcessProperty("PropertyName")