Perform Action on a context
Description:
This allows you to perform a action (“method”) on a defined object.
Normally this would be the context but could also be an object passed on as a parameter. This is intended for schema use.
Return Value:
The function returns a Promise that resolves to the result of the action performed.
{
"type": "action",
"action": "context.log",
"args": {
"parameters": ["param1", "param2"],
"target": "$process.result"
}
}
In the background a function is created that has three parameters.
- context
- process
- item
The action you define must reference one of those directly as that is the only scope allowed.