Bookshelf Home | Contents | Index | PDF |
Siebel Business Process Framework: Workflow Guide > Manipulating Data in a Workflow Process > Passing Data to and from a Workflow Process > Examples Scripts That Pass Data to and from a Workflow ProcessThe examples in this topic pass data to and from a workflow process. Using a Script to Start a Workflow Process and Create an Input Property SetThe following example script calls the Workflow Process Manager business service. This business service creates an input property set named psInputs for the business service. This script defines strings as properties. It puts these strings in the input property set: var msgName = "Siebel Agent Authorization Retrieval"; var reqSubType = "CICS Services Request"; var reqType = "AgentAuthorizationReq"; var CICSServiceName = "Consumer Auto Agent Authorization Retrieval"; var processName = "Consumer Auto VBC VBC Template"; var reqFileName = "C:\\sea752\\XMLMessages\\AgentAuthorizationVBCReq-final.xml" var resFileName = "C:\\sea752\\XMLMessages\\AgentAuthorizationVBCResponse-final.xml" Using a Script to Define Property Sets for the Input Property SetThe following example script defines property sets. It puts these property sets in the input property set as child property sets: var psRequest = app.NewPropertySet(); var psAgentNumTag = app.NewPropertySet(); var psType = app.NewPropertySet(); Using a Script to Create Property SetsThe following example script creates property sets: //Create property set hierarchy psRequest.SetType("XMLHierarchy"); psAgentNumTag.SetType("DataAgentNumber"); psAgentNumTag.SetValue(sAgentID); psRequest.AddChild(psAgentNumTag); Using a Script to Assemble Properties and Child Property Sets in the Input Property SetThe following example script assembles properties and child property sets in the input property set: psInputs.AddChild(psRequest); //Pass in Property Set psInputs.SetProperty("RequestURLTemplate", requestURLTemplate); //Pass in string psInputs.SetProperty("RequestSubType", reqSubType); psInputs.SetProperty("ReqType", reqType); psInputs.SetProperty("MessageName", msgName); psInputs.SetProperty("CICSServiceName", CICSServiceName); psInputs.SetProperty("ProcessName", processName); psInputs.SetProperty("Request File Name", reqFileName); psInputs.SetProperty("Response File Name", resFileName); Using a Script to Call the Workflow Process Manager Business Service and Pass the Input Property SetThe following example script calls the Workflow Process Manager business service, and then passes the input property set to this business service: var svc = TheApplication(). GetService("Workflow Process Manager"); svc.InvokeMethod("RunProcess", psInputs, psOutputs); //Call the Workflow var sErr = psOutputs.GetProperty("sErr"); //Check the Workflow status Using a Script to Access Parameters for a Workflow ProcessThe example in this topic accesses workflow parameters for a running workflow process. To use a script to access parameters for a workflow process
|
Siebel Business Process Framework: Workflow Guide | Copyright © 2016, Oracle and/or its affiliates. All rights reserved. Legal Notices. | |