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

    Java Activity array args...how to?

    ciccio ciccio Newbie

      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"/>


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


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


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



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




      and my method is:


      public void request(String[] var) {


      try {


      Example example  = new Example(var);



      } catch (Exception e) {

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





      Thanks for help.