Exclude BPMN files from scanner to avoid error

208 views
Skip to first unread message

Boi Hoogervorst

unread,
Jun 12, 2023, 4:56:52 AM6/12/23
to Drools Setup
Hi there,

I am currently building a project where we use Drools for making the decisions based on  DMN models and we use Camunda for the process side with BPMN models.

Currently i have two subfolders in my resources folder:

/resources/bpmn
/resources/dmn-models

Whenever i put a bpmn model in the /bpmn folder Drools will throw an exception in runtime when i want to execute a dmn model:

java.lang.RuntimeException: Unknown resource type: ResourceType = 'jBPM BPMN2 Language'

However, as I mentioned i do not want Drools to do anything with BPMN files, is there a way to exclude the BPMN files for Drools in the kmodule.xml / application.yml file?

regards,

Boi

Matteo Mortari

unread,
Jun 12, 2023, 7:53:39 AM6/12/23
to drools...@googlegroups.com
Hi Boi,

you could consider defining a no-op assembler, 



demonstrates how doing this way the .bpmn2 file would get ignored by the no-op assembler on the kie-maven-plugin and Drools builder KIE API side of things.

Naturally, this takes care of having .bpmn2 file ignored by the Drools side of things so I would expect you will need to manage on the other process engine implementation side depending on your integration needs.

Hope this helps!
MM


--
You received this message because you are subscribed to the Google Groups "Drools Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-setup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-setup/fabaa265-b40d-4d25-9238-544ac1b7b5a1n%40googlegroups.com.


--

Boi Hoogervorst

unread,
Jun 12, 2023, 11:47:36 AM6/12/23
to drools...@googlegroups.com
Thank you Matteo!

It works perfectly! I had it working in 5 minutes based on the example you provided! (After hours of trying on my own)......

cheers!

Boi

You received this message because you are subscribed to a topic in the Google Groups "Drools Setup" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/drools-setup/q1NSaikPpOU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to drools-setup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-setup/CAHOoiEq7S_%2BMZh4iaGvFByO7YMyNs-bt7%3DQL_3A0oiYKxX7C0Q%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages