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

What are caching and purging in siebel?

825


What is detail applet and association applet?

827


What is the difference between siebel 7.5 and 7.8? If we upgarde the application to 7.8 from 7.5 what are the areas we need to give importance fromqa(testing) point of view?

735


What is detailed category in configuration, and its use?

713


what are the steps to implement outbound email in siebel?

3055


Tell me is it posible to access more than one database at a single siebel application?

707


How would you import international phone numbers using eim in siebel realtime?

713


Explain the difference between join specification and join definition?

713


what is the maximum number of applets can be there in a view?

765


difference between lov and picklist??

795


Explain when do we go for dynamic picklist and for pick applet?

687


Explain how to import lovs?

738


Is it possible to access more than one database at a single siebel application?

735


Explain how to assign responsibilities to employees in siebel?

745


What is applet toggle and how many types are there?

762