using jbpm 5.4 with drools 5.5.0 and eclipse juno
I have a test project with a workflow that goes :
[start] --> [script printing "Hello 1"] --> [rule task node to print "Rule 1"] --> [script printing "Hello 2"] --> [rule task node to print "Rule 2"] --> [END]
The output is:
Hello 1
Hello 2
Rule 2
I used AgendaEventListener added to my ksession to fire the rules and I think it works just fine. Full post at https://community.jboss.org/thread/221486.
I built the KnowledgeBuilder as the following:
KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
// adding my workflow
kbuilder.add(ResourceFactory.newClassPathResource("sample.bpmn"), ResourceType.BPMN2);
// adding my first rule with ruleflow-group "test1"
kbuilder.add(ResourceFactory.newClassPathResource("test.xls"), ResourceType.DTABLE);
// adding my second rule with ruleflow-group "test2"
kbuilder.add(ResourceFactory.newClassPathResource("test1.xls"), ResourceType.DTABLE);
Funny thing because if I comment out my second rule the output would be:
Hello 1
Rule 1
Hello 2
It seems like its only firing the last rule in the list.
Any idea whats wrong?
Test project attached