CandidateUser list parsing

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2012 12:49 AM
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
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
Labels:
- Labels:
-
Archive
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2012 05:43 AM
Hi,
When you want to have multiple candidate users you'll have to use a Collection<String> variable.
Best regards,
When you want to have multiple candidate users you'll have to use a Collection<String> variable.
Best regards,
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2012 08:05 PM
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>
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>
