cancel
Showing results for 
Search instead for 
Did you mean: 

is one bar one workflow ?

sapra
Champ in-the-making
Champ in-the-making
Hi,
'create deployment artifacts'  is creating one bar file compiling all the bpmn files and .drl files.

need some help understanding whether :
1 bar file means one work flow ?
if my app has multiple workflows, how do I create multiple bar files .

Also,
in my web app, I use the following way to deploy the workflow.
<property name="deploymentResources" value="classpath*:/diagrams/*.bpmn20.xml" />

but, when I added a .drl file, I did not know how to include it to the deploymentResources .
does this property take comma seperated file names ? or, can I add multiple <property/> elements ?

later, I created a bar and deployed it using this:
<property name="deploymentResources" value="classpath*:/diagrams/*.bar"/>
and it deployed, but, it is good to know how to specifiy multiple resources ..

thanks
sapra
3 REPLIES 3

trademak
Star Contributor
Star Contributor
Hi,

RIght, you could use the BAR file construct for that. Also you can put all deployment artifacts in a specific folder and say: classpath*:/folder/*.*
Then all artifacts in that folder will be picked up. But the BAR approach is also fine.
You can deploy as many workflows and other deployment artifacts (like drl files) in one BAR file as you want.

Best regards,

msandoz
Champ in-the-making
Champ in-the-making
Hi this looks like a useful feature. I have a java delegate that creates excel spreadsheets. I'd like the delegate to have access to a resource that is distributed in the BAR. It will differ from process to process. How should I best supply the configuration to the delegate? Something like putting "classpath://folder/resource.xls" into a process variable and passing it? would that work and would it be the best way of doing this?

trademak
Star Contributor
Star Contributor
Hi,

The RepositoryService interface provides a method named getResourceAsStream which gives back a resource in a BAR file.

Best regards,