use of pl.x3E.adInterface.RunProcessDocument in project adempiere by adempiere.
the class ModelADServiceImpl method runProcess.
public RunProcessResponseDocument runProcess(ModelRunProcessRequestDocument req) throws XFireFault {
RunProcessResponseDocument resbadlogin = RunProcessResponseDocument.Factory.newInstance();
RunProcessResponse rbadlogin = resbadlogin.addNewRunProcessResponse();
ModelRunProcess modelRunProcess = req.getModelRunProcessRequest().getModelRunProcess();
String serviceType = modelRunProcess.getServiceType();
ADLoginRequest reqlogin = req.getModelRunProcessRequest().getADLoginRequest();
String err = modelLogin(reqlogin, webServiceName, "runProcess", serviceType);
if (err != null && err.length() > 0) {
rbadlogin.setError(err);
rbadlogin.setIsError(true);
return resbadlogin;
}
// Validate parameters
modelRunProcess.setADMenuID(validateParameter("AD_Menu_ID", modelRunProcess.getADMenuID()));
modelRunProcess.setADProcessID(validateParameter("AD_Process_ID", modelRunProcess.getADProcessID()));
modelRunProcess.setADRecordID(validateParameter("AD_Record_ID", modelRunProcess.getADRecordID()));
modelRunProcess.setDocAction(validateParameter("DocAction", modelRunProcess.getDocAction()));
RunProcessDocument docprocess = RunProcessDocument.Factory.newInstance();
RunProcess reqprocess = docprocess.addNewRunProcess();
reqprocess.setParamValues(modelRunProcess.getParamValues());
reqprocess.setADProcessID(modelRunProcess.getADProcessID());
reqprocess.setADMenuID(modelRunProcess.getADMenuID());
reqprocess.setADRecordID(modelRunProcess.getADRecordID());
reqprocess.setDocAction(modelRunProcess.getDocAction());
return Process.runProcess(m_cs, docprocess);
}
Aggregations