Discussion:
[jboss-user] [jBPM] - Deployment of bpmn and related artifacts WITHOUT guvnor -- is it possible?
Yarr P.
2013-02-26 19:36:34 UTC
Permalink
Yarr P. [https://community.jboss.org/people/groopk] created the discussion

"Deployment of bpmn and related artifacts WITHOUT guvnor -- is it possible?"

To view the discussion, visit: https://community.jboss.org/message/799713#799713

--------------------------------------------------------------
I want to create an ant task that will take the bpmn and related artifacts from an eclipse jbpm project and deploy it directly to JBOSS without using Guvnor.  Is this possible?  If so, can you point me to an example or tell me how to do it? 

Thanks
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/799713#799713]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Yarr P.
2013-02-27 15:07:14 UTC
Permalink
Yarr P. [https://community.jboss.org/people/groopk] created the discussion

"Re: Deployment of bpmn and related artifacts WITHOUT guvnor -- is it possible?"

To view the discussion, visit: https://community.jboss.org/message/799895#799895

--------------------------------------------------------------
So far the only thing that I've been able to get to work is putting the bpmn file into the "jbpm.console.directory".  However, I can't get it to recognize my ftl or png files from this directory.  I've tried putting them at various spots (including inside the jbpm-gtw-console-server war) and so far have had no luck. For all the good documentation JBoss has, the deployment docs are severly lacking. And guvnor has been unreliable and problematic- I want to avoid that component all together.

I was able to get my user service deployed by editing the jbpm-gwt-console-server\WEB-INF\classes\META-INF\CustomWorkItemHandlers.conf file and add the class files to a jar in the jbpm-gwt-console-server\WEB-INF\lib directory, and then restart the JBoss server.  Is there no way to dynamically deploy these so it doesn't require a server restart?
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/799895#799895]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Maciej Swiderski
2013-03-01 13:14:45 UTC
Permalink
Maciej Swiderski [https://community.jboss.org/people/swiderski.maciej] created the discussion

"Re: Deployment of bpmn and related artifacts WITHOUT guvnor -- is it possible?"

To view the discussion, visit: https://community.jboss.org/message/800281#800281

--------------------------------------------------------------
Yarr P.
2013-03-01 17:17:28 UTC
Permalink
Yarr P. [https://community.jboss.org/people/groopk] created the discussion

"Re: Deployment of bpmn and related artifacts WITHOUT guvnor -- is it possible?"

To view the discussion, visit: https://community.jboss.org/message/800343#800343

--------------------------------------------------------------
Thanks, that looks interesting.

Is there a way to turn on debug/trace logging for the gwt-console-server app?  I don't see much in the logs except a stack trace here or there and I can't really tell what's going on.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/800343#800343]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Yarr P.
2013-03-06 16:47:44 UTC
Permalink
Yarr P. [https://community.jboss.org/people/groopk] created the discussion

"Re: Deployment of bpmn and related artifacts WITHOUT guvnor -- is it possible?"

To view the discussion, visit: https://community.jboss.org/message/801115#801115

--------------------------------------------------------------
For anyone else in the same boat- it turns out the default knowledge builders already account for this (hence how the Evaluation demo is able to work). The png file needs to be {process.id}.png instead of {process.id}-image.png.

So, to depoy a bpmn process without using Guvnor from Eclipse:

-Put the bpmn file into the "jbpm.console.directory", which by default with the demo is ${install.home}/sample/evaluation/src/main/resources
-Create a PNG using the 'export png' option from the eclipse plugin, and name it {process.id}.png - i.e. com.sample.bpmn.hello.png
-Create FTL files by hand or by using the "generate jBPM forms" option within eclipse
-Put the PNG and FTL files inside the classes folder of the gwt console server (i.e. jboss-as-7.1.1.Final\standalone\deployments\jbpm-gwt-console-server.war\WEB-INF\classes\ ) - although anywhere on the gwt-console-server classpath should work

-Restart jboss and you are good to go.

For how extremely simple this process is, it sure took a long time to muddle through and figure out how to do it.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/801115#801115]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Yarr P.
2013-03-06 19:36:11 UTC
Permalink
Yarr P. [https://community.jboss.org/people/groopk] created the discussion

"Re: Deployment of bpmn and related artifacts WITHOUT guvnor -- is it possible?"

To view the discussion, visit: https://community.jboss.org/message/801139#801139

--------------------------------------------------------------
So, I have a follow up question:  For standalone workflow deployments, do people normally use jbpm-gwt-console-server?  Or is it more common to create one's own application around the jbpm libraries? Is there anything in the user guide or a forum discussion somewhere that talks about pros/cons of these two approaches?
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/801139#801139]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Mauricio Salatino
2013-03-06 19:59:57 UTC
Permalink
Mauricio Salatino [https://community.jboss.org/people/salaboy21] created the discussion

"Re: Deployment of bpmn and related artifacts WITHOUT guvnor -- is it possible?"

To view the discussion, visit: https://community.jboss.org/message/801144#801144

--------------------------------------------------------------
It sounds like you already answered your own question. jBPM can be embeded in your application or you can create your own application that wrap JBPM for your business. In such cases you will not need to use the jbpm-gwt-console-server. The Pros and the Cons are the same for any other component that you want to reuse or re write, you gain more flexibility to use your own technology stack to expose the services and you will be able to add all the configuration options that you need for your architecture if you write your own. If you decide to reuse the gwt-console-server you get a lot already done but you will need to learn how to use it and how it was designed.

Cheers
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/801144#801144]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Loading...