}
private static void startBPM(String bpmName, String inputMessage)
{
int message = 0;
Document document = BSF.getXMLDocument();
SOAPRequestObject soapRequestObject = new SOAPRequestObject("http://schemas.cordys.com/bpm/execution/1.0",
"ExecuteProcess",null,null);
soapRequestObject.addParameterAsXml(document.createTextElement("type", "definition"));
soapRequestObject.addParameterAsXml(document.createTextElement("receiver", bpmName));
try
{
message = BSF.getXMLDocument().parseString(inputMessage);
soapRequestObject.addParameterAsXml(message);
soapRequestObject.addParameterAsXml(document.createTextElement("source", "Run from Process Designer"));
soapRequestObject.execute();
}
catch (Exception e){}
}