CAPI

382 views
Skip to first unread message

somjit...@gmail.com

unread,
Sep 4, 2014, 3:17:49 AM9/4/14
to suppor...@runmyprocess.com
Hi,

I am trying to develop an Capi for my web interface, now in my web interface i have an array of list with multiple selection enable , below that i have a button called notify,

Now what i want when the users selects that multiple person from my array list, and click on the notify button, the selected multiple persons get the email notification,

could you tell how design my capi for this senario???? or what i have to do???

Bidisha Das

unread,
Sep 4, 2014, 4:22:53 AM9/4/14
to suppor...@runmyprocess.com, somjit...@gmail.com
Hi Somjit,
You can do the following thing using a normal process.As you have said that you have a multi selection list containing list of users.You can take a Text Box and set its visibility as false.Take a javascript widget and write the following code: var res = id_multi selection list.getSelectedValue();
                      RMPApplication.set("text box variable",res);  with listen to variables multi selection list_value variable

On click of your "notify" button,start a process.The process activity would be email and in To: ${text box variable} and create a live version of your project and include this particular process in it so that every one in your user list would receive email notification on trigger of the process.


Thanks & Regards
Bidisha

banerjee...@gmail.com

unread,
Sep 4, 2014, 7:37:38 AM9/4/14
to suppor...@runmyprocess.com, somjit...@gmail.com
Hi Bidisha,

I ahve tried to implement the code that you have said , but no email is being recived by tyhe selected the user, I am sending my js code ,please check where i qam going wrong?? i am also attaching screenshot of my process that i have conifigured

var res = id_user.getSelectedValue();
RMPApplication.set(eml,res);

process.png

Bidisha Das

unread,
Sep 4, 2014, 7:44:49 AM9/4/14
to suppor...@runmyprocess.com, somjit...@gmail.com, banerjee...@gmail.com
Hi Somjit,
Is your process running successfully?If not,what error are you getting? Make sure "id_user" is the identifier of your multi selection list and "eml" is the value variable of your hidden text box and also you are missing double quotes in  RMPApplication.set(eml,res); It should be   RMPApplication.set("eml",res); Run your process in Live mode.


Thanks & Regards
Bidisha

somjit...@gmail.com

unread,
Sep 4, 2014, 8:38:52 AM9/4/14
to suppor...@runmyprocess.com, somjit...@gmail.com, banerjee...@gmail.com
Hi Bidisha,

The process is getting the following error

2014-09-04T12:35:52+0000 - Task "" (id: 1[0] - status: ABORTED): Error while processing {eml}
Expression eml is undefined on line 1, column 3 in temp.

Bidisha Das

unread,
Sep 4, 2014, 8:49:24 AM9/4/14
to suppor...@runmyprocess.com, somjit...@gmail.com, banerjee...@gmail.com
Hi Somjit,
Make sure that you select values from your multi selection users list.i.e the persons you want to send email notifications to and then trigger the process through your "notify" button.


Thanks & Regards
Bidisha

banerjee...@gmail.com

unread,
Sep 4, 2014, 8:56:43 AM9/4/14
to suppor...@runmyprocess.com, somjit...@gmail.com, banerjee...@gmail.com
HI Bidisha,

I am attaching the screenshot of my web interface and all the users who are being selected are defined in designers.

can you tell me where i am going wrong?????

web interface.png

Bidisha Das

unread,
Sep 4, 2014, 9:18:52 AM9/4/14
to suppor...@runmyprocess.com, somjit...@gmail.com, banerjee...@gmail.com
Hi Somjit,
Is Assign your multi selection list? Are you selecting values from it before clicking on "Notify" button.And also can you send me the js code you are using so that I can fix it up.


Thanks & Regards
Bidisha

Bidisha Das

unread,
Sep 4, 2014, 10:54:48 AM9/4/14
to suppor...@runmyprocess.com, somjit...@gmail.com, banerjee...@gmail.com
Hi Somjit,
Did you miss the listen to variables for your js code.Use the value variable of Multi Selection list in "listen to variables" of your java script.Also while running your Web Interface in Live mode,please use this code:

var res =id_user.getSelectedValue();
var res1=eval(res).join(",")
RMPApplication.set("eml",res1);  I have missed the middle code before.The code I mentioned above works fine in Test mode but in Live mode,its unable to recognise the email ids you are providing.So,you can use this 

code when you run your WI in Live mode.It will send email notifications to all the users mentioned in your Multi Selection Users List.


Thanks & Regards
Bidisha





---------- Forwarded message ----------
From: Somjit Banerjee <banerjee...@gmail.com>
Date: Thu, Sep 4, 2014 at 6:56 PM
Subject: Re: CAPI
To: Bidisha Das <bd...@runmyprocess.com>


Hi Bidisha,

Yes assign is my multiselection list, yes i am selecting values from it before clicking on notify button

Ok i will send you the code 

var res =id_user.getSelectedValue();
 RMPApplication.set("eml",res); 

banerjee...@gmail.com

unread,
Sep 9, 2014, 1:51:11 AM9/9/14
to suppor...@runmyprocess.com, somjit...@gmail.com, banerjee...@gmail.com
Hi Bidisha,

First of all i am sory for a late reply, But i am still facing the issue.

Let me tell you what i am doing step by step for my scenario

a) a list widjet is taken with multiple selection enable its value variable is
: user, and its identifier is : id_user

b) Then i am taking a hidden text input with a variable= eml.

c) Then i am taking a hidden split widjet in which i am giving a js widjet,
with listen to variable = user.

d) below that i am giving a notify button which has action as start process
and the process associated with is email type.

In this process in the send mail tab i have given FROM:nor...@runmyprocess.com, and to:${eml}


But when i am testing my process it is giving the following error

2014-09-09T05:23:24+0000 - Task "Send Email" (id: 1[0] - status: ABORTED): Error while processing {eml}
Expression eml is undefined on line 1, column 3 in Send Email.

I am attaching the screen shot for better understanding.

web interface.png
process.png
launch process.png

Shobhit Tripathi

unread,
Sep 9, 2014, 2:48:33 AM9/9/14
to suppor...@runmyprocess.com
Hi Somjit,

As per your previous post, you are using list widget with multiple selection. Could you please explain which type of list you are using it.
The error you are getting is generally occurs when you are not selecting any value and triggers the process.

As in the screenshot, have you used auto-completion text fields?

Please let me know, so that I can help.

Thanks & Regards,
Shobhit
Fujitsu- RunMyProcess




--
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/3065ced6-c72e-4bfd-a947-f8735b6e26e6%40runmyprocess.com.

Somjit Banerjee

unread,
Sep 9, 2014, 2:50:08 AM9/9/14
to suppor...@runmyprocess.com
Hi shobit,

The list Type is users, and all these users are define in the designer

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

Somjit Banerjee

unread,
Sep 9, 2014, 2:56:48 AM9/9/14
to suppor...@runmyprocess.com
Hi Shobit,

Thanks for the reply issue has been solved...

banerjee...@gmail.com

unread,
Sep 16, 2014, 7:31:30 AM9/16/14
to suppor...@runmyprocess.com, banerjee...@gmail.com
Hi,

I just want to use ${P_task_url} in the process that i have created for my noitification button.

Now when i am launching my web interface i am getting the foolowing error.

2014-09-16T11:27:50+0000 - Task "Send Email" (id: 1[0] - status: ABORTED): Error while processing A task has been initiated.<br/><br/>Please click <a href="{P_task_url}">here</a> to access to the link.
Expression P_task_url is undefined on line 1, column 61 in Send Email.

Sweta Suman

unread,
Sep 16, 2014, 8:16:40 AM9/16/14
to suppor...@runmyprocess.com
Hi,

You can use ${P_task_url} only in Manual Activity.

Could you please elaborate your requirement, so that we can assist you further.


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

Somjit Banerjee

unread,
Sep 16, 2014, 8:39:02 AM9/16/14
to suppor...@runmyprocess.com
Hi Sweta,


Ok i tried this with manual activity but when i am specifying users through email activity, but the users which i am selecting multi users while launching the web interface it is giving the following web interface

2014-09-16T12:38:05+0000 - Task "Send Email" (id: 1[0] - status: ABORTED): Invalid host reference.

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

Somjit Banerjee

unread,
Sep 16, 2014, 8:45:03 AM9/16/14
to suppor...@runmyprocess.com
Hi Sweta,

Please ignore my previous mail, the error that i am getting on launching my web interface in my process is the following

2014-09-16T12:41:24+0000 - Task "Send Email" (id: 1[0] - status: ABORTED): Unauthorized: somjit....@sharobitech.com,tanmoy.ch...@sharobitech.com. User is unknown

But all these users have specified as designers. I am selecting these users through multi selection list.

Gareth Thiveux

unread,
Sep 16, 2014, 9:12:29 AM9/16/14
to suppor...@runmyprocess.com
Hi,

You can't assign a manual task to several nominative users.
Whether you type in a single email address in the "Assign To" field or you leave it empty, which would assign the task to the entire role the box is situated in.


Regards,

Project Manager
 Fujitsu RunMyProcess
3 rue de Gramont, 75002 Paris - France

     


Afin de contribuer au respect de l'environnement, merci de n'imprimer ce message qu'en cas de nécessité.
Be environmentally friendly: do not print this email unless it is entirely necessary.

Somjit Banerjee

unread,
Sep 16, 2014, 9:27:48 AM9/16/14
to suppor...@runmyprocess.com
Hi Gareth,

As you could see from my previous email in this same post, i need a variable that will store the email address of the persons which  is selected by the user , and i also want the use of ${P_task_url} or the a variable that hold the link of the form that have been submitted by the user to the higher authority.

Sweta Suman

unread,
Sep 16, 2014, 9:43:45 AM9/16/14
to suppor...@runmyprocess.com
Hi Somjit,

You need to use a list/array variable which consist of "Selected User".Pass this variable to "Assign To" of manual activity . In body of manual activity , use  ${P_task_url } which will send form URL to user.

Thanks and Regards,
Sweta

banerjee...@gmail.com

unread,
Sep 18, 2014, 4:54:06 AM9/18/14
to suppor...@runmyprocess.com
HI Sweta,

I have done exactly what you have said but it is showing the following error

2014-09-18T08:44:42+0000 - Task "Send Email" (id: 1[0] - status: ABORTED): Error while processing {eml}
Expression eml is undefined on line 1, column 3 in Send Email.

for better understanding i am attaching the screen shots and also giving my scripts.

please see where i am going wrong???

proceeas error.png
web interface.png
web interface1.png
web interface2.png

banerjee...@gmail.com

unread,
Sep 18, 2014, 6:18:51 AM9/18/14
to suppor...@runmyprocess.com, banerjee...@gmail.com
Hi,

I was just testing this portion for the time being i have just disable my script and the hidden text box that i have taken earlier in my web interface , i am just passing the variable of multi selection array list into my process now due to this reason i getting the following error

2014-09-18T10:13:38+0000 - Task "Send Email" (id: 1[0] - status: ABORTED): Unauthorized: [["somjit....@sharobitech.com","tanmoy.ch...@sharobitech.com"]]. User is unknown

but all these users are defined as designers and in the acess right tasb as well.

banerjee...@gmail.com

unread,
Sep 19, 2014, 12:38:53 AM9/19/14
to suppor...@runmyprocess.com, banerjee...@gmail.com
Hi,

please help me on these issue

Somjit Banerjee

unread,
Sep 19, 2014, 3:41:56 AM9/19/14
to Shobhit Tripathi, suppor...@runmyprocess.com
Hi Shobit,

I have tried what you have said but it is giving the same error

2014-09-19T07:23:40+0000 - Task "Send Email" (id: 1[0] - status: ABORTED): Unauthorized: eml = ["somjit....@sharobitech.com","tanmoy.ch...@sharobitech.com"]. User is unknown


I am attaching the screenshot just see and tell me where i am going wrong???







I am attaching the screen shot just see where i am wrong





On Fri, Sep 19, 2014 at 11:59 AM, Shobhit Tripathi <stri...@runmyprocess.com> wrote:
Hi Somjit,

I am thinking that you are passing the array variable into manual activity ("Assigned_to") field. So for this you have to use loop in that manual activity to pass your array variable.Follow below steps:

1. Use your array variable inside the input activity. Like : eml = ${email[P_index]}  // here email is the array variable which consist of email id's.
2. Use ${email} in your loop tab ( inside "Array" field) .
3. Use ${eml} in "Assign to" tab. 

Please let us know, if you still facing the same issue.

Thanks & regards,
Shobhit

On Fri, Sep 19, 2014 at 11:54 AM, Somjit Banerjee <banerjee...@gmail.com> wrote:
Hi,

please help me on these issue
process 3rd screen.png
process 4th screen.png
process first screen.png
process sceond screen.png
wi 1 screen.png
wi screen.png

Sabine El Rassy

unread,
Sep 19, 2014, 3:54:06 AM9/19/14
to RunMyProcess Support Forum, Somjit Banerjee
Hello,

As mentioned by Gareth before, you cannot assign a task to N users of a certain role. A manual task can be assigned to 1 person or to the entire role the box is situated in. In your case the Designer role.

If you choose to notify directly over a manual task, it means you are notifying people that have the right to validate this manual task. That way you can use the $[P_task_url}.

Now if you want to achieve what you're trying to do, which means to notify N users, you need to disable the notification over the manual task and create a separate notification box just before your manual task box. In that case you can use the get_next_url() function.

Regards


     
Fujitsu RunMyProcess user? Please add a review on GoogleApps Marketplace

Afin de contribuer au respect de l'environnement, merci de n'imprimer ce message qu'en cas de nécessité.
Be environmentally friendly: do not print this email unless it is entirely necessary.
--
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/.

Somjit Banerjee

unread,
Sep 19, 2014, 5:46:30 AM9/19/14
to suppor...@runmyprocess.com
Hi shobit,

thanks so much for the help the issue is solved.

On Fri, Sep 19, 2014 at 3:15 PM, Somjit Banerjee <banerjee...@gmail.com> wrote:
Hi shobit,

the issue is solved.

On Fri, Sep 19, 2014 at 2:56 PM, Shobhit Tripathi <stri...@runmyprocess.com> wrote:
Hi Somjit,

Are you using array widget for storing the email id's?

If this is the scenario then instead of using array widget you can use list widget (select User type). 
Use that value variable in your process.

Hope this will help you. Feel free to ask.

Thanks & regards,
Shobhit

On Fri, Sep 19, 2014 at 1:36 PM, Somjit Banerjee <banerjee...@gmail.com> wrote:
Hi Shobit,

I have made the changes but still facing the same error.


On Fri, Sep 19, 2014 at 1:29 PM, Shobhit Tripathi <stri...@runmyprocess.com> wrote:
Hi Somjit,

As I seen in second screenshot, you have to use your array variable in the input variable of process like this  Name= eml and Value=  ${email[P_index]}.

Regards,
Shobhit

Somjit Banerjee

unread,
Sep 19, 2014, 6:37:01 AM9/19/14
to suppor...@runmyprocess.com
Hi Shobit,

I want a little bit help from you on this, when the user is selecting multiple users from the user list , only  the first selected person is receiving the mail, and the other selected persons are not receiving the mail.

If you see the screenshot below since my name is entered at the first so i am receiving the email but tanmoy is not getting the mail.
wi screen 3.png

Murali

unread,
Sep 19, 2014, 7:51:52 AM9/19/14
to suppor...@runmyprocess.com, banerjee...@gmail.com
Hi Somjit,

I believe you are testing it in Test mode. In Test mode, only the initiator receives the mail. But in Acceptance/Production mode all the assigned persons will receive the mail.

Regards,
Murali

Somjit Banerjee

unread,
Sep 22, 2014, 1:04:22 AM9/22/14
to suppor...@runmyprocess.com, mkumma...@runmyprocess.com
Hi Murali,

I am launching my web interface in the live mode but still only the first user whom the user selects only that person get the mail, and rest all other selected perons doesn't recive the mail

Reply all
Reply to author
Forward
0 new messages