Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Latest commit

 

History

History
70 lines (54 loc) · 2.13 KB

NoScriptChecker.md

File metadata and controls

70 lines (54 loc) · 2.13 KB
title parent
No Script Checker
Available Checkers

No Script Checker

The No Script Checker processes BPMN models and checks whether there is a script in the model.

  • ScriptTask
  • Script in Listener
  • Script in Input/Output

Assumptions

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

Configuration

The rule should be configured as follows:

<rule>
	<name>NoScriptChecker</name>
	<state>true</state>
</rule>

You can add settings to disable the NoScriptChecker in specific places. name contains the element type, in which the checker is deactivated. If no script is specified, the checker is completely disabled for this element type.

<rule>
	<name>NoScriptChecker</name>
	<state>true</state>
	<settings>
		<setting name="ScriptTask"></setting>
		<setting name="ServiceTask" script="outputParameter"></setting>
	</settings>
</rule>

script can be:

  • inputParameter
  • outputParameter
  • executionListener
  • taskListener
  • conditionExpression

For more information go to docs camunda

Error messages:

task %elementId with script

There is a script inside a script task or a script as an execution listener or a script as a task listener or a script inside an inputOutput parameter mapping

ScriptTask %elementId not allowed

ScriptTask not allowed

Examples

task %elementId with script
script in task
ScriptTask %elementId not allowed
ScriptTask