how to invoke workflows using scripting

Answers were Sorted based on User's Feedback



how to invoke workflows using scripting..

Answer / 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

how to invoke workflows using scripting..

Answer / guest

we can invoke the workflows using scripting. Call the business
service "Workflow process Manager", pass the inputs and invoke
the method "Runprocess".

Here is sample code,

var inpPS = theApplication().NewPropertySet();
var outPS = theApplication().NewPropertySet();
var oBS = theApplication().GetService("Workflow Process
Manager");
outPS = oBS.InvokeMethod("RunProcess", inpPS);

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More Siebel Interview Questions

By what way do you control Visibility in Siebel ?

2 Answers   Siebel Systems,


What is Event Logging?

2 Answers  


What are the different views available in Siebel?

0 Answers   Cap Gemini,


scenario where we use ForwardBackward & ForwardOnly in Execute Query in Scripting

1 Answers   IBM,


what is Profile attribute?

4 Answers   IBM,






Explain what is resonate?

0 Answers  


How to create a Primary foriegn key because there is no PFK in account for Opprtunity ,it is 1:M relationship

2 Answers  


Explain how to edit the joined fields values in join?

0 Answers  


Explain if gateway server is not present cant we do load balancing?

0 Answers  


hi,i would like to know the what are the questions they will ask for siebel testing. i need question for only siebel testing only

0 Answers   CTS,


What is constrainted picklist?

0 Answers  


Suppose there is a search spec on bc, and applet both. Explain the execution of this scenario?

0 Answers  


Categories