This repository has been archived by the owner on Sep 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #178 from viadee/issue177
Fix for #177: Default path for ruleSet now src/test/resource
- Loading branch information
Showing
5 changed files
with
199 additions
and
7 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
src/main/java/de/viadee/bpm/vPAV/ProcessApplicationVariableParser.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,153 @@ | ||
<?xml version="1.0" encoding="utf-8" standalone="yes"?> | ||
<!DOCTYPE xml> | ||
<ruleSet> | ||
<rule> | ||
<name>MessageEventChecker</name> | ||
<state>true</state> | ||
</rule> | ||
<rule> | ||
<name>OverlapChecker</name> | ||
<state>true</state> | ||
</rule> | ||
<rule> | ||
<name>ExtensionChecker</name> | ||
<state>true</state> | ||
<settings> | ||
<setting name="CALLBACK_TIMEOUT" type="ServiceTask">\d+</setting> | ||
</settings> | ||
</rule> | ||
<rule> | ||
<name>XorConventionChecker</name> | ||
<state>true</state> | ||
<settings> | ||
<setting name="requiredDefault">false</setting> | ||
</settings> | ||
<elementConventions> | ||
<elementConvention> | ||
<name>xorGateway</name> | ||
<description>gateway name has to end with an question mark</description> | ||
<pattern>.*\?</pattern> | ||
</elementConvention> | ||
<elementConvention> | ||
<name>edges</name> | ||
<description>gateway edge has to be named</description> | ||
<pattern>.*</pattern> | ||
</elementConvention> | ||
</elementConventions> | ||
</rule> | ||
<rule> | ||
<name>TimerExpressionChecker</name> | ||
<state>true</state> | ||
</rule> | ||
<rule> | ||
<name>NoScriptChecker</name> | ||
<state>true</state> | ||
<settings> | ||
</settings> | ||
</rule> | ||
<rule> | ||
<name>JavaDelegateChecker</name> | ||
<state>true</state> | ||
</rule> | ||
<rule> | ||
<name>BoundaryErrorChecker</name> | ||
<state>true</state> | ||
</rule> | ||
<rule> | ||
<name>FieldInjectionChecker</name> | ||
<state>false</state> | ||
</rule> | ||
<rule> | ||
<name>EmbeddedGroovyScriptChecker</name> | ||
<state>true</state> | ||
</rule> | ||
<rule> | ||
<name>NoExpressionChecker</name> | ||
<state>true</state> | ||
<settings> | ||
<setting name="ServiceTask"/> | ||
</settings> | ||
</rule> | ||
<rule> | ||
<name>VersioningChecker</name> | ||
<state>false</state> | ||
<settings> | ||
<setting name="versioningSchemeClass">([^_]*)_{1}([0-9][_][0-9]{1})\.(class|groovy) | ||
</setting> | ||
</settings> | ||
</rule> | ||
<rule> | ||
<name>DmnTaskChecker</name> | ||
<state>false</state> | ||
</rule> | ||
<rule> | ||
<name>DataFlowChecker</name> | ||
<state>true</state> | ||
</rule> | ||
<rule> | ||
<name>ProcessVariablesModelChecker</name> | ||
<state>true</state> | ||
<settings> | ||
<setting name="UseStaticAnalysisBoolean">true</setting> | ||
</settings> | ||
</rule> | ||
<rule> | ||
<name>ProcessVariablesNameConventionChecker</name> | ||
<state>false</state> | ||
<elementConventions> | ||
<elementConvention> | ||
<name>internal</name> | ||
<!-- field types for process variables --> | ||
<elementFieldTypes excluded="true"> | ||
<elementFieldType>Class</elementFieldType> | ||
<elementFieldType>ExternalScript</elementFieldType> | ||
<elementFieldType>DMN</elementFieldType> | ||
<elementFieldType>DelegateExpression</elementFieldType> | ||
</elementFieldTypes> | ||
<description>Variable has to start with "int_"</description> | ||
<pattern>int_[a-zA-Z]+</pattern> | ||
</elementConvention> | ||
<elementConvention> | ||
<name>external</name> | ||
<!-- field types for process variables --> | ||
<elementFieldTypes> | ||
<elementFieldType>Class</elementFieldType> | ||
<elementFieldType>ExternalScript</elementFieldType> | ||
<elementFieldType>DMN</elementFieldType> | ||
<elementFieldType>DelegateExpression</elementFieldType> | ||
</elementFieldTypes> | ||
<description>Variable has to start with "ext_"</description> | ||
<pattern>ext_[a-zA-Z]+</pattern> | ||
</elementConvention> | ||
</elementConventions> | ||
</rule> | ||
<rule> | ||
<name>TaskNamingConventionChecker</name> | ||
<state>false</state> | ||
<elementConventions> | ||
<elementConvention> | ||
<name>convention</name> | ||
<description>taskname has to start with a capital letter followed by | ||
letters,hyphens or spaces | ||
</description> | ||
<pattern>[A-ZÄÖÜ][a-zäöü\\\-\\\s]+</pattern> | ||
</elementConvention> | ||
</elementConventions> | ||
</rule> | ||
<rule> | ||
<name>ElementIdConventionChecker</name> | ||
<state>false</state> | ||
<elementConventions> | ||
<elementConvention> | ||
<name>ServiceTask</name> | ||
<description>ServiceTask has to starts with "serviceTask" followed | ||
by at least two | ||
words starting with a capital letter | ||
</description> | ||
<pattern>serviceTask[A-Z]([A-Z0-9]*[a-z][a-z0-9]*[A-Z]|[a-z0-9]*[A-Z][A-Z0-9]*[a-z])[A-Za-z0-9]* | ||
</pattern> | ||
</elementConvention> | ||
</elementConventions> | ||
</rule> | ||
|
||
</ruleSet> |