1 Reply Latest reply on Jul 9, 2013 4:21 AM by Maciej Swiderski

    Script task, how to import classes

    aemdtuc Newbie

      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

        • 1. Re: Script task, how to import classes
          Maciej Swiderski Master

          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