Getting to a Workflow from Workflow Context

0
Hi all,   I’m currently working an an app where Users can make ‘orders’ and these are approved by various levels of managers. I have my object (Order.Order) which I am passing into the Workflow as the Context and the process in itself is fine and working.  ‘Users’ need to be able to cancel orders. When this happens I want to the workflow tasks for those Orders to be aborted.   I can easily get from a workflow to the workflow context via the microflow action. But in this instance I need to be able to go the other way, so from Workflow Context (Order.Order) to Workflow.   Is there an built in way to do this or will I have to create an association between the Order and the Workflow and manage it that way?
asked
2 answers
0

I had a similar question a while ago. The end solution was to create the association like you say and populate it using a microflow as the first step in the workflow

 

https://forum.mendix.com/link/space/workflows/questions/120542

answered
0

HI,

I've posted an idea for this as well: https://forum.mendix.com/link/space/workflows/ideas/3379

How I solved it was by storing the ID of the object (in your case, the order) on the user task. This way you can find the user tasks for your order and vice versa.

 

good luck

answered