Discussion:
[jboss-user] [jBPM] - Script task, how to import classes
aemdtuc
2013-06-27 11:35:04 UTC
Permalink
aemdtuc [https://community.jboss.org/people/aemdtuc] created the discussion

"Script task, how to import classes"

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

--------------------------------------------------------------
Hi all,

I'm having some problem with script tasks.
I have an structure like Start -> Human Task -> Script Task -> Human Task -> End. And I need to get the output variable from the human task in the script task.
I managed to get the object, but the object is from a type defined in a framework I have.
I tried to do a import to the class but every time I try to build the package in guvnor it says it don't know such a class.
How can I get the script task (or Guvnor) to make the class import I need ?!

Thanks in advance
--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Maciej Swiderski
2013-07-09 08:21:46 UTC
Permalink
Maciej Swiderski [https://community.jboss.org/people/swiderski.maciej] created the discussion

"Re: Script task, how to import classes"

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

--------------------------------------------------------------
you need to upload you project jar (with the classes that you reference in the process) into guvnor using Upload POJO model functionality. Please take a look a guvnor documentation for details.

When it comes to runtime you need to add the same jar into jbpm-console classpath too so the runtime engine can make use of it.

HTH
--------------------------------------------------------------

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

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