Assigned work to multiple users from a variable based list

345 views
Skip to first unread message

swati.sa...@gmail.com

unread,
Nov 8, 2014, 6:52:05 AM11/8/14
to suppor...@runmyprocess.com
Hi ,

In my web interface i have a radio button (report this to), this is holding the values from custom list, on click on its option a hidden variable list appears from where the user select number of persons as he wants to assign the job.

But while reading the runmypocess documentation i found at either a single person can be assigned a job, or a all the users in a dynamic lane can be assigned but when one of the user reply the process gets updated.

But here is my question that whether multiple selected person from a variable based list can be assigned a job , and until and unless all the person whom the job has been assigned responds the process don't get updated.

so please help me out, or provide me any other alternate solution to achieve this..

Madhuri Jadhav

unread,
Nov 10, 2014, 4:18:03 AM11/10/14
to suppor...@runmyprocess.com, swati.sa...@gmail.com
Hi Swati,

Create one dynamic role.(dyanic role checeked in it).See attached screenshot.

Then Create a main process having activity as subprocess with parallel loop.See attached
Create another process and add one manual task in it.See attached.

Now in main process in loop tab provide  array i.e. your list variable which contains multiple users selected and fetch role_id in input variable of it.
In sub process in manual task assign this role_id in Assign to entity(for this check Keep visible for roles.)


Your manual task should lie in Dynamic role.
So,unless and untill all users approve the task,task will not get approved.

Hope this helps you!

Thanks,
Madhuri,Fujitsu RunMyProcess
Dynamic role.png
SubProcess_parallel_loop.png
Fetch_role_id.png

swati.sa...@gmail.com

unread,
Nov 10, 2014, 5:43:59 AM11/10/14
to suppor...@runmyprocess.com, swati.sa...@gmail.com
Hi Madhuri,

I just want to select multiple persons irrespective of their roles, which means if the user selects two persons from the variable list those two persons will receive the email notification of the manual task, and the rest persons of the role will not receive any email notification of manual task.

can this be done?????

Bidisha Das

unread,
Nov 10, 2014, 8:34:00 AM11/10/14
to suppor...@runmyprocess.com, swati.sa...@gmail.com
Hi Swati,
Yes, this can be done. After selecting the two persons, store the email ids in a variable as RMPApplication.set("email_receivers",id_variablelist.getSelectedValue()) , then pass this variable  to the recipient of the mail activity as ${email_receivers}. Make sure your email ids are not passed as ["email_id"].It should be passed as email_id1,email_id2 etc. Also please make sure both the users are present in the respective role of your manual activity.



Thanks & Regards
Bidisha

swati.sa...@gmail.com

unread,
Nov 10, 2014, 12:44:19 PM11/10/14
to suppor...@runmyprocess.com, swati.sa...@gmail.com
Hi Bidisha,
As i want to implement this part in manual activity of my process so just
want to confirm that if i passed ${email_receivers} in the assign to box of the manual activity then whether the two selected persons only will have the job assigned , and the rest other person will not receive any sort of assigned task from the manual activity.

could you please confirm me.

Bidisha Das

unread,
Nov 10, 2014, 10:08:25 PM11/10/14
to suppor...@runmyprocess.com, swati.sa...@gmail.com
Hi Swati,
You can check the check box in the manual activity "Notify via email". So only you come to know if only the selected users are receiving the email to take action on the manual task.


Thanks & Regards
Bidisha

swati.sa...@gmail.com

unread,
Nov 10, 2014, 11:23:25 PM11/10/14
to suppor...@runmyprocess.com, swati.sa...@gmail.com
Hi Bidisha,
I just tried implement the part in the manual activity, But i am getting the following error.

2014-11-10T21:49:23+0000 - Task "HOD will check" (id: 50[0] - status: ABORTED): Error while processing {email_receivers}
Expression email_receivers is undefined on line 1, column 3 in HOD will check.

Bidisha Das

unread,
Nov 11, 2014, 1:23:11 AM11/11/14
to suppor...@runmyprocess.com, swati.sa...@gmail.com
Hi Swati,
You need to first set the email ids in a a variable as RMPApplication.set("email_receivers",id_variablelist.getSelectedValue()) in a js in WI . Then in your manual activity, you need to take a multi-instance sequential loop with array variable ${email_receivers}. In input variables of the manual activity, take assignee:${email_receivers[P_index]} . After that put ${assignee} in the "Assign to" box of manual activity. 

Let me know if it worked.



