Rule Container

Use

The rule container contains a rule’s parameters. Each rule has just one rule container. At runtime, the rule parameters contain the current, context-specific information that forms the basis of rule resolution. Therefore, the rule parameters constitute "input" for rule resolution.

In SAP Business Workflow, binding feeds the rule parameters with values from the workflow container. If a task contains default rules, the system fills the rule container from the task container using binding.

If a rule is used in a workflow to determine the responsible agent, the result of rule resolution is stored in the container element _RULE_RESULT and can be transferred to the workflow container by binding.

Features

Depending on the rule category the rule container includes the following information:

Rule Category

Content of Rule Container

Agent determination: Responsibilities

The rule container includes object references or field values (with names as required) that must be provided with values from the calling component via binding.

Agent determination: Organizational data

The rule container only includes the Org_Object_ID element. This element is defined with a reference to the SAP organizational object whose assigned agents must be determined.

The rule container is created automatically, and is not visible during rule definition.

Agent Determination: Function to be Executed (Asynchronously)

The rule container includes object references or field values as required (with names as required) that are read by the function module for rule resolution and processed accordingly.

Prior to rule resolution, the container elements are provided with values from the calling component via binding.

Agent determination: Evaluation paths

The rule container includes the following elements:

  • Otype, data type reference OBJEC-OTYPE

Type of the Organizational Management object according to the first step in the evaluation path

  • ObjID, data type reference OBJEC-REALO

Identification of organizational object.

  • Org_Agent, data type reference WFSYST-AGENT

C14 field as combination of organizational object type and organizational object.

When defining the rule, create either the first two elements, or the last element, as rule parameters in the container.

WebFlow: URL determination

The rule container contains only additional data from the workflow environment that you need to determine the URL.

WebFlow: Preparation of the XML document

The rule container contains only additional data from the workflow environment that you need to prepare the XML document.

WebFlow: Authentication

The rule container contains only additional data from the workflow environment that you need to perform authentication.

WebFlow: Sending

The rule container contains only additional data from the workflow environment that you need for your own send procedure.

WebFlow: Determine format (if group)

The rule container contains only additional data from the workflow environment that you need to determine the transfer format you require from a transfer format group.

Activities

You edit the rule container on the Container tab page when maintaining the rules.