Community

All processInstance variables into a java activity ?

created by Jaber C. Mourad in jBPM - View the full discussion

Hi,

 

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

 

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

 

Regards

Reply to this message by going to Community

Start a new discussion in jBPM at Community