LSPS documentation logo
LSPS Documentation
Disabling Elements

The Disabling mechanism serves to exclude elements from validation and execution: you can disable any element, such as, cache region, variable, process element, function, method, etc.

If a diagram element is disabled, all its diagram views are shown as disabled if applicable. and their representations in both the GO-BPMN Explorer and editors indicate the disabled status. If it has any incoming and outgoing Flows or contains any nested modeling elements, all Flows and nested elements are automatically disabled as well.

Reflections of disabled elements, such as, record types and functions, must be disabled manually.

You can disable elements using their context menu or, in the case of textual element, such as, methods and textual function declarations, with the @Disabled annotation.

Disabling all methods in a method definition file

@Disabled
MyRecord {
 
 public String getTitle(){
  this.title;
 }
  public String getDate(){
  this.date;
 }
}

Note that parameters of elements, such as queries, functions, tasks, etc. can be disabled only in GO-BPMN Explorer. It is not possible to disable and enable parameters from editors.

disabledElementPropertiesView.png
Disabled elements in the Properties view
DisabledElementsGOBPMNExpl.png
Disabled elements in GO-BPMN Explorer
DisablingDiagramE.png
Disabling an element in a diagram editor
DisablingFormE.png
Disabling an element in a form-like editor

If you want to disable an entire project, you can use the Eclipse close feature: right-click the project and click Close.

Defining Formatting of Disabled Elements

You can set the style applied to elements and their views when they are disabled as follows:

  1. Go to Window > Preferences.
  2. In the left part of the Preferences dialog box, expand Process Design Suite > Modeling > Appearance.
  3. On the Appearance page on the right, modify the style in the Formatting of Disabled Elements.