Thanks & Regards
Bidisha
Message has been deleted

swati.sa...@gmail.com

unread,
Nov 11, 2014, 5:53:22 AM11/11/14
to suppor...@runmyprocess.com, swati.sa...@gmail.com
Hi Bidisha,

Ignore my previous mail, i made their A mistake, But now i am getting the following error

2014-11-11T10:45:34+0000 - Task "HOD will check" (id: 50[0] - status: ABORTED): Unauthorized: Somjit Banerjee. User is unknown

Where as i have defined my name a authorised And acceptance user both in Safety Officer And hod role.

So please tell me where i am going wrong???

Bidisha Das

unread,
Nov 11, 2014, 8:08:28 AM11/11/14
to suppor...@runmyprocess.com, swati.sa...@gmail.com
Hi Swati,
Make sure you have added the role which contains the user Somjit Banerjee in User in access right's tab of your project or else it will throw error in acceptance mode.Also the role should be present in the lane which contains the manual activity in process. Let me know if issue got resolved.


Thanks & Regards
Bidisha

swati.sa...@gmail.com

unread,
Nov 11, 2014, 2:43:43 PM11/11/14
to suppor...@runmyprocess.com, swati.sa...@gmail.com
Hi Bidisha,

I have cheked and i found that i have define somjit banerjee in the USER acess right tab of the hod role, as well as the hod role lane is also present i the manual activity , but still facing the same error.

Bidisha Das

unread,
Nov 12, 2014, 2:25:24 AM11/12/14
to suppor...@runmyprocess.com, swati.sa...@gmail.com
Hi Swati,
Would you let me know how you are selecting up the email ids and setting up the values in a variable? Send me your js code.


Thanks & Regards
Bidisha
Message has been deleted

swati.sa...@gmail.com

unread,
Nov 17, 2014, 6:30:27 AM11/17/14
to suppor...@runmyprocess.com, swati.sa...@gmail.com
Hi Bidisha,

Sorry for the late reply, i am explaining you step wise what i am trying to do,
At first i have created a back office which holds three list

1) Product Line (type custom list)

2) Observation plant location (type : custom list)

3) safety officer (type : user[safety officer role])

now i am entering the respective values by clicking on add item into the back office.

In my web interface i am mapping the values of a repective product line with their repective plant location and by clicking on repective plant location i am trying to select their respective safety officer.

For ex - if i select product line x for that a list appears in observation plant location from which i select y location upon selecting the y loaction i am getting the respective safety officers a,b,c(for example) selecting these three safety officer i want the manual task should be assigned to these three only and none other person in safety officer role will recive email.

As you told earlier in the post i have taken a hiiden text input email receivers with the following js code

RMPApplication.set("email_receivers",id_safety_officer.getSelectedValue())

Now when i am including the rest of the part in the process as you said earlier then it is genrating the following error,

2014-11-17T11:08:59+0000 - Task "Safety officer will check/Hod" (id: 17[0] - status: ABORTED): Expression {email_receivers} evaluates to which is not a valid array


Bidisha Das

unread,
Nov 17, 2014, 7:31:50 AM11/17/14
to suppor...@runmyprocess.com, swati.sa...@gmail.com
Hi Swati,
You don't need to take any hidden text box. Directly use the js: RMPApplication.set("email_receivers",id_safety_officer.getSelectedValue()) where id_safety_officer is the id of your multi-selection list consisting of users. After that follow the same in the process as I mentioned above & check if it is working.


Thanks & Regards
Bidisha

Swati Sarkar

unread,
Nov 17, 2014, 7:44:51 AM11/17/14
to suppor...@runmyprocess.com, bd...@runmyprocess.com
Hi Bidisha,

As you have said i have removed the hidden text box and i have taken only a hidden split widget of  js with the following code
RMPApplication.set("email_receivers",id_safety_officer.getSelectedValue()) 

But still getting the error:

Task "Safety officer will check/Hod" (id: 17[0] - status: ABORTED): Expression {email_receivers} evaluates to  which is not a valid array

Bidisha Das

unread,
Nov 17, 2014, 8:49:36 AM11/17/14
to suppor...@runmyprocess.com, bd...@runmyprocess.com, swati.sa...@gmail.com
Hi Swati,
Can you please send screenshots of your process & activities. Are you using a multi-selection picker list with type Users? Remove the code and directly use the value variable of the multi selection list in your process in the array variable as ${safety_officer} and try in the same way using loop and input variable as I mentioned above. If not working please let me know because it is working fine for me. I guess you are using some other code.


