cancel
Showing results for 
Search instead for 
Did you mean: 

CandidateUser list parsing

dwoodbury
Champ in-the-making
Champ in-the-making
Hello:

Given the following BPMN:
<userTask id="usertask2" name="Approver Task" activiti:candidateUsers="${assignee}" activiti:formKey="/vacationRequest/create"></userTask>

And following value for ${assignee}
"fozzie, peter, kermit"

Activiti treats the value of ${assignee} as a single user, rather than a comma delimited string of three users.

If however I use the following BPMN, the candidate assignments are made to the three users:
<userTask id="usertask2" name="Approver Task" activiti:candidateUsers="peter, fozzie, kermit" activiti:formKey="/vacationRequest/create">

Any thoughts on what I might be doing wrong?

David Woodbury
2 REPLIES 2

trademak
Star Contributor
Star Contributor
Hi,

When you want to have multiple candidate users you'll have to use a Collection<String> variable.

Best regards,

psagarna
Champ in-the-making
Champ in-the-making
David, Could you send me your external form as example, becouse I'm trying differents ways to put it but doesnt appear.

For example I have order.form and I have put inside resources folder,after that inside the bar file which I deploy. But dosent work. Do you know what is the problem? Kind regards. Pablo

<h1>Titule</h1>
<table>
  <tr>
    <td>
      <label>Expected delivery time:<br/>
        <input type="text" name="prueba" value="" />
        <input type="hidden" name="prueba_required" value="true" />
        <input type="hidden" name="prueba_type" value="String" />
      </label><br/>
    </td>
  </tr>
    <tr>
    <td>
      <label>
        Amount:<br/>
        <input type="text" name="amount" value="" />
        <input type="hidden" name="amount_required" value="true" />
        <input type="hidden" name="amount_type" value="Integer" />
      </label><br/>
    </td>
  </tr>
</table>