-
1. Re: How to load multiple bpmn files as jbpm:resource in spring config?
drupalspring Oct 3, 2012 3:39 AM (in response to cybiks)Try this .
<jbpm:kbase id="kbase">
<jbpm:resources>
<jbpm:resource type="BPMN2" source="classpath:xxxxx1.bpmn" />
<jbpm:resource type="BPMN2" source="classpath:yyyyy2.bpmn" />
</jbpm:resources>
</jbpm:kbase>
Disclaimer : Not test yet
-
2. Re: How to load multiple bpmn files as jbpm:resource in spring config?
cybiks Oct 3, 2012 5:06 AM (in response to drupalspring)Thanks a lot, I know about it. the Idea is to not use exact names like xxxxx1.bpmn and yyyyy2.bpmn but point some folder where exist a lof of .bpmn files and put all of them to kbase in one line.
Can you help me with such case?
-
3. Re: How to load multiple bpmn files as jbpm:resource in spring config?
drupalspring Oct 4, 2012 5:55 AM (in response to cybiks)Anatoliy Kalenskiy wrote:
Thanks a lot, I know about it. the Idea is to not use exact names like xxxxx1.bpmn and yyyyy2.bpmn but point some folder where exist a lof of .bpmn files and put all of them to kbase in one line.
Can you help me with such case?
I am not sure . It seems that it uses this KnowledgeBaseBeanFactory to build the KnowledgeBase after prasing the values from spring configuration file . You can try to play around it to see if it supports your aim.
-
4. Re: How to load multiple bpmn files as jbpm:resource in spring config?
swiderski.maciej Oct 5, 2012 5:00 AM (in response to cybiks)have you looked at using changeset instead? I believe changesset.xml allows you to point ot a directory.
HTH
-
5. Re: How to load multiple bpmn files as jbpm:resource in spring config?
cybiks Oct 9, 2012 12:54 PM (in response to swiderski.maciej)I have tried with such changeset file:
<change-set xmlns='http://drools.org/drools-5.0/change-set'
xmlns:xs='http://www.w3.org/2001/XMLSchema-instance'
xs:schemaLocation='http://drools.org/drools-5.0/change-set change-set-1.0.0.xsd'>
<add>
<resource source="file:D:/jbpm" type="BPMN2"/>
</add>
</change-set>
And such kbase
<jbpm:kbase id="kbase">
<jbpm:resources>
<jbpm:resource type="CHANGE_SET" source="classpath:beans-bpmn-changeset.xml"/>
</jbpm:resources>
</jbpm:kbase>
But at runtime I got error that change-set-1.0.0.xsd couldn't be found , it it exists in knowledge-api-5.4.0.Final.jar that is in my WEB-INF\lib\ folder.
-
6. Re: How to load multiple bpmn files as jbpm:resource in spring config?
cybiks Nov 9, 2012 3:52 AM (in response to cybiks)last problem was connected with that fact that I have tried to create change-set file with file mask that my spring configuration tries to parse and use as beans. So as a result changesset.xml is the best solution.