Error on Runtime Lanes

491 views
Skip to first unread message

filippo.pra...@noovle.it

unread,
Nov 23, 2015, 11:28:55 AM11/23/15
to Fujitsu RunMyProcess Developer Community
Hi, I'm trying to use method P_add_user_to_lane to add users in a Runtime Lane but the script fails.

<#assign userId = []/>
<#list owner as groupId>
<#assign users = get_lane_users(poolId, groupId)/>
<#list users as user>
<#assign userId = userId + [user.id]/>
</#list>
</#list>
<#list userId as singleId>
${P_add_user_to_lane([303971, singleId])}
</#list>

The error Message response is: "Expected usage P_add_user_to_lane(laneId, userId)"

I also tryed to use
${P_add_user_to_lane(1234, 'f...@bar.com')}
but the script fails.

Thank you for support.
Regards

Cattura4.PNG
Cattura3.PNG

Murali

unread,
Nov 24, 2015, 4:44:29 AM11/24/15
to Fujitsu RunMyProcess Developer Community, filippo.pra...@noovle.it
Hi Filippo,

Could you please try with below syntax to resolve the error.

<#list userId as singleId>
${P_add_user_to_lane(303971, singleId)}
</#list>

Where in userId should be an array with userId's.

Regards,
Murali

ad...@sandroredi.com

unread,
Nov 25, 2015, 11:16:26 AM11/25/15
to Fujitsu RunMyProcess Developer Community, filippo.pra...@noovle.it


Thanks Murali,

your code works fine. My error came from following documentation's syntax, that specified to insert the square brackets.

Regards,
Filippo.

Reply all
Reply to author
Forward
0 new messages