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

Give me an example of business scenario and explain implementation with workflow?

0 Answers   TCS,


No of clinets in Siebel applications?

2 Answers   IBM, Oracle,


Tell me what happens if you create an employee in siebel application and forget to create?

0 Answers  


What is the relationship between opportunity and account?

5 Answers   Siebel Systems,


Name the databases you have worked on?

0 Answers  






Can a person from BPO industry learn seibel CRM as it is a Customer relationship managment based industry, if yes what are the jobs aspects of learning the course.?

0 Answers  


In MVL without search specification can you filter the data? any one who can assist me with a step by step procedure

2 Answers  


What is caching in siebel?

0 Answers  


How many type of siebel data model extensions are there?

0 Answers  


Explain how to run genbscript.exe?

0 Answers  


Explain pick applet, dynamic picklist: which will be better if performance issue is considered?

0 Answers  


what is the difference between join and link?

0 Answers  


Categories