how to assign an entire lane to another runtime_lane

229 views
Skip to first unread message

con...@trustinvest.fr

unread,
Apr 14, 2015, 9:45:42 AM4/14/15
to suppor...@runmyprocess.com
Hi all,
I would like to assign all users from a lane (for example 512321) to a runtime lane.
I have seen the function {P_add_user_to_lane() but it works just for one user.
-> does a P_add_lane_to_lane function exist ?
How to handle that otherwise ? with a loop ? which one ?
Regards

Bidisha Das

unread,
Apr 14, 2015, 10:41:16 AM4/14/15
to suppor...@runmyprocess.com
Hi,
You can store all the user ids belonging to the lane in array format in an output variable as: user_id=[user_id 1,user_id 2,user_id 3.....]
Then use the code:
<#list user_id as user_list>
${P_add_user_to_lane(lane_id,user_list)}
</#list>


Thanks & Regards
Bidisha

Contact Trustinvest

unread,
Apr 14, 2015, 4:57:31 PM4/14/15
to suppor...@runmyprocess.com
Hi Bidisha,
I tried the following code (trying to convert an array in list in a first time) , but the syntax sounds incorrect.
Can you help ?
Regards

<#assign myarray = get_lane_users(97972,248661)>
<#assign my_list = []> 
<#list myarray.id as x> 
<#assign my_list = my_list + x> 
</#list>
<#list user_id as user_list>
${P_add_user_to_lane(249532,user_list)}
</#list>



--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to a topic in the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this topic, visit https://groups.google.com/a/runmyprocess.com/d/topic/supportforum/LKL0ZwggCZw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/CAMGV9zs7FLEvBxB3%2BBavdMn1o0YuX35NFWwpTnnkCGGqMppohw%40mail.gmail.com.

Pankaj Kumar

unread,
Apr 15, 2015, 7:35:46 AM4/15/15
to suppor...@runmyprocess.com, con...@trustinvest.fr
Hi,

Please try below code,

<#assign myarray = get_lane_users(97972,248661)>
<#assign my_list = []> 
${myarray}
<#list myarray as x>  
<#assign my_list = my_list + [x.id]>
</#list>
${my_list}
<#list my_list as userId>
${P_add_user_to_lane([249532,userId])}
</#list>

For Run time lanespPlease refer to the below links


Thank you,
Pankaj Kumar
Fujitsu RunMyProcess Support


You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.

To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.

Pankaj Kumar

unread,
Apr 16, 2015, 4:44:38 AM4/16/15
to Contact Trustinvest, suppor...@runmyprocess.com
Hi,

Please use this code in the "Start" activity of the process, it should work fine. I am attaching the screenshot for the reference.

Thank you,
Pankaj Kumar
Fujitsu RunMyProcess Support

On Wed, Apr 15, 2015 at 9:11 PM, Contact Trustinvest <con...@trustinvest.fr> wrote:
Hi Pankaj and many thanks for that proposition.
 
It is almost working but I get the following error message : any idea where it could come from ?
Regards
 
Error while processing
<#assign myarray = get_lane_users(97972,248661)>
<#assign my_list = []>
${myarray}
<#list myarray as x> 
<#assign my_list = my_list + [x.id]>
</#list>
${my_list}
<#list my_list as userId>
${P_add_user_to_lane(249532,userId)}
</#list>
${get_lane_users(97972,249532)}
Expected usage P_add_user_to_lane(laneId, userId)
 
 
runtimeLane.PNG

Pankaj Kumar

unread,
Apr 16, 2015, 11:25:33 PM4/16/15
to suppor...@runmyprocess.com

---------- Forwarded message ----------
From: Pankaj Kumar <pku...@runmyprocess.com>
Date: Fri, Apr 17, 2015 at 8:29 AM
Subject: Re: [supportforum:6958] how to assign an entire lane to another runtime_lane
To: Contact Trustinvest <con...@trustinvest.fr>


Hi,

Please use the previously suggested freemarker code in the "start" activity of the process. It seems like the confusion came by the screen shot, where it shows the single user to be added on run time lane, its just the reference for the start activity.



Please try the code below.

<#assign myarray = get_lane_users(81149,196447)>
<#assign my_list = []> 
${myarray}
<#list myarray as x>  
<#assign my_list = my_list + [x.id]>
</#list>
${my_list}
<#list my_list as userId>
${P_add_user_to_lane(249987,userId)}
</#list>

Attached are the screen shot of the start activity and the result where 3 users are added in a runtime lane.


Thanks.
Pankaj

On Thu, Apr 16, 2015 at 10:22 PM, Contact Trustinvest <con...@trustinvest.fr> wrote:
Pankaj,
The question is how to enter a variable into another variable in freemarker code?
${P_add_user_to_lane(249532,${userId})}.
Regards

2015-04-16 18:02 GMT+02:00 Contact Trustinvest <con...@trustinvest.fr>:
Pankaj,
Thanks for your test but I have several users to be added (not just one like in your example) ;thus, I am using the #list freemarker function which doesn't seems to be working with a variable userId like P_add_user_to_lane(249532,userId).
Any idea why ?
Regards
 
result.PNG
start1.PNG
Reply all
Reply to author
Forward
0 new messages