diff --git a/entity/WorkflowLauncher_entity/entityfields/launchworkflows/stateProcess.js b/entity/WorkflowLauncher_entity/entityfields/launchworkflows/stateProcess.js index 568ebbfeb58ea45a42785dc853f78056a06201c7..0148a2b2710ef62560f8ba352c19902172137dc5 100644 --- a/entity/WorkflowLauncher_entity/entityfields/launchworkflows/stateProcess.js +++ b/entity/WorkflowLauncher_entity/entityfields/launchworkflows/stateProcess.js @@ -1,8 +1,11 @@ import("system.vars"); import("system.result"); import("system.neon"); +import("Util_lib"); -result.string(vars.get("$sys.validationerrors") || vars.get("$param.Validationerrors_param") +let areEmptyFields = Utils.isNullOrEmpty(vars.get("$field.NAME")) || Utils.isNullOrEmpty(vars.get("$field.KEY")); + +result.string(vars.get("$sys.validationerrors") || vars.get("$param.Validationerrors_param") || areEmptyFields ? neon.COMPONENTSTATE_DISABLED : neon.COMPONENTSTATE_EDITABLE ); \ No newline at end of file