Yes, similarly with the edit node example:
Consider we have previously created a design designs_myMWFdesign_64918c43fb74b276cc235b40
that implements designInterfaces_workflowManualTrigger
and has an AQS attribute named attributes_myMWFdesignMyAQS_64c11c193816587cc8c8f6ee
Additionally consider that we have created a workflow that in its trigger we have specified
"parametersDesignCode": "designs_myMWFdesign_64918c43fb74b276cc235b40"
This is an example of using the endpoint
/api/workflow/{code}/action
if we wanted to add a filter action to our workflow, that takes a designInterfaces_tasks
as an input, and determines whether the execution will continue, by evaluating an AQS query that we’ll provide later as a trigger parameter.
{
"ancestorId": "64c0e3203816587cc8b88928",
"signature": "64c0e5283816587cc8b92d71",
"description": "Filter node",
"parameters": [
{
"discriminator": "WorkflowComputedItemAttributeWebModel",
"attributeCode": "attributes_workflowFilterActionsAqsQuery",
"value":
{
"discriminator": "WorkflowSyntaxNodeTriggerParameterWebModel",
"parameterCode": "attributes_myMWFdesignMyAQS_64c11c193816587cc8c8f6ee"
}
}
],
"actionDesignCode": "designs_workflowFilterAction"
}
Then when triggering the manual run, we specify our AQS for that attributes_myMWFdesignMyAQS_64c11c193816587cc8c8f6ee
attribute
{
"query": {
"type": "Query",
"properties": {
"collectionCode": "Live",
"dodiCode": "designInterfaces_tasks"
}
},
"triggerParameters": [
{
"attributeCode": "attributes_myMWFdesignMyAQS_64c11c193816587cc8c8f6ee",
"value": {
"type": "Query",
"properties": {
"attributes": [
"attributes_itemsTitle",
"attributes_itemsSubtitle"
],
"collectionCode": "Live",
"dodiCode": "designInterfaces_tasks"
},
"children": [
{
"type": "Equals",
"children": [
{
"type": "ItemProperty",
"properties": {
"itemPropertyName": "itemId"
}
},
{
"type": "AlloyId",
"properties": {
"value": [
"6196652072d6600157287ef3"
]
}
}
]
}
]
}
}
]
}
In the above example we are running this workflow for all the tasks in the customer, but the execution of the next nodes will only continue for the task with
itemId: 6196652072d6600157287ef3