Trying to launch a public process.

152 views
Skip to first unread message

somesh.m...@gmail.com

unread,
Dec 16, 2013, 11:02:12 AM12/16/13
to suppor...@runmyprocess.com, somesh. mukherjee
Hi,

I am trying to launch a PUBLIC process from within Javascript anonymously and it seems to be failing. The process gets kicked off fine though from Javascript if I am logged in.

From the process connector the process URL is something like:

/live/2215365968/process/91782?P_mode=${P_mode}&P_version=${P_version}

From my experience with RMP artifacts (Composite APIs, Web Interfaces), all the public resources have /pub/ in their url context instead of /live/

So, my question is the process connector url correct or should I replace /live/ with /pub/ ?

Thanks!

Gareth Thiveux

unread,
Dec 17, 2013, 9:40:07 AM12/17/13
to suppor...@runmyprocess.com, somesh. mukherjee
Hi Somesh,

You should use the /pub/ URL.

Anyway, if you plug a public web interface to your public process, just check the PUT call (through the Developer console of your browser) that is made when you click on the Submit button (which triggers your public process). You should then see if the called URL is /pub/ or /live/.


Regards,

Customer Solutions Engineer
 Fujitsu RunMyProcess
3 rue de Gramont, 75002 Paris - France

     


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/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/a66ae305-ffcd-4a3b-af4e-9f90c7504104%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/groups/opt_out.

somesh.m...@gmail.com

unread,
Dec 17, 2013, 10:02:55 AM12/17/13
to suppor...@runmyprocess.com, somesh. mukherjee
Thanks Gareth. I tried that option and was able to pull the /pub/ URL for the process.

But when I try to trigger this process with the /pub/ URL using Javascript on a public web interface, it still fails.

Attaching the screenshot to the post.

I am trying to trigger it using Jquery post, straightforward:


_______________________________________________________________________________
function logData(contact_name,contact_email,project_background,request_type,domain_name,additional_details){
var process_req_data = {};
process_req_data.contact_name = ""+contact_name;
process_req_data.contact_email = ""+contact_email;
process_req_data.project_background = ""+project_background;
process_req_data.request_type = ""+request_type;
process_req_data.domain_name = ""+domain_name;
process_req_data.additional_details = ""+additional_details;
trigger_process('https://live.runmyprocess.com/pub/2215365968/process/91782?entity=9cfc3022-6729-11e3-bf43-12313b0614f1&appli=92849&P_mode=${P_mode}&P_version=${P_version}', process_req_data, fn_success, fn_failure);
//https://live.runmyprocess.com/pub/2215365968/process/91782?entity=9cfc3022-6729-11e3-bf43-12313b0614f1&appli=92849&P_mode=TEST&P_version=
}

function fn_success(){}

function fn_failure(){}

function trigger_process(process_url, input_params, fn_success, fn_failure) {
var xml_input_params = "<?xml version='1.0' encoding='UTF-8'?><feed xmlns='http://www.w3.org/2005/Atom' xml:base='https://live.runmyprocess.com/'><entry><category term='initial' /><content type='xml'>" + JSON.stringify(input_params) + "</content></entry></feed>";
$j.ajax({
type : 'POST',
url : process_url,
data : xml_input_params,
cache : false,
async : true,
dataType : 'json',
success: fn_success,
error: fn_failure,
beforeSend : function (xhr) {
xhr.setRequestHeader('Content-Type', 'application/xml+atom');
}
});
}
_______________________________________________________________________________

public_process_trigger.png

Gareth Thiveux

unread,
Dec 17, 2013, 10:14:41 AM12/17/13
to suppor...@runmyprocess.com
Hi Somesh,

What is this entity and appli "entity=9cfc3022-6729-11e3-bf43-12313b0614f1&appli=92849" that you have at the end of your URL ?


Regards,

Customer Solutions Engineer
 Fujitsu RunMyProcess
3 rue de Gramont, 75002 Paris - France

     


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/.
Reply all
Reply to author
Forward
0 new messages