Massive creation of users and roles

597 views
Skip to first unread message

J.M.

unread,
Feb 3, 2017, 5:40:02 AM2/3/17
to Fujitsu RunMyProcess Developer Community
Hi team,


I would like to know if is possible to do a creation of RunMyProcess users and roles (and the consequent assignation) by loading a file in a concrete format or making some type of script.

Please, note that I'm referring to the creation of RMP users without using the Administration feature which is included in the platform for creating users one by one.


Thanks in advance and regards

Ghanshyam Mule

unread,
Feb 3, 2017, 2:35:18 PM2/3/17
to suppor...@runmyprocess.com, javiermm...@gmail.com
Hi Javier,

Yes Possible.RMP provides functionality to do creation of multiple users & roles by loading a file in concrete format.
Can you please refer user guide link.

If you have any other question or request, please don't hesitate to contact us.

Thanks & Regards
Ghanshyam


--
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/bfbd4ef0-e404-45ef-9da9-9f47ac42c195%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.

J.M.

unread,
Feb 6, 2017, 3:22:12 AM2/6/17
to Fujitsu RunMyProcess Developer Community, javiermm...@gmail.com
Hi Ghanshyam,

This seems to satisfy the maasive creation.
Just one little question more
In the Organization field, I suppose 'pool_id' is representing the organization id, and 'id' is representing role id, isn't it?

Please, correct me if I'm wrong.

Thanks and regards.

On Friday, February 3, 2017 at 8:35:18 PM UTC+1, Ghanshyam Mule wrote:
> Hi Javier,
>
>
>
> Yes Possible.RMP provides functionality to do creation of multiple users & roles by loading a file in concrete format.
> Can you please refer user guide link.
>
>
> If you have any other question or request, please don't hesitate to contact us.
>
>
>
> Thanks & Regards
> Ghanshyam
>
>
> On Fri, Feb 3, 2017 at 4:10 PM, J.M. <javiermm...@gmail.com> wrote:
> Hi team,
>
>
>
>
>
> I would like to know if is possible to do a creation of RunMyProcess users and roles (and the consequent assignation) by loading a file in a concrete format or making some type of script.
>
>
>
> Please, note that I'm referring to the creation of RMP users without using the Administration feature which is included in the platform for creating users one by one.
>
>
>
>
>
> Thanks in advance and regards
>
>
>
> --
>
> 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.

Ankita Shrinath

unread,
Feb 6, 2017, 4:33:36 AM2/6/17
to Fujitsu RunMyProcess Developer Community, javiermm...@gmail.com
Hi Javier,
Good Day.

Yes, you are right.
In organization, "pool_id"is equivalent to "organization_id" and "id" represents the "user_id" not "role_id ".

Hope this helps you. Please let us know for any other help.

Regards,
Ankita

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/.

J.M.

unread,
Feb 6, 2017, 5:23:05 AM2/6/17
to Fujitsu RunMyProcess Developer Community, javiermm...@gmail.com
Hi Ankita,


I don't understand well... If "id" represents "user_id", not "role_id", as you say... What does this means? I don't understand what "user_id" is. I mean, if I'm creating new users, How should I know their id's if they have not even been created? What is the meaning of that field?

Besides...
- How could I assign the users I create massively to a role? Should I do that manually?
- What about a massive creation of roles? Is this possible?


Thanks and regards

javiermm...@gmail.com

unread,
Feb 7, 2017, 10:52:15 AM2/7/17
to Fujitsu RunMyProcess Developer Community, javiermm...@gmail.com
Any aclaration, please?

ankitas

unread,
Feb 14, 2017, 8:28:04 AM2/14/17
to Fujitsu RunMyProcess Developer Community, javiermm...@gmail.com
Hi Javier,
Good Day.

All our apologizes for the delay in reply. 

Sorry for misunderstanding the requirement. 
You need to use "role_id" in place of "id" while uploading the CSV file (for multiple users creation and allocation)

As per your other requirement-
1. You can refer above CSV file while creation of users. You need to mention the "pool_id" (organization id) and Lane id (role_id) in the following format for the specific user-
[{'pool_id':'123465','id':'123456'},{'pool_id':'123465','id':'123456'}]

2. Please refer the connector available in the RMP connector Library - "Create a Lane (Role or Entity)"

Hope this helps you.
Please let us know if you face any issue.

Regrads,
Ankita 

Javier Martín

unread,
Feb 16, 2017, 11:25:37 AM2/16/17
to Fujitsu RunMyProcess Developer Community
Hi Ankita,

1. So, in summary:
'pool_id' ==> organization id
'id' ==> role id
right?

2. For the mentioned connector, it seems that passing it a set of values for creating the role, it will create it. Even, as per my understanding, this connector can receive a list of users (whose format is not enough clear for me) for assigning this users to the created role. However I was talking about a massive creation of roles, that is thousands, maybe tens of thousands.
How could I achiece this? I think a way to get it could be programming in freemarker the process of reading the data and generate an array of objects like [{"lane_name":"my_lane", "id_pool" : "my_pool", "type": "my_type", "user_list" : [userInConcreteFormat1, ..., userInConcreteFormatN]}, ...]
Is my approach correct? In affirmative case, and having this how can I get the creation of the roles, stored in my array? And What kind of format should this array have? or better said What kind of format should the userInConcreteFormat have?


