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

In the Siebel screens, what are the different fields available and what kind of validation will you be doing for that.

0 Answers   Cap Gemini,


Suppose in the list applet field we have 10 records but I have to display only 2 records in list applet,what is the process should I follow?

0 Answers  


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

3 Answers   HP, IBM, Symphony,


differnce betwwen seibel and crm architecture

1 Answers   Deloitte,


How do you display the no. of records in a picklist (combo box/drop down) not the records in the pickapplet, in just 3 rows and not 5 rows(which is the default)?

0 Answers  






What is difference between join specification and join definition?

0 Answers  


Explain what is if table in eim?

0 Answers  


how to create constain picklist?process suppose country field is there and state field is there,when user selected Australia in country,i have to display aus related states only states field then following its corresponding cities for the next fields orderly..I got the solution.Please try that or else mail to ganesh.ramasamy@yahoo.com

4 Answers  


Explain how is load balancing maintained in siebel?

0 Answers  


What is the procedure to configure the static caching using the content group?

0 Answers  


Explain the use of catch in escript?

0 Answers  


What will happen after the content groups gets created?

0 Answers  


Categories