how to invoke workflows using scripting

Answer Posted / vignesh

PFB the way to invokde the workflow through scripting,

Steps:
var sbs = TheApplication().GetService("Workflow Process
Manager");
var psInputs = TheApplication
().NewPropertySet();
var psOutputs = TheApplication
().NewPropertySet();

var sId = this.GetFieldValue("Id");
psInputs.SetProperty ("ProcessName", "WF
Name");
psInputs.SetProperty ("Object Id", sId);
sbs.InvokeMethod("RunProcess", psInputs,
psOutputs);

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can multiple presentation catalogs refer to one business model?

803


What is the process to create the dynamic drilldown?

822


Explain how to create an extension table with an intersection table?

777


How is Siebel x data model is different from Siebel 0 data model?

758


Explain how to run genbscript.exe?

842


i have two business components but iwant to make visible applet to only one business component

2110


Explain what is siebel gateway?

770


How would you remove unnecessary seed data by deleting all rows from the s_lst_of_val base table?

791


What is the difference between mvg applet and pick applet?

886


Explain why does data not from related child tables not get exported when data is exported using an interface table?

717


What are the eim tables and base tables are required to your entities?

763


What exactly use of s_party concept in siebel?

771


when i click on first time ststic picklist valus should be 4 values and if i click next time i want to see 6 picklist with diff values for that same field.How will u configure

2418


Explain how would you send an email using siebel realtime application?

733


What is user properties? Why we using the user properties?

733