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]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to