Through eScript
BC InvokeMethod
if (MethodName == "MyMethod")
{
var oBS=TheApplication().GetService("Workflow Process Manager");
var Inp=TheApplication().NewPropertySet();
var Out=TheApplication().NewPropertySet();
Inp.SetProperty("Object Id",TheApplication().ActiveBusObject().GetBusComp("My BC Name").GetFieldValue("My BC Field"));
Inp.SetProperty("ProcessName","My Workflow");
oBS.InvokeMethod("RunProcess",Inp,Out);
return (CancelOperation);
}
On BC PreSetField
if(FieldName == "My Field Name")
{
if(FieldValue == "My Field Value")
{
var Inp=TheApplication().NewPropertySet();
var Out=TheApplication().NewPropertySet();
Inp.SetProperty("Object Id",TheApplication().ActiveBusObject().GetBusComp("My BC Name").GetFieldValue("My BC Field"));
Inp.SetProperty("ProcessName","My Workflow");
oBS.InvokeMethod("RunProcess",Inp,Out);
return (CancelOperation);
}
}
-----
Through BC User Property
Name: Named Method n: My Method Name
Value: 'INVOKE', 'WriteRecord', 'INVOKESVC', 'Workflow Process Manager', 'Run Process', '"ProcessName"', '"My Workflow Name"', '"WF Process Property"','[Id]'
-----
Through RTE (ActionSet)
Create new Action Set
Create new Action
Set below in More Info Applet
Action Type: BusService
Business Service Name: Workflow Process Manager
Business Service Method: RunProcess
Business Service Context: "ProcessName", "My Workflow Name"
Now create action Event and associate your action set to it.
Note: When calling workflow through RTE Siebel pass "Row Id" in "Object Id" process property of Workflow.
BC InvokeMethod
if (MethodName == "MyMethod")
{
var oBS=TheApplication().GetService("Workflow Process Manager");
var Inp=TheApplication().NewPropertySet();
var Out=TheApplication().NewPropertySet();
Inp.SetProperty("Object Id",TheApplication().ActiveBusObject().GetBusComp("My BC Name").GetFieldValue("My BC Field"));
Inp.SetProperty("ProcessName","My Workflow");
oBS.InvokeMethod("RunProcess",Inp,Out);
return (CancelOperation);
}
On BC PreSetField
if(FieldName == "My Field Name")
{
if(FieldValue == "My Field Value")
{
var Inp=TheApplication().NewPropertySet();
var Out=TheApplication().NewPropertySet();
Inp.SetProperty("Object Id",TheApplication().ActiveBusObject().GetBusComp("My BC Name").GetFieldValue("My BC Field"));
Inp.SetProperty("ProcessName","My Workflow");
oBS.InvokeMethod("RunProcess",Inp,Out);
return (CancelOperation);
}
}
-----
Through BC User Property
Name: Named Method n: My Method Name
Value: 'INVOKE', 'WriteRecord', 'INVOKESVC', 'Workflow Process Manager', 'Run Process', '"ProcessName"', '"My Workflow Name"', '"WF Process Property"','[Id]'
-----
Through RTE (ActionSet)
Set below in More Info Applet
Action Type: BusService
Business Service Name: Workflow Process Manager
Business Service Method: RunProcess
Business Service Context: "ProcessName", "My Workflow Name"
Now create action Event and associate your action set to it.
Note: When calling workflow through RTE Siebel pass "Row Id" in "Object Id" process property of Workflow.
Comments
Post a Comment