If I want to START workflow from a script outside Adobe Campaign I use the following SOAP call.
POST http://localhost/nl/jsp/soaprouter.jsp HTTP/1.1
Content-Type: text/xml; charset=utf-8
SOAPAction: xtk:workflow#Start
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:xtk:workflow">
<soapenv:Header/>
<soapenv:Body>
<urn:Start>
<urn:sessiontoken>mc</urn:sessiontoken>
<urn:strWorkflowId>986963078</urn:strWorkflowId>
</urn:Start>
</soapenv:Body>
</soapenv:Envelope
Now, I want to use the same logic, but start the workflow from one neolane instance to another and here is where I am stuck.
var xmlMessage =
<strWorkflowId>287865412</strWorkflowId>
var cnx = new HttpSoapConnection("http://myotherinstance/nl/jsp/soaprouter.jsp", "utf-8", 0);
var session = new SoapService(cnx, "xtk:workflow");
session.addMethod("Start", "xtk:workflow#Start", ["sessiontoken", "string", "", "NLElement"], []);
session.Start("mc", xmlMessage);
The error states (18/01/2018 17:38:28 js JavaScript: error while evaluating script '../js'.)
I have also tried tweaking the structure of the call to;
var xmlMessage =
<workflow>
<start>
<strWorkflowId>287865412</strWorkflowId>
</start>
</workflow>
and even using the PostEvent methods isnt working.
I can successfully send real time events to the other instance message centre using javascript but this is the first time I've tried to start a workflow from one instance to the other.
Anyone got any ideas?
florentlbAmit_KumarVipul RaghavAdhiyanJean-Serge BironAdobe Campaign