Variables Available for Rulebase

The following table lists all the variables which can be used in rulebase conditions or in message descriptions.

  • All values are available in session using SESSION/.
  • All record attribute values are for the primary record. These attributes are accessed by simply specifying the name of the attribute.

The rulebase will return message description as the output. This message will be stored in the Work-item Detail table. The output parameter name will be WORK-ITEM_DESCRIPTION.

Rulebase Attributes
Rulebase Attribute Name Description
WORKITEM /MASTER_CATALOG_NAME Name of the repository.
WORKITEM /MASTER_CATALOG_VERSION Version of the repository.
WORKITEM /CATALOG_NAME Name of the catalog.
WORKITEM /CATALOG_VERSION Version of the catalog.
WORKITEM /DOCTYPE DocType.
WORKITEM /DOCSUBTYPE DocSubType.
WORKITEM /INTENT Intent of the work item.
WORKITEM /ERRORS Number of errors, in reference step. If none specified, 0.
WORKITEM /REJECTIONS Number of rejections, in reference step. If none specified, 0.
WORKITEM /WARNINGS Number of warnings in reference step. If none specified, 0.
WORKITEM /TRADING_PARTNER Name of trading partners.
WORKITEM /TRADING_PARTNER_TYPE Type of trading partner organization: RETAILER, SUPPLIER or DATAPOOL.
WORKITEM /MARKETPLACE_NAME Name of the datapool.
WORKITEM /RECORD_COUNT Number of records associated.
WORKITEM /SEVERITY Severity specified for the work item.
WORKITEM /STEPSEVERITY Step severity specified for the work item.
WORKITEM /ACTIVITY_NAME Name of the work item activity.
RECORD_ID Record ID.
RECORD_VERSION Record mod version.
RECORD_KEYID Record key ID.
RECORD_IDEXT Record ID extension.

Additionally, all work item details saved can also be inquired by specifying the name as: WORK-ITEM /<detailName>.

If you need to save any additional work item details to include in a work item description, you can specify these as input to the work item activity:

<Parameter direction="in" name="CUSTOM_text" type="String" eval="constant">my custom text</Parameter>

Note the prefix “CUSTOM_”. It must be specified exactly as in the example. These custom details can be accessed as any other work item detail.

WORK-ITEM /CUSTOM_text