[jboss-user] [jBPM] - Re: how to call tuscany sca service from script task

Jiri Svitak do-not-reply at jboss.com
Sun Nov 18 11:17:20 EST 2012


Jiri Svitak [https://community.jboss.org/people/jsvitak] created the discussion

"Re: how to call tuscany sca service from script task"

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

--------------------------------------------------------------
I think that you've already described it. To compile a package in Guvnor you have to add a .jar file as a model and also import necessary classes in process properties. The same applies for your application, you have to make sure that necessary classes are on the classpath. But the problem is with the script task itself. It uses Eclipse compiler for Java by default, but this compiler cannot match standard javac compiler. You can use other small compiler like Janino, but this simple compiler does not support generic data types for example. So the script tasks are only for small pieces of code, not for complex code full of all Java features. Not to mention that script tasks block engine execution. Earlier I tried to upload a large .jar file as a model and invoke complex script task, but in the end without success.

Were you able to compile the package which contains your business process? If your script task doesn't execute, please provide a test case, it can be a bug.
--------------------------------------------------------------

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

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/20121118/bc508800/attachment.html 


More information about the jboss-user mailing list