How can we call workflow process synchronously through scripting ?

There can be several variations to the above questions such as

  • How can one call a Workflow synchronously from a script without using Business Service: Workflow Process Manager?
  • What are various ways business services that we can use to call a workflow process in scripting?

The Answer to the above question is

Following business services can be used to call Workflow process Synchronously in scripting

Business Service: Server Requests
Method: SubmitRequest
We will need to specify Input Argument “Mode” as Synchronous to call workflow process synchronously

Business Service: Synchronous Server Requests
Method: SubmitRequest

Business Service: Workflow Process Manager (Server Request)
Method: RunProcess

I will try to include examples of calling each business service and executing a workflow but that is going to be a post for siebelunleashed website.

Related Questions

neel tagged this post with: , , , Read 39 articles by
  • Archana

    Workflow Process Manager (Server Request)

    will run the workflow in Synchrouns mode. But When we use this BS to call WF, then the Work flow is run in the Background and when the Process is completed it is given back to the calling Process.

  • Abby

    Hi Sir,
    I have written the code under the VBC to call the workflow for currency conversion web service….here it is the code below….function BusComp_PreInvokeMethod (MethodName){if (MethodName == “Invoke”){var vbs = TheApplication().GetService(“Workflow Process Manager”)var Inp = TheApplication().NewPropertySet();var Out = TheApplication().NewPropertySet();var RowId = this.GetFieldValue(“Id”);Inp.SetProperty(“ProcessName”, “TestCurrencyConversionWS_Oppty”);Inp.SetProperty(“Object Id”, RowId);vbs.InvokeMethod(“RunProcess”, Inp, Out);return (CancelOperation);} return (ContinueOperation);}when i am executing the code, i am getting following error, but output is coming from the workflow by calling it  throuh runtime eventsError is 1- Cannot get value of business component field ‘Currency Code’ at step ‘Create Input XML’.(SBL-BPR-00120)2- Row” does not exist in business component ‘Opportunity’.(SBL-BPR-00169)Please help me out regarding this issue..