how to invoke workflows using scripting
Answers were Sorted based on User's Feedback
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 |
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 |
What is user properties?
Explain how to edit the joined fields values in join?
What is constrainted picklist? Where you will drop the constraints?
In an applet one custom button is created on clicking that button all the fields get validated and then message should be displayed on the other applet as the corresponding field values are empty
How do you control visibility in Siebel?
Explain how to import lovs?
Define an extension table?
What is the difference between mvg applet and pick applet?
What are the 3 major steps in the event handler process?
what is implied join. Where do we find it ?
What is the use of catch in escript?
How to Get the MultiValueFields in Workflow