Search in sources :

Example 1 with ModelRunProcess

use of pl.x3E.adInterface.ModelRunProcess 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);
}
Also used : ModelRunProcess(pl.x3E.adInterface.ModelRunProcess) RunProcessDocument(pl.x3E.adInterface.RunProcessDocument) ADLoginRequest(pl.x3E.adInterface.ADLoginRequest) ModelRunProcess(pl.x3E.adInterface.ModelRunProcess) RunProcess(pl.x3E.adInterface.RunProcess) RunProcessResponse(pl.x3E.adInterface.RunProcessResponse) RunProcessResponseDocument(pl.x3E.adInterface.RunProcessResponseDocument)

Aggregations

ADLoginRequest (pl.x3E.adInterface.ADLoginRequest)1 ModelRunProcess (pl.x3E.adInterface.ModelRunProcess)1 RunProcess (pl.x3E.adInterface.RunProcess)1 RunProcessDocument (pl.x3E.adInterface.RunProcessDocument)1 RunProcessResponse (pl.x3E.adInterface.RunProcessResponse)1 RunProcessResponseDocument (pl.x3E.adInterface.RunProcessResponseDocument)1