Link Search Menu Expand Document

Embedded Groovy Script Checker

The Embedded Groovy Script Checker verifies embedded scripts in listeners and script tasks for validity. For this purpose, it checks the following conditions:

  • No script format is specified
  • No script content is specified
  • For Groovy only: The script content doesn’t match the script format (syntax check)

Assumptions

  • The BPMN-models have to be in the classpath at build time

Configuration

The rule should be configured as follows:

<rule>
  <name>EmbeddedGroovyScriptChecker</name>
  <state>true</state>
</rule>

Via <state>true</state> the check can be enabled.

Via <state>false</state> the check can be disabled.

Error messages

there is no script format for given script

There is no script format for an embedded script. A script format must be defined for the script.

there is no script content for given script format

There is a script format, but no embedded script. A script must be created.

there is an empty script reference

No script has been deposited. A script must be specified.

[syntax checker message]

The syntax of the script is not valid. (for groovy only)

Examples

there is no script format for given script
No script format value
 
there is no script content for given script format
No script value
 
there is an empty script reference
No script value
startup failed: ….
Syntax of groovy incorrect