Skip to content
Snippets Groups Projects
Commit d9fefb0e authored by Henning's avatar Henning
Browse files

check if the expression contains execution.removeVariable*s

parent d8f10866
No related branches found
No related tags found
No related merge requests found
......@@ -173,10 +173,13 @@ public class BPMNVariableIOScanner {
{
case "delegateExpression":
String strExpression = expression.getValue(currentElement).toString();
Pattern pattern = Pattern.compile("\"(.*?)\"", Pattern.DOTALL);
Matcher matcher = pattern.matcher(strExpression);
while (matcher.find()) {
removeVars.add(matcher.group(1)); // Contains String with all variables from removeVar Expression
if(strExpression.contains("execution.removeVariable")) // check the String for a removeVariable*s Expression
{
Pattern pattern = Pattern.compile("\"(.*?)\"", Pattern.DOTALL);
Matcher matcher = pattern.matcher(strExpression);
while (matcher.find()) {
removeVars.add(matcher.group(1)); // Contains String with all variables from removeVar Expression
}
}
break;
default:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment