2 Replies Latest reply on Feb 2, 2010 8:33 AM by cicciovega

    Java Activity array args...how to?

      Hi, im new of forum and of JBPM, i've tried to create a HelloWorld process but i had a problem: how to pass string array to java activity method??

       

      my process is:

       

      <?xml version="1.0" encoding="UTF-8"?>

       

      <process name="helloworld" xmlns="http://jbpm.org/4.3/jpdl">

       

         <start g="13,156,48,48" name="start1">

            <transition g="-55,-18" name="to request" to="request"/>

         </start>

         <java class="org.jbpm.helloworld.Println" continue="sync" g="163,114,75,52" method="request" name="request">

            <arg>

            ...... (i'm missing here!!)

            </arg>

            <transition g="-42,-18" name="to end1" to="end1"/>

       

         </java>

         <end g="387,182,48,48" name="end1"/>

       

      </process>

       

      and my method is:

       

      public void request(String[] var) {

       

      try {

      System.out.println("INIZIO");

      Example example  = new Example(var);

      System.out.println("FINITO");

       

      } catch (Exception e) {

      System.out.println("EXCEPTION: "+e.getClass().getName());

      e.printStackTrace();

      }

       

       

      Thanks for help.