fix missing configuration in Rules (#2448)

Signed-off-by: Jan N. Klug <jan.n.klug@rub.de>
pull/2462/head
J-N-K 2021-08-08 15:13:30 +02:00 committed by GitHub
parent 66847ebef9
commit 638356c943
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -177,6 +177,7 @@ public class ScriptedAutomationManager {
actions.add(scriptedAction);
}
builder.withConfiguration(element.getConfiguration());
builder.withActions(actions);
Rule rule = builder.build();
@ -184,9 +185,9 @@ public class ScriptedAutomationManager {
return rule;
}
public void addConditionType(ConditionType condititonType) {
modules.add(condititonType.getUID());
scriptedCustomModuleTypeProvider.addModuleType(condititonType);
public void addConditionType(ConditionType conditionType) {
modules.add(conditionType.getUID());
scriptedCustomModuleTypeProvider.addModuleType(conditionType);
}
public void addConditionHandler(String uid, ScriptedHandler conditionHandler) {