[jboss-user] [jBPM] - Re: Have a good CDI architecture to use JBPM5

Mauricio Salatino do-not-reply at jboss.com
Tue Nov 13 07:39:56 EST 2012


Mauricio Salatino [https://community.jboss.org/people/salaboy21] created the discussion

"Re: Have a good CDI architecture to use JBPM5"

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

--------------------------------------------------------------
Well it depends, how many sessions do you have in your application? 
We are refactoring some of the services to use CDI, and you can find a couple of examples in the droolsjbpm-knowledge-services project right behind the jbpm-human-task-services inside jbpm-services. 
One of the tests is doing exactly that, creating a process, attaching a ht work item handler injected by CDI and then executing the process. 

 https://github.com/droolsjbpm/jbpm/blob/master/jbpm-services/droolsjbpm-knowledge-services/src/test/java/org/droolsjbpm/services/test/DomainKnowledgeServiceBaseTest.java#L56 https://github.com/droolsjbpm/jbpm/blob/master/jbpm-services/droolsjbpm-knowledge-services/src/test/java/org/droolsjbpm/services/test/DomainKnowledgeServiceBaseTest.java#L56

There is no need for a transport because everything is running inside weld, do you need to have an external component for running the human tasks? Is that a requirement for your application?


All the CDI services can be exposed using Switchyard/Camel, so we are planning to provide support for that in later stages, but it's not there yet. 
Cheers
--------------------------------------------------------------

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

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20121113/81247cc8/attachment-0001.html 


More information about the jboss-user mailing list