LSPS documentation logo
LSPS Documentation
Validation

Disambiguation note: This section describes the validation of all model resources in PDS, such as, syntax of expressions, missing module imports, return values for element properties, etc. If this is not the topic you looking for, consider the following:

Validation in PDS checks the language and modeling correctness of the saved workspace data. Note that closed projects, non-executable Processes and contents of non-main Pools are not validated. When it detects a problem, it assigns it severity and renders the problem marker on all visualizations of the element and all its parent modeling elements:

  • Errors : severe mistakes that prevent the compilation and deployment
  • Warnings : issues that may affect execution and cause undesired behavior but are generally harmless; for example, a missing value of a parameter, which is interpreted automatically as null.
  • Infos are notifications of non-standard situations, which influence neither the validity nor further deployment. Infos occur, for example, if a modeling element is present in the process definition, but does not appear in any Diagram.

The severity of a detected problem is generally assigned automatically but in some cases you can define the severity yourself.

Your workspace is by default validated automatically on each save and before module upload. You can trigger validation also manually: right-click the node in the GO-BPMN Explorer and click Validate in the context menu.

If your resource has validation problems even though the expressions are correct, try cleaning the project: on the main menu, go to Project -> Clean

To turn automatic validation off on a particular project, on the main menu, go to Project and unselect Build Automatically.

The detected problems are listed in the Problems view. The type of individual problems displayed in the view may differ, though mostly it has the “GO-BPMN Problem” value; for information about other problem types refer to www.help.eclipse.org or documentation of the respective plug-in.

Configuring Validation

You can configure the severity of some of the problem that validation checks:

  1. Click Window > Preferences.
  2. In the Preferences dialog box in the left pane, expand Process Design Suite.
  3. Expand Modeling and click Validation.
    validationSetting.png
    Validation page with predefined settings
    Most of the settings are self-explanatory. Let us describe some of the more cryptic ones:
    • Side-effect expression is an expression that does one of the following:
      • modifies a variable outside of its scope
      • creates a shared record
      • modifies a record field
      • calls an expression that causes a side effect.
    • Usage of deprecated element: the expression uses an element with the flag Deprecated
  4. Click the respective severity level for the described problem.
  5. Provide the maximum length allowed for a database object (if exceeded, by some data types, the validation detects a problem).
  6. Click Apply or OK.

Validating Old Modules

Imported GO-BPMN Modules created in older versions of the Process Design Suite may not be validated automatically. To enable validation of older modules, do the following:

  1. Click Project -> Configure GO-BPMN Validator.
  2. Click OK.

Any old GO-BPMN modules in the workspace are added to the validation scope.

Hiding Validation Markers

To hide problem markers in a diagram editor (markers remain visible in the GO-BPMN Explorer and other views), do the following:

  1. Click Show Diagram Items ( ) button on the main toolbar.

    The button is available only when a diagram editor is focused.

  2. Unselect Show Validation Errors/Warnings.