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 is the use of global policy expressions defined in siebel?

595


what is client business service?

636


How to create an extension table with an intersection table?

633


Explain what is detailed category in configuration, and its use?

663


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

596






How is server monitoring managed using the load balancing concept?

649


Explain where did you use wf in your last project?

634


What are the differences between siebel 7.8 and 8.0?

610


What is the process to create the dynamic drilldown?

681


Suppose if we have dynamic picklist as bounded can we add field?

608


How is Siebel x data model is different from Siebel 0 data model?

616


What is outbound in picklist?

613


How will you do validations in escripts and in configuration?

596


What is the difference in the architecture of Siebel x and Siebel x?

615


How is load balancing maintained in the server?

625