Start workflow from microflow (workflow call action) does not seem to work

0
I don't want to push a button for each request to start a workflow, but automatically start it while automatically creating requests in a microflow. Therefore, I would like to start a workflow for each requests that is being created in that microflow. Somehow when I am using the action ‘Workflow Call’ from a microflow, I constantly get the error message ‘Unable to run workflow: Cannot find workflow 'workflowIdNumber.’. Using a button with an on click event ‘Call workflow’ is performing just fine. Anyone an idea? By the way: I am using version 9.1.1 of Mendix Studio, but I could not choose this version while entering this question.      
asked
5 answers
0

Hi Joost,

 

We believe it is caused by the asynchronous nature of workflows, since workflow operations run on the task queue. Our runtime experts were already aware of this issue, and it should be fixed in one of the upcoming releases. Executing the microflow that starts the workflow on the task queue should do the trick though, so you could try that approach for now.

 

Best of luck, let me know if this helps!

Jef

answered
0

Hi Joost,

 

I had comparable issues and got it fixed by first committing the object you want to perform the workflow on. In your case the ApprovalDiscountRequest, which is passed as a parameter. I assume that the workflow (which runs in the background/server) tries to retrieve the object when you kick off the workflow and cannot find it when not committed yet.

 

Hope this helps..

 

Regards,

 

Andre

answered
0

Thanks, also a good idea. Now I found the following. To me it seems that the workflow is only instantiated and not committed. Maybe this could be the problem?

 

 

 

answered
0

@Jef Hellemans: hereby confirmation that my entity indeed has the generalization WorkflowContext:

Thanks for also looking into this!

answered
0

Added this remark that now this seems relevant:

By the way: I am using version 9.1.1 of Mendix Studio, but I could not choose this version while entering this question.

answered