Siebel Community

Welcome to Siebel Community. In this place you can find all the topics related to Siebel. This place is dedicated to provide information about how to implement Siebel CRM application. Siebel Technical/Functional consultants can get information from basics of Siebel CRM to advanced topics like EAI, EIM, eScripting, Workflows, Assignment Manager, Actuate Reports, Territory Management. This place also included Forums and Blogs to help you further.

Tuesday, July 26, 2011

Invoking a Workflow in the background using DirectDB mode

Use the predefined Server Requests business service to send a generic request to the Server Request Broker. The following processing modes in which the Server Requests business service can send a request are included:


  • 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);

1 comment:

  1. But what means run in mode "DirectDb" ? is better than
    Asynchronous Mode ?

    Thanks in advance

    ReplyDelete