Description
The subscription to this channel will be providing information about the result of the calculation, like show conditions or conditional run.
Channel Name
formulas.{ownerType}-{ownerId}
{ownerType}
- it is a task
{ownerId}
- it is a task instance id
Events
result.calculated
An example of the calculation result, where:
- "type" it's a type of the event
- "id" it's a reference to the field or section that will be shown for a show condition, and a reference of the definition for a conditional run
- "formula_reference" it's a reference to the formula
- "reference" it's a reference to the field or section that will be shown for a show condition, and a reference of the definition for a conditional run
- "result" - for a show condition indicates is the field or section will be shown or hidden, "true" for show and "false" for hiding. For a conditional run: "true" - the tasks will be run, "false" - will not
- "type" it's a type of the shown object, can be a "fields" or a "sections" or a "definition"
- "mode" - it's always "show"
Pay attention! If the hidden section contains fields, the result will be received fields too
{
"dto": {
"data": [
{
"type": "results",
"id": "dd7b2bf6-58c0-4085-98c0-f33561ea0f42",
"attributes": {
"formula_reference": "cffe64d5-2d3c-4a6f-968b-e5df91385217",
"reference": "dd7b2bf6-58c0-4085-98c0-f33561ea0f42",
"result": false,
"type": "fields",
"mode": "show"
}
}
]
}
}