Saturday, 10 September 2016

Different ways of invoking workflow in siebel

PFB Different of invoking workflow in siebel

1.     E-script
2.     Run-time Event
3.     Using datamap expression
4.     Bus Comp/Applet User property(Named Method)
5.     Using Business Service 
1.     Server Requests
2.     Workflow Process Manager
3.     Asynchronous Server Requests
6.     Workflow Policy
7.     RCR

PFB detailed explanation

·  E-script

    var objInputPS = TheApplication().NewPropertySet();
              var objChildPS = TheApplication().NewPropertySet();
              var objOutputPS = TheApplication().NewPropertySet();
              var objWorkflowBS = TheApplication().GetService("Workflow Process Manager");
                  
                   objInputPS.SetProperty("ProcessName ", <name of workflow to be ivoked>);
                  
                 objInputPS.SetProperty("<inputs to workflow>", <Respective values to WF inputs>);
                        
               
              objWorkflowBS.InvokeMethod("RunProcess", objInputPS, objOutputPS);



·  Run-time Event

Use below in action set

Business Service Name
Workflow Process Manager
Business Service Method
RunProcess
Business Service Context

"ProcessName", "<workflow process name>"



·  Using datamap expression

IIF([Product Type] = 'OCC', IIF([EITC OCC Entity] = 'Account' OR [EITC OCC Entity] = '' OR [EITC OCC Entity] IS NULL, "RP" + LookupName('EITC_OCC_RATEPLAN', [Orders.EITC Service Account OCC Rateplan]),InvokeServiceMethod ("EITC Pricing Adjustment", "GetRootAndRatePlan", "Covered Line Item Id='"+[Covered Quote Item Id]+"',Order Id='"+[&Object Id]+"',Line Item Id='',Root Product Id='',Mode='Order'", "RP Product Integration Id")),"")

·  Bus Comp/Applet User property(Named Method)

E,g BC user property

Name
Named Method

Value
"ParentalPINReset", "INVOKESVC", "Asset Mgmt - Asset", "Workflow Process Manager", "RunProcess", "'ProcessName'", "EITC IPTV Reset PIN", "'RowId'", "[Id]", "'Type'", "Parental"



·  Using Business Service 
1.     Server Requests
2.     Workflow Process Manager
Eg same as escript…use required inputs for calling workflow

·  Workflow Policy

Navigate to Administration –Business Service to create workflow policy & create workflow policy action to invoke workflow based on criteria


·  RCR

Configure workflow job(in Administration –Server Management) to call workflow in specified interval

No comments:

Post a Comment