JBoss Community

setting a list as an argument of a java task.

created by Samrat Roy in jBPM - View the full discussion

Hi ,

 

I want to set the parameter of a java task method as a list :

 

here is my jpdl snippet:

 

  <java expr="#{configurationService}" g="320,102,130,52"

   method="loadConfiguration"

   name="LoadConfiguration"

   var="configuration">

      <arg><string value="c2314"/></arg>

      <transition g="-103,-18" name="to GetNextApprover" to="GetNextApprover"/>

   </java>

 

 

   <java class="com.canon.jBpm.services.LoadConfigurationService" g="324,200,122,52"

   method="getNextApprover"

   name="GetNextApprover"

   var="approver">

   <arg>Insert syntax to pass configuration obtained in the previous java block</arg>

      <transition g="-96,-18" name="to SendNotification" to="SendNotificationforApproval"/>

   </java>

 

Configuration obtained in var = "configuration" is of type List<LMSUserApproverConfig> config.

 

the method signature of the method getNextApprover is

 

public LMSUserApproverConfig getNextApprover(List<LMSUserApproverConfig> config);

 

How to do it?

Reply to this message by going to Community

Start a new discussion in jBPM at Community