Siebel Business Process Designer Administration Guide for Financial Services > Passing Parameters to and from Workflow and Data Manipulation within Workflows >

Passing Parameters from Workflow to Global Variables (Profile Attributes)


You can use a business service to access and pass parameters from Workflow to global variables.

To access workflow parameters for a running workflow process

  1. Define a business service with relevant methods and parameters.
  2. Access the business service from the workflow process.
  3. In the business service step in the workflow process, pass the workflow process properties to the business service method arguments. For more information, see Working with Business Service Steps.
  4. Use the following script to take the business service argument values and assign them to Profile Attributes.
  5. function Service_PreInvokeMethod (MethodName, Inputs, Outputs)

{

if( MethodName == "XXX" ) {

var isWorkflowRunning, viewValidCurrent, viewValidNext;

// read the input arguments into profile attributes

isWorkflowRunning = Inputs.GetProperty("Workflow Running");

viewValidCurrent = Inputs.GetProperty("Valid View Current");

viewValidNext = Inputs.GetProperty("Valid View Next");

TheApplication().SetProfileAttr("WFRunning", isWorkflowRunning);

TheApplication().SetProfileAttr("WFViewCurrent", viewValidCurrent);

TheApplication().SetProfileAttr("WFViewNext", viewValidNext);

}

  1. Use the profile attributes for further processing. All the necessary information has been put into the profile attributes of the application. Users can use the standard procedures for accessing the profile attributes to extract this information. For more information, see Personalization Administration Guide.

 Siebel Business Process Designer Administration Guide for Financial Services 
 Published: 22 May 2003