Scripted lanes

179 views
Skip to first unread message

aleber...@gmail.com

unread,
May 7, 2018, 3:46:54 PM5/7/18
to Fujitsu RunMyProcess Developer Community
Hello,
I need to configure roles dynamically based on scripts. The scripts should read a collection were we have a list of users, their job profiles and departments.
The roles should be dynamics based on information from this collection.

Can you help me with some example for this script?

Thanks
Alejandro

Richard Manga

unread,
May 7, 2018, 3:58:22 PM5/7/18
to suppor...@runmyprocess.com
Good morning Alejandro,

I think it is better to use a "Runtime Lane".

In fact, the scripted lane formula should not have long / complex operations.

Using the Runtime Lane, in your process you should be able to assign the tasks dynamically using the following 2 functions to add / remove users from lane:

P_add_user_to_lane(laneId, userId) 


P_remove_user_from_lane(laneId, userId)


Regards,

Richard





--
Fujitsu - RunMyProcess
---
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+unsubscribe@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at https://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/42dc0e04-42aa-40f4-ac4f-998be46f7e70%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.

aleber...@gmail.com

unread,
May 8, 2018, 12:03:46 AM5/8/18
to Fujitsu RunMyProcess Developer Community
Thanks Richard for your answer.

Can you please show me any examples querying data from collections for scripted and runtime lanes?


Thanks
Alejandro

aleber...@gmail.com

unread,
May 15, 2018, 2:11:06 PM5/15/18
to Fujitsu RunMyProcess Developer Community, aleber...@gmail.com

Dipen Raval

unread,
May 15, 2018, 3:28:46 PM5/15/18
to Fujitsu RunMyProcess Developer Community, aleber...@gmail.com
Hi Alejandro,

For more information about the scripted and runtime lane,
please refer the below links.



Please don't hesitate to contact us for any further query.

Thanks & Regards,
Dipen Raval
Fujitsu - RunMyProcess Support

--
Fujitsu - RunMyProcess
---
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+unsubscribe@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at https://groups.google.com/a/runmyprocess.com/group/supportforum/.

aleber...@gmail.com

unread,
May 16, 2018, 9:05:14 AM5/16/18
to Fujitsu RunMyProcess Developer Community, aleber...@gmail.com
Hi Dipen,
I need to manage one role in both mode manually and dynamically. Are there any way to do it?

Thanks
Alejandro

Pankaj Kumar

unread,
May 16, 2018, 5:39:09 PM5/16/18
to Fujitsu RunMyProcess Developer Community, aleber...@gmail.com
Hi,

To set user in lane from collection data will not be the optimal choice for your implementation as script will not auto execute on any data change in collection. 

To set user from collection as described the in run time lane, please create a runtime lane.

1. Create a collection which is having user info (user id. user login, other data is optional as per your business requirement)
2.  Make a query on collection to get the user login or user id
3.  use P_add_user_to_lane method to add user, if multiple user, please make a loop to run multiple times as per no. of users.

Note:- Please refer to attached screen-print for reference.


Thank you,
Pankaj Kumar
Fujitsu RunMyProcess Support


Thanks
Alejandro

--
Fujitsu - RunMyProcess
---
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+unsubscribe@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at https://groups.google.com/a/runmyprocess.com/group/supportforum/.
1.png

Dipen Raval

unread,
May 21, 2018, 6:34:43 PM5/21/18
to Fujitsu RunMyProcess Developer Community, Alejandro Bertolli
Hi Alejandro,

Could you please confirm that issue has been clarified?
Please don't hesitate to contact us for any further query.

Thanks & Regards,
Dipen Raval
Fujitsu - RunMyProcess Support

aleber...@gmail.com

unread,
May 22, 2018, 12:38:26 PM5/22/18
to Fujitsu RunMyProcess Developer Community, aleber...@gmail.com
> 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 https://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/8f85166b-e654-4153-861a-8badbcc70358%40runmyprocess.com.
>
>
>
> For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.
>
>
>
>
>
>
>
>
>
> --
>
> Fujitsu - RunMyProcess
>
> ---
>
> 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.
Hello,

The solution answer my question but it is not solving my issue because I have a lot of roles already assigned in different processes and if I'd want to use runtime roles I have to create newones and assign to all my processes. It could get a big impact.
Are there an alternative to assign users to a role automatically using a process but maintaining my current role configuration?

Thanks
Alejandro
Reply all
Reply to author
Forward
0 new messages