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

Dynamic picklist is used to update join fields? How?

0 Answers  


Explain what is siebel gateway?

0 Answers  


Where does the primary field of an mvg stored?

0 Answers  


In an order screen if the Status value changes from Inprogess to Pending all the line items must become read only

2 Answers   IBM,


Explain what is an extension table?

0 Answers  


What is Virtual BC?what is the use of vbc?

4 Answers   Oracle, PF Enterprise, Symphony,


In case only Gateway server goes down, then what is the impact in existing on new users trying to login the Siebel application?

5 Answers   Fujitsu,


Explain what is eapps.cfg file. And what is its significance?

0 Answers  


What is the difference between eim and eai?

0 Answers  


What are the test cases which you will be writing provided the scenario is in an Accounts tab, there are three different status like ‘Open’, ‘Active’ and ‘Pending’. Every night a nightly job will be running and the Accounts which are in ‘Open’ status will be changed to ‘Active’ after the job runs. The user does not have the privilege to change the Status from ‘Open’ to ‘Active’, only privilege he has is to change to ‘Pending’ status.

3 Answers   IBM,


How is load balancing maintained in the server?

0 Answers  


What is different between bounded and unbounded picklist?

0 Answers  


Categories