启动操作js
:
//--by wall
var startReq=BPMStartXml.XMLDocument;
cordys.setNodeText(startReq,".//*[local-name()='BusinessID']",pursh_id.getValue());
cordys.setNodeText(startReq,".//*[local-name()='ProcessID']","Business Process Models/PurchaseManagement/PurchaseManagement");
cordys.setNodeText(startReq,".//*[local-name()='NextStepCode']","");
cordys.setNodeText(startReq,".//*[local-name()='ProcessName']","物资申购流程");
cordys.setNodeText(startReq,".//*[local-name()='InstanceID']","");
cordys.setNodeText(startReq,".//*[local-name()='ActivityID']","0");
cordys.setNodeText(startReq,".//*[local-name()='ActivityName']","");
cordys.setNodeText(startReq,".//*[local-name()='DecisionCode']","1");
cordys.setNodeText(startReq,".//*[local-name()='Subject']","物资申购流程");
StartModel.clear();
StartModel.setMethodRequest(startReq);
StartModel.reset();
toolbarbutton_strat.disable();
var response=StartModel.getData();
var instance_id=cordys.getNodeText(response,".//*[local-name()='instance_id']","",null);
XML:
<xml id="BPMStartXml">
<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP:Body>
<ExecuteProcess xmlns="http://schemas.cordys.com/bpm/execution/1.0" type="">
<type>definition</type>
<receiver>Business Process Models/PurchaseManagement/PurchaseManagement</receiver>
<message>
<BPMMessageSchema xmlns="http://schemas.cordys.com/default">
<ProcessMessage xmlns="http://schemas.cordys.com/default">
<ProcessName>PARAMETER</ProcessName>
<InstanceID>PARAMETER</InstanceID>
<ActivityID>PARAMETER</ActivityID>
<ActivityName>PARAMETER</ActivityName>
<DecisionCode>PARAMETER</DecisionCode>
<Subject>PARAMETER</Subject>
<Ext1>PARAMETER</Ext1>
<Ext2>PARAMETER</Ext2>
<Ext3>PARAMETER</Ext3>
<Ext4>PARAMETER</Ext4>
<Ext5>PARAMETER</Ext5>
<ProcessID>PARAMETER</ProcessID>
<BusinessID>PARAMETER</BusinessID>
<NextStepCode>PARAMETER</NextStepCode>
</ProcessMessage>
</BPMMessageSchema>
</message>
</ExecuteProcess>
</SOAP:Body>
</SOAP:Envelope>
</xml>