[jboss-user] [jBPM] - Re: Is it possible to integrate CDI beans into script and service tasks within jBPM 5.4?
vchmakov
do-not-reply at jboss.com
Mon May 27 21:45:04 EDT 2013
vchmakov [https://community.jboss.org/people/vchmakov] created the discussion
"Re: Is it possible to integrate CDI beans into script and service tasks within jBPM 5.4?"
To view the discussion, visit: https://community.jboss.org/message/819731#819731
--------------------------------------------------------------
Hi Mauricio,
I found answer to my question in “jBPM5 Developer Guide” book on page 143:
“Business users do not commonly use script tasks, but they are really helpful for technical people. By adding script tasks to a process we can easily modify the behavior of our processes without modifying any Java class. We can use this type of task to add logs, messages, or to perform data transformation tasks in our processes. As a rule of thumb, script tasks shouldn’t contain business logic inside them. Abstract tasks, human tasks, and service tasks are better place to implement this kind of logic.”
In our company we usually implement the business logic in plain classes and call methods from the script tasks.
Thanks,
Vladimir
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/819731#819731]
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/20130527/b397f837/attachment-0001.html
More information about the jboss-user
mailing list