cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Workflow transition - Only available if no modeling errors

mrajih_DTCC
Super Contributor

Hi,

 

I'm currently using a validation workflow on Organizational process metaclass.

 

For one of the workflow steps, I would like to add a condition that checks if the process has no modeling errors (using BPMN regulation). If yes, it blocks the transition and display a message, if not then the transition go on.

 

So far I tried using the workflow condition object with a custom macro, but I'm not able to get the modeling rules result.

 

Thank you

Mehdi

1 Reply

mrajih_DTCC
Super Contributor

Hi,

 

I found the solution for this requirement. You can indeed block a user from transitioning an Org process to the next workflow stage depending on the result of the modeling rules.

 

For each workflow transition, you can add a "Workflow condition", then create a macro and linked to this condition, with the following steps :

 

1. get the current workflow object

2. run the "Modeling regulation" you need (e.g BPMN regulation)

3. for each rule included in this package, run it against the current workflow object

4. block or let the workflow transition move forward depending on the rule result (e.g recommendation or requirement)

 

Hope this help someone with the same requirement

 

Thank you

Mehdi