Thanks again and regards.


--
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/PNBiwEtLR44/unsubscribe.
To unsubscribe from this group and all its topics, 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/.
Message has been deleted

J.M.

unread,
Feb 20, 2017, 8:32:46 AM2/20/17
to Fujitsu RunMyProcess Developer Community, javiermm...@gmail.com
Hi again,



I've programmed a freemarker script that generates an array with this form:

[
{"id_pool":"96701","lane_description":"rol identificativo para A","lane_name":"nombreRol_001","user_list":"<link rel=\"user\" href=\"config/117241425975434943/user/302802\" title=\"Javier\" /><link rel=\"user\" href=\"config/117241425975434943/user/624674\" title=\"Javier2\" />","type":"ROLE"},
{"id_pool":"96701","lane_description":"rol identificativo para B","lane_name":"nombreRol_002","user_list":"<link rel=\"user\" href=\"config/117241425975434943/user/302802\" title=\"Javier\" /><link rel=\"user\" href=\"config/117241425975434943/user/624674\" title=\"Javier2\" /><link rel=\"user\" href=\"config/117241425975434943/user/302802\" title=\"Javier\" /><link rel=\"user\" href=\"config/117241425975434943/user/624674\" title=\"Javier2\" />","type":"ROLE"},
...
]

And now, I was thinking in build a process in the form:
Start - build the above array in Freemarker - call the "Create a lane" RMP connector for each element of the array (MultiInstance task) - End

With this approach, I've got a way to make a creation of roles automated, however, I need a MASSIVE creation of roles, and in this way I get some errors about the reach of certains limits ("Oversized request", "Packet for query is too large", "Data too long for column 'xxx' ", "Java heap space", "GC overhead limit exceeded"...). I started with a really big amount of roles and I then started to remove roles in order to know how many roles could I process at a time.
The result is about 400.
Is there any way for getting a bigger amount of processed roles?
This is my configuration:

File reding script:
<#assign panContent = file_content(file[0].id,"none")>
<#assign parray = []>
<#assign listaUsuarios = "">
<#list panContent?split("\r\n") as x>
<#assign elemsLinea = x?split(";")>
<#list elemsLinea[4]?eval as user>
<#assign listaUsuarios = listaUsuarios + "<link rel=\"user\" href=\"config/" + P_customer + "/user/" + user.id + "\" title=\"" + user.nombre + "\" />" >
</#list>
<#assign obj = {"lane_name" : elemsLinea[0], "lane_description" : elemsLinea[1], "id_pool" : elemsLinea[2], "type" : elemsLinea[3], "user_list" : listaUsuarios}>
<#assign parray = parray + [obj] />
</#list>
${parray}


Input file:
nombreRol_001;rol identificativo para A;96701;ROLE;[{"nombre" : "Javier", "id" : "302802"},{"nombre" : "Javier2", "id" : "624674"}]
nombreRol_002;rol identificativo para B;96701;ROLE;[{"nombre" : "Javier", "id" : "302802"},{"nombre" : "Javier2", "id" : "624674"}]
nombreRol_003;rol identificativo para C;96701;ROLE;[{"nombre" : "Javier", "id" : "302802"},{"nombre" : "Javier2", "id" : "624674"}]
...

I attach too, an image with the simple process I'm using.
So, Is there any other way for creating a massive amount of roles?



Thanks again and regards.
> To unsubscribe from this group and all its topics, send an email to supportforum...@runmyprocess.com.

Richard Manga

unread,
Feb 27, 2017, 6:05:23 AM2/27/17
to suppor...@runmyprocess.com, Javier Martín
Good morning Sir,
Please can we have an hangout call in order to discuss this issue? (rma...@runmyprocess.com)
Regards,
Richard Manga



Richard Manga

Support & Training Manager

RunMyProcess


              rmanga@runmyprocess.com

                   +33 (0) 1 75 77 51 82

                           +33 (0) 6 74 75 01 24


3 rue de Gramont

75002, Paris, France.

www.runmyprocess.com

img-275-180-2 img-275-180-2






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/.

Richard Manga

unread,
Feb 28, 2017, 2:57:44 PM2/28/17
to suppor...@runmyprocess.com, Javier Martín
Good morning Sir,
I am Richard (RunMyProcess Support Manager).
I would like to know when it will be possible to have a call on hangout with you in order to discuss about this issue and may be find an optimized solution.
Please, don't hesitate to contact me.
Best Regards,
Richard



Richard Manga

Support & Training Manager

RunMyProcess


              rmanga@runmyprocess.com

                   +33 (0) 1 75 77 51 82

                           +33 (0) 6 74 75 01 24


3 rue de Gramont

75002, Paris, France.

www.runmyprocess.com

img-275-180-2 img-275-180-2






On Mon, Feb 20, 2017 at 2:32 PM, J.M. <javiermm...@gmail.com> wrote:
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/.
Reply all
Reply to author
Forward
0 new messages