2 Replies Latest reply on Jul 17, 2009 5:35 AM by efabbri

    jbpm4 arg

    xdirewolfx

      for java component, how do you define a class object as an argument? I tried to look in the documentation but didn't find it.

      Thank you in advance

        • 1. Re: jbpm4 arg
          xdirewolfx

          anyone got an answer for this

          • 2. Re: jbpm4 arg

            I found this solution.

            http://docs.jboss.com/jbpm/v4.0/userguide/html_single/#java

            If you watch the source file of the test class (you can find it in the java examples) you will see that you can pass to the execution a Map<String, Object>. In this map you can insert an object as:

            Map<String, Object> attributes = new HashMap<String, Object>();
            attributes.put("myObject", new Object());
            
            executionService.startProcessById(processId, attributes);
            


            and now everytime your process call #{myObject} it return your "new Object()" that you have passed in initialization.

            Does is this what you want? See the examples!

            Emanuele Fabbri