JS API for updateProcess

389 views
Skip to first unread message

sowm...@gmail.com

unread,
Dec 2, 2014, 5:13:48 PM12/2/14
to suppor...@runmyprocess.com
Hi,

I have used RMPApplication.save(successCallback, failureCallback) as mentioned in your http://docs.runmyprocess.com/API_Reference/JS .

This from my understanding does the same job as the widget button "save document" and also allows us to configure our own callbacks once the task is successful.

I want to do something similar on submit(Update process button). Do we have any JS API in runmyprocess that updates a process?

Regards,
Sowmya

thoshino

unread,
Dec 2, 2014, 6:01:01 PM12/2/14
to suppor...@runmyprocess.com, sowm...@gmail.com
Hi,

Your understanding is correct.

And for updating a process there is no JS API.
This is because when you update the process, the web form you are on needs to close/refresh (becomes inactive or show next screen).

Workaround for now is to make a update button, visible or invisible, and set an id to it, and click on it from code.
Like,
$("#id_update_button").click();

Best regards,

Taka

sowm...@gmail.com

unread,
Dec 2, 2014, 9:28:17 PM12/2/14
to suppor...@runmyprocess.com
Thanks Taka! But I want to do some post processing after the update process completes successfully on the UI. I was hoping we can specify a callback which will be called after successfully triggering process update. Is this possible?

Regards,
Sowmya

Takafumi Hoshino

unread,
Dec 2, 2014, 9:32:44 PM12/2/14
to suppor...@runmyprocess.com
Hi,

In the backend, update process is web service call to the server so it
can be done, but actually what is the processing needed?

I haven't seen so many requests like this before, and it is easiest to
just use the default widgets to update process. Not sure I would
recommend you to go that route.

The update process API is same as Validate manual task connector in
library, under RunMyProcess secured connection provider.

Best regards,

Taka

Sent from my iPhone
> --
> 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/5e4b0a3f-ee70-4ab3-84a9-d7212f879092%40runmyprocess.com.
> For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.
Reply all
Reply to author
Forward
0 new messages