Thanks & Regards
Bidisha

Swati Sarkar

unread,
Nov 18, 2014, 1:06:34 AM11/18/14
to suppor...@runmyprocess.com, bd...@runmyprocess.com
Hi Bidisha,

I have done the required changes that you have told me to do and the process is running fine now its not a problem any more, but the safety officer's whom i am selecting , they are not getting any mail notification from manual task in their inbox.

I have checked for more than five minutes but we haven't received the mail.

so could you please tell me where i am going wrong?????

Swati Sarkar

unread,
Nov 18, 2014, 1:19:43 AM11/18/14
to suppor...@runmyprocess.com, bd...@runmyprocess.com
Hi Bidisha,

please ignore my previous mail everything is working fine we are getting the mail, i have done a mistake which i have rectified. Sorry for the trouble.

Thanks a lot to help me out in this issue.

Swati Sarkar

unread,
Nov 18, 2014, 2:40:40 AM11/18/14
to suppor...@runmyprocess.com, bd...@runmyprocess.com
Hi Bidisha,

I want a little bit help on issue of reassignment in my process.

I am defining  user's in my organisation with a role safety officer and assignee now for flexibility i am defining the users who are in safety officer role to the assignee role also for example if x is defined for safety officer then x is also defined for the assignee role but the vice versa is not true(i.e all the assignees are not defined for the safety officer role) the point of doing this is that,

suppose a safety officer assigns two person at a time for a particular job now , after assigning it came to his knowledge that this two persons whom he has assigned are on leave right, so in that scenario, he will assign the job to some other persons.

But  the problem now is that if the safety officer want to reassign the job to some other people or add some more assignee for that particullar job  he is not able to do so beacuse earlier the job has been already assigned to two particular persons and until and unless these two person respond the safety officer is not able to reassign.

so could you please help me in achiveing in what i am trying to do??

Bidisha Das

unread,
Nov 18, 2014, 3:52:25 AM11/18/14
to suppor...@runmyprocess.com, bd...@runmyprocess.com, swati.sa...@gmail.com
Hi Swati,
In order to this,you need to maintain a status for the assignee like: Vacation/Available/Leave and then match this status at the time when the safety officer is assigning task to the assignee.Suppose Status=="Vacation",so the Safety Officer won't be able to assign the task itself to the respective users who are on leave.

If you want it to be done via process,then you need to match the status in process gateway and use a backloop condition http://docs.runmyprocess.com/Developer_Guide/Process/Design/Backloop  if status=="vacation" so that the task will be assigned back to the Safety Officer if the assigned users are on leave and he can again reassign the task to the available assignees.


Thanks & Regards
Bidisha

Swati Sarkar

unread,
Nov 18, 2014, 5:19:16 AM11/18/14
to suppor...@runmyprocess.com, bd...@runmyprocess.com
Hi Bidisha,

Little bit query, suppose when the safety officer assigned the assignee after the job has been assigned the assignee has given resignation or he is ill at that time how the safety officer will reassign?? because when he was assigning he was available but currently he has given resignation at that point of time what should be done,

More over suppose the safety officer has assigned the job to a wrong person , now he wants to correct this scenario and reassign the job correct person.

How this could be achieve????


Swati Sarkar

unread,
Nov 18, 2014, 5:45:23 AM11/18/14
to suppor...@runmyprocess.com, bd...@runmyprocess.com
Hi ,

One more thing that i forgot to discuss with you i.e the  safety officer has assigned the job to two persons, one person reply to say the job is done now the safety officer thinks that there is no need for the second person to reply and he wants to close the case but since the second assignee has not replied yet so the safety officer is unable to close the case.

so how resolve this issue????

Sweta Suman

unread,
Nov 19, 2014, 2:22:44 AM11/19/14
to suppor...@runmyprocess.com
Hi Swati,

Query 1: For  a scenario when assignee is unavailable or on leave you can use "Delegation" app available.


Query 2: Manager can cancel the assignment by calling connector "Validate a manual task" it will close that manual task even though other assignee have not responded.

If you still have any query, feel free to ask.

Thanks and Regards,
Sweta

--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "RunMyProcess Support Forum" 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/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/CA%2B00SPF-KbzXqnbPAjXZYFu_TLkH_K4CBM6ag-wnxQSSZgTpOg%40mail.gmail.com.

Swati Sarkar

unread,
Nov 20, 2014, 12:21:51 AM11/20/14
to suppor...@runmyprocess.com, bd...@runmyprocess.com, ssu...@runmyprocess.com
HI sweta,

I have gone through the link that you send to me there i found the following line

We are currently developping a web interface that will enable you to create, update and delete delegations. If you want to use this feature now, please contact our support

So could you please tell me what are the requirements that need to be done, so that we can create update and delete delegation.

You received this message because you are subscribed to a topic in the Google Groups "RunMyProcess Support Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/a/runmyprocess.com/d/topic/supportforum/AfGM6XdKHFk/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/.

Swati Sarkar

unread,
Nov 20, 2014, 12:39:24 AM11/20/14
to suppor...@runmyprocess.com, bd...@runmyprocess.com, ssu...@runmyprocess.com
Hi Sweta ,

You said Manager can cancel by calling a connector "Validate a manual task" but the thing is that at a time how can be activity work as manual as well as for the connector?????


I am attaching the screen shot of my process for your better understanding...

Please help me out to solve this issue....

Process Flow.png

Swati Sarkar

unread,
Nov 20, 2014, 2:37:01 AM11/20/14
to suppor...@runmyprocess.com, Sweta Suman
Hi Sweta,

Please Ignore my Previous mail I am sending you my account id it is swati....@sharobitech.com

On Thu, Nov 20, 2014 at 1:05 PM, Swati Sarkar <swati.sa...@gmail.com> wrote:
Hi Sweta,

My Account Id is swat....@sharobitech.com

On Thu, Nov 20, 2014 at 12:37 PM, Sweta Suman <ssu...@runmyprocess.com> wrote:
Hi Swati,

Please send me your Account ID .

Thanks and Regards,
Sweta

On Thu, Nov 20, 2014 at 12:21 PM, Swati Sarkar <swati.sa...@gmail.com> wrote:
Hi Sweta,

I am providing you my admin id... swati....@sharobitech.com,somjit....@sharoitech.com(both are admins).....

On Thu, Nov 20, 2014 at 12:04 PM, Sweta Suman <ssu...@runmyprocess.com> wrote:
Hi Swati,

Delegation app is available,to copy that project into your account we need your Account ID and Admin user id.

On click of "cancel" in WI of safety office you have to call another process with type "Connector(Validate Manual task)" and put a condition in input variable as choice =="cancel".
In your main process - you have to check  choice =="cancel" condition in XOR gateway of Assignee which will validate assigned manual task.
Please find attached screenshot.

Thanks and Regards,
Sweta

Swati Sarkar

unread,
Nov 20, 2014, 3:08:39 AM11/20/14
to suppor...@runmyprocess.com, Sweta Suman
Hi Sweta,

Sorry for the trouble,  this is the account id: 113561401431760429

On Thu, Nov 20, 2014 at 1:37 PM, Swati Sarkar <swati.sa...@gmail.com> wrote:
Hi Sweta,

Sorry for the trouble,  this is the account id: 113561401431760429

On Thu, Nov 20, 2014 at 1:21 PM, Sweta Suman <ssu...@runmyprocess.com> wrote:
Hi Swati,

Goto-->Account(Top left of portal)-->Configuration-->Account Configuration-->Account Id. Provide me that Id.

Thanks and Regards,
Sweta

Swati Sarkar

unread,
Nov 20, 2014, 7:46:50 AM11/20/14
to suppor...@runmyprocess.com, Sweta Suman
Hi Sweta,

I cannot find the "Delegation" app still now in my account , so please drop me a mail when it is done.....

Sushma Padidela

unread,
Nov 20, 2014, 2:28:38 PM11/20/14
to suppor...@runmyprocess.com, swati.sa...@gmail.com, Sweta Suman
Hi Swati,

The "Delegation" app has been deployed on your account along with couple of other apps which would be useful. These apps are not editable and are managed by RunMyprocess. The project name is "rmp:delegation" there is web interface inside the project and you can do delegation of tasks from one user to other from there. There are also instructions mentioned on how it works. Let us know if you have any questions on that.

Thanks,
Sushma
Fujitsu RunMyProcess

swati.sa...@gmail.com

unread,
Nov 21, 2014, 3:48:53 AM11/21/14
to suppor...@runmyprocess.com, swati.sa...@gmail.com, ssu...@runmyprocess.com
Hi all,

Thanks for solving the issue...

Reagrds
Swati Sarkar
Reply all
Reply to author
Forward
0 new messages