2 Replies Latest reply on Jun 15, 2010 8:32 AM by Jaber C. Mourad

    All processInstance variables into a java activity ?

    Jaber C. Mourad Novice



      I looking for something to permit the injection of all variables as method arg in java activity in jbpm 4.3...


      My java activity needs all the current process variables to generate a document... is it possible to describe that ?


      My java class accepte a java.util.Map, but I don't know how to put it in <arg> tag...

      <java g="77,90,157,40" name="generateMyDocument" expr="#{pdfDocumentGenerator}"
        method="generate" var="userDocumentPath"
        <arg><string value="myDocumentTemplateURL"/></arg>
      <arg><object expr="#{?(here something to get the map containing process instance variables)}"/></arg>
            <transition to="send mail"/>