BPMN Validation

75 views
Skip to first unread message

Maria Prabudass

unread,
Mar 1, 2022, 6:24:53 AM3/1/22
to jBPM Usage
Hi,

In our project, we are using many BPMNs some are a little complex. We are finding it difficult to do manual validation on whether the variables are used properly and are there default routes available in each flow.  So we are trying to build a script to validate the BPMN2. Is there any better way to validate a BPMN2?
Below are some of the same scenarios.

Scenario 1: After task A, there are multiple options B, C, and D based on a variable. If i = 1 then the next task should be B. If i = 2 then the next task should be C. If i is anything other than 1 and 2 it should be D.

Scenario 2: when there is a parallel flow, a variable that is created in one of the flows cannot be used in the other. We will not be able to confirm that this variable will for sure be created before the required task.

Kris Verlaenen

unread,
Mar 15, 2022, 3:35:56 PM3/15/22
to Maria Prabudass, jBPM Usage
Maria,

I think some of these "issues" could possibly be avoided by design guidelines, for example if you have a parallel flow, you could define the variables in an embedded sub-process for that flow, to avoid it being used in the other flow.  Not sure I understand the first scenario though, what are you trying to validate here?  The use of a default flow for the third option could be a possible solution.

That said, if you want to do additional validation, you could consider adding your own validation logic on top of what is provided out of the box?  The BPMN2 file could be loaded by the model parser and you could then traverse the process model quite easily.  Take a look at the validator here:
https://github.com/kiegroup/jbpm/blob/main/jbpm-flow/src/main/java/org/jbpm/ruleflow/core/validation/RuleFlowProcessValidator.java

Thx,
Kris


--
You received this message because you are subscribed to the Google Groups "jBPM Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbpm-usage+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jbpm-usage/7b87d568-611f-450e-8abd-f457757e1285n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages