Decision table support in offline mode

In offline mode, the use of decision tables reduces the effort required for implementing offline-enabled applications, automates case processing in offline mode, and helps derive the logic from the data model.

Decision tables are packaged on the Pega Platform server for use in offline-enabled applications and can be used in several scenarios. For other scenarios, you can use decision tables by calling them from custom JavaScript code.

Supported logic

The logic that is supported by the decision tables is identical to the logic that is supported by when rules. For more information, see When rule support in offline mode.

Supported scenarios

The following scenarios are supported in offline-enabled applications:

  • Referencing a decision table in a flow rule, as a type of decision shape
  • Calling a decision table from the declare expression rule

Custom scenarios

To execute custom scenarios, you can call decision tables by using the pega.process.decisiontable.evaluate() JavaScript method, for example, by defining a variable in your JavaScript code:
var result = pega.process.decisiontable.evaluate("OJMBRV-MyApp-Work-DecTableCase","MyDecisionTable")
Custom scenarios that are not available out-of-the-box in offline-enabled applications include, for example:
  • Calling a decision table from a collection rule
  • Evaluating a decision tree in an activity, with the use of the Property-Map-DecisionTable method