Skip to main content

Posts

Showing posts with the label RunTime Events

How to invoke workflow through BC eScript, BC User Property and Runtime Events

Through eScript  BC InvokeMethod if (MethodName == "MyMethod") { var oBS=TheApplication().GetService("Workflow Process Manager"); var Inp=TheApplication().NewPropertySet(); var Out=TheApplication().NewPropertySet(); Inp.SetProperty("Object Id",TheApplication().ActiveBusObject().GetBusComp("My BC Name").GetFieldValue("My BC Field")); Inp.SetProperty("ProcessName","My Workflow"); oBS.InvokeMethod("RunProcess",Inp,Out); return (CancelOperation);   } On BC PreSetField if(FieldName == "My Field Name")    {     if(FieldValue == "My Field Value") { var Inp=TheApplication().NewPropertySet(); var Out=TheApplication().NewPropertySet(); Inp.SetProperty("Object Id",TheApplication().ActiveBusObject().GetBusComp("My BC Name").GetFieldValue("My BC Field")); Inp.SetProperty("ProcessName","My Workflow...

How to invoke Workflow through RunTime Events in Siebel

Navigate to Runtime Events - Action Sets Create new Action Set, Provide the required fields. Create new Action Set Type and Provide the Action type: BusService and fill the remaining fields as below: Business Service Name: Workflow Process Manager Business Service Method: RunProcess Business Service Context: "ProcessName", "Your Workflow Name" Go to Events views: Create new record, provide the required fields like Sequence, Object Type (BusComp/ Applet), Object Name, Event (on which you want to run the action set), Subevent (if you want to add your method) and Action Set name. Go to Menu button and click on Reload Runtime Events