Updating Collection during Process

119 views
Skip to first unread message

clay.a...@inspectionclean.com

unread,
Sep 1, 2013, 9:16:06 PM9/1/13
to suppor...@runmyprocess.com
I have created a Customer Web Interface to add/edit/delete my customers from my RMP collection. It functions properly. I then created a process that allows users to manually update that file in a multiple step process when creating a new customer. However, I cannot seem to "update" my customer collection from the manual step in the process. i have added the collection to the manual screen. the html message "changes saved" appears, but when i pull that customer up later, they did not save.

Any thoughts to guide my troubleshooting? I'm stumped!

Clay

Sabine El Rassy

unread,
Sep 2, 2013, 4:38:05 AM9/2/13
to RunMyProcess Support Forum
Hello Clay,

If you need to manage data in the collection, you don't have to go through a process. If the data need to be managed by different persons and the process is a must, well the value of the variables are saved within your process. The best practice is to add/update your data at the end of your process into the collection.


If you're getting the 'Changes saved' message and the data is not updated , it means that you're trying to update a line that does not exists in your collection, or you're passing the wrong filter (id of the line to be updated).
If you want to see the content of your collection as it is,you can have a look at this link https://live.runmyprocess.com/live/${customer_id}/object/${collection_name}/?P_mode=TEST.

Can I have more details so I can help you further?

Regards,

Sabine

Clay Albright

unread,
Sep 2, 2013, 11:42:44 AM9/2/13
to suppor...@runmyprocess.com
Thank you Sabine! My problem lies within my Iced Project, Guru_WI, Guru_Process, and Guru collection. Thank you for your assistance. I attempted to save the collection data later in my process, but I received the same problem, it did not update. Any help is greatly appreciated!

I'm not sure if you are able to view my account, please do, or I'm happy to copy/paste my JS for you.

Please advise,
Clay




--
Fujitsu - RunMyProcess
---
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/Jioa9pz_rgU/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/CAHWwz%3DrvCmTeX5cJz9HjUCAZ_C-0BKAHra3c%2BfFvcgty3HEF_A%40mail.gmail.com.

Sabine El Rassy

unread,
Sep 3, 2013, 4:36:39 AM9/3/13
to RunMyProcess Support Forum
Hello Clay,

The Save Changes button seems to work properly and the data is updated in the database.
How are you triggering your process?

Regards,

Sabine EL RASSY

PreSales Consultant

     
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.


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

Clay Albright

unread,
Sep 3, 2013, 4:47:46 AM9/3/13
to suppor...@runmyprocess.com
A schedule button become visible on the "schedule" tab of the WI, but only after the "save changes" button is pressed.

I should have mentioned that! :)

clay


Sabine El Rassy

unread,
Sep 3, 2013, 6:16:07 AM9/3/13
to RunMyProcess Support Forum
Hello Clay,

When you click on Save changes, the function update_customer is called. This function does the update based on the get_my_id_variable(). The problem is that the id_variable (in your case client_id) is not defined within your interface. So the code tries to do the update based on a null variable.
What you need to do is to add a text widget with client_id as variable name. You have to make this field available on the 'Accounting Approval Screen'.

I had a look at your process and noticed that you have a 'split- AND' with only 1 output. This could cause you some problems because you're defining in your process a gateway that expects 1 input and 2 outputs. So you have to remove the gateway if its not needed.

If you need any further information, please do not hesitate posting back on the forum.
Regards,

Sabine

clay.a...@inspectionclean.com

unread,
Sep 5, 2013, 9:41:22 PM9/5/13
to suppor...@runmyprocess.com
Sabine,

I created the text widget and variable "client_id", and made it available on my Accounting Approval WI. I am still not able to get it to update. However, I have been running into an S_cookie error that has made my testing very difficult. I realize that the S_cookie expires and a new one must be obtained. I allowed for that.

Does updating my WI or Process require me to obtain a new S_cookie also? If I submit the process twice, very quickly, I seem to receive the following error without fail:

2013-09-06T01:38:47+0000 - Task "Get S_cookie" (id: 9[0] - status: ACTIVE): Bad Request

Also, must the new "client_id" be made Visible and/or Active, or just Available?

Your help is greatly appreciated!

Clay

clay.a...@inspectionclean.com

unread,
Sep 5, 2013, 10:03:24 PM9/5/13
to suppor...@runmyprocess.com, clay.a...@inspectionclean.com
After making your suggested change, I noticed the "client_id" is different each time I load the customer. I believe that is my issue. Looking into it now.

I would still love to know answers to my previous post!

Thanks so much,
Clay

clay.a...@inspectionclean.com

unread,
Sep 5, 2013, 11:32:43 PM9/5/13
to suppor...@runmyprocess.com, clay.a...@inspectionclean.com
Issue resolved. I had been using the same variable "get_data_from_interface" in both my "add_customer" and my "update_customer" functions. This caused my "client_id" to change to a uniqueid() each time it was used. So on the second call for my customer, the id was not recognized.

could this have also resolved my S_cookie issue?

Clay

Sabine El Rassy

unread,
Sep 6, 2013, 5:41:59 AM9/6/13
to RunMyProcess Support Forum, clay.a...@inspectionclean.com
Hello Clay,

Glad to hear that your issue is solved.

Having the field available is enough to have the variable defined and available.
The S_cookie can expire so if your having this problem between the time you create your event and the time you update it, you need to retrieve the value of the S_cookie before the update as well.

Regards,

Sabine
Reply all
Reply to author
Forward
0 new messages