- Asynchronous
- Synchronous
- Schedule
Synchronous and Asynchronous Modes
When in synchronous mode, the Server Requests business service sends a request to the Server Request Broker, then waits for a response. Otherwise, it sends the request but does not wait for a response.
It is recommended that you use the Server Requests business service in most cases, rather than the Workflow Process Manager (Server Request) business service. It is more efficient to make an asynchronous call to a workflow process. If a synchronous call is made to a workflow, then the workflow runs in the Object Manager, causing the user to wait for the process to end.
Example:
var bsWFP = TheApplication().GetService("Server Requests");
var psInputs = TheApplication().NewPropertySet();
var psCompInputs = TheApplication().NewPropertySet();
var psOutputs = TheApplication().NewPropertySet();
psInputs.SetProperty("Component", "WfProcMgr");
psInputs.SetProperty("Method", "RunProcess");
psInputs.SetProperty("Mode", "DirectDb");
psCompInputs.SetProperty("ProcessName", "
psInputs.AddChild(psCompInputs);
bsWFP.InvokeMethod("SubmitRequest", psInputs, psOutputs);
But what means run in mode "DirectDb" ? is better than
ReplyDeleteAsynchronous Mode ?
Thanks in advance