public class CallProcess extends Object
ProcessInstance result is returned.ProcessInstance,
Process,
Parameter| Constructor and Description |
|---|
CallProcess() |
| Modifier and Type | Method and Description |
|---|---|
ProcessInstance |
call(Process process,
String recordID,
Map<String,String> parameters)
Calls a process.
|
ProcessInstance |
call(Process process,
String recordID,
Map<String,String> parameters,
Boolean doCommit)
Calls a process.
|
ProcessInstance |
call(String processName,
String recordID,
Map<String,String> parameters)
Calls a process with the specified name.
|
ProcessInstance |
call(String processName,
String recordID,
Map<String,String> parameters,
Boolean doCommit)
Calls a process with the specified name.
|
ProcessInstance |
callProcess(Process process,
String recordID,
Map<String,?> parameters)
Calls a process.
|
ProcessInstance |
callProcess(Process process,
String recordID,
Map<String,?> parameters,
Boolean doCommit)
Calls a process.
|
static CallProcess |
getInstance() |
static void |
setInstance(CallProcess instance) |
public static CallProcess getInstance()
public static void setInstance(CallProcess instance)
public ProcessInstance call(String processName, String recordID, Map<String,String> parameters, Boolean doCommit)
Parameter instances.processName - the name of the stored procedure, must exist in the database, see
Process.getProcedure().recordID - the recordID will be set in the ProcessInstance, see
ProcessInstance.getRecordID()parameters - are translated into process parametersdoCommit - do commit at the end of the procedure only if calledFromApp functionality is supported
in the procedure, otherwise null should be passedProcessInstance.getResult()) or error (
ProcessInstance.getErrorMsg())public ProcessInstance call(Process process, String recordID, Map<String,String> parameters, Boolean doCommit)
Parameter instances.process - the process to executerecordID - the recordID will be set in the ProcessInstance, see
ProcessInstance.getRecordID()parameters - are translated into process parameters, supports only string parameters, for support
of other parameters see the next method:
callProcess(org.openbravo.model.ad.ui.Process, String, Map)doCommit - do commit at the end of the procedure only if calledFromApp functionality is supported
in the procedure, otherwise null should be passedProcessInstance.getResult()) or error (
ProcessInstance.getErrorMsg())public ProcessInstance callProcess(Process process, String recordID, Map<String,?> parameters, Boolean doCommit)
Parameter instances.process - the process to executerecordID - the recordID will be set in the ProcessInstance, see
ProcessInstance.getRecordID()parameters - are translated into process parametersdoCommit - do commit at the end of the procedure only if calledFromApp functionality is supported
in the procedure, otherwise null should be passedProcessInstance.getResult()) or error (
ProcessInstance.getErrorMsg())public ProcessInstance call(String processName, String recordID, Map<String,String> parameters)
Parameter instances.processName - the name of the stored procedure, must exist in the database, see
Process.getProcedure().recordID - the recordID will be set in the ProcessInstance, see
ProcessInstance.getRecordID()parameters - are translated into process parametersProcessInstance.getResult()) or error (
ProcessInstance.getErrorMsg())public ProcessInstance call(Process process, String recordID, Map<String,String> parameters)
Parameter instances.process - the process to executerecordID - the recordID will be set in the ProcessInstance, see
ProcessInstance.getRecordID()parameters - are translated into process parameters, supports only string parameters, for support
of other parameters see the next method:
callProcess(org.openbravo.model.ad.ui.Process, String, Map)ProcessInstance.getResult()) or error (
ProcessInstance.getErrorMsg())public ProcessInstance callProcess(Process process, String recordID, Map<String,?> parameters)
Parameter instances.process - the process to executerecordID - the recordID will be set in the ProcessInstance, see
ProcessInstance.getRecordID()parameters - are translated into process parametersProcessInstance.getResult()) or error (
ProcessInstance.getErrorMsg())