Goal:
I would like to be able to change the primary action status of tasks via the context procedure.
Use case:
An ordering process with 3 statuses: new, ready to send, and sent.
I want to apply the call-to-action color to the task that triggers the correct next status in the process.
By default, I've configured the “new order” task as call-to-action.
However, when there is an order that is ready to be sent, I'd like to make the “send” task the call-to-action instead. Meanwhile, the “new order” task should still remain available to users as a regular task.
Workaround:
Currently, we can only achieve this by making duplicates of the tasks (1 regular and 1 call-to-action per status) and by using the context procedure to hide all the ones we don’t need per status. For 2-3 statuses this is okay, but for a process with a lot of statuses this quickly becomes very cluttered, both in the tasks and the context procedure.
Solution:
In the context procedure, add a new type for tasks.
E.g.: @[task_name]_type -- tasks. 0 = enabled, 1 = disabled, 2 = hidden, 3 = primary action. (or use nr. 1 to follow the logical order, in that case also make an enrichment to change all existing context procedures)

