-
1. Re: how to invoke Java class
tsurdilovic Jul 21, 2011 12:38 PM (in response to ace_team)Probably easiest way would be to create a custom workitem that calls your class and does what you need it to do. Docs have a good section on domain specific activities.
-
2. Re: how to invoke Java class
ace_team Jul 21, 2011 4:38 PM (in response to tsurdilovic)Probably you're right. Reading the documentation I had the same idea. But my question is: how can I exactly use a workitem to call a Java method? Seeing "Hello Worlds" example, I think I just have to put the method's signature, but it doesn't work. I can't find a step by step guide...
-
3. Re: how to invoke Java class
tsurdilovic Jul 21, 2011 5:09 PM (in response to ace_team)Look at chapter 13 of the docs - http://docs.jboss.org/jbpm/v5.1/userguide/ch13.html. Specifically 13.2.4 Executing Service Nodes.
Also looking at the workitem handler example in 13.2.4 when your process reaches the workitem node, the handler's executeWorkItem method gets called. This is all java code, so as long as you have your specific classes you want to call methods upon on the classpath, you can do whatever you want.
-
4. Re: how to invoke Java class
ace_team Jul 22, 2011 11:52 AM (in response to tsurdilovic)Thanks! I'm working with jBPM5.0 than I had not read the jBPM5.1 documentation, yet!