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!
--
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.
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');
}
});
}
_______________________________________________________________________________
--
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/009a0b98-d2c4-4881-90d3-c704604d989e%40runmyprocess.com.