{"record":{"id":"8a12e919d8b53900","repo":"flowable/flowable-engine","slug":"property-not-found-in-task-name-expression","errorCode":null,"errorMessage":"property not found in task name expression {}","messagePattern":"property not found in task name expression (.+?)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"modules/flowable5-engine/src/main/java/org/activiti/engine/impl/bpmn/behavior/UserTaskActivityBehavior.java","lineNumber":136,"sourceCode":"            activeCandidateGroupExpressions = taskDefinition.getCandidateGroupIdExpressions();\n        }\n\n        Expression skipExpression = taskDefinition.getSkipExpression();\n        boolean skipUserTask = SkipExpressionUtil.isSkipExpressionEnabled(activityExecution, skipExpression) &&\n                SkipExpressionUtil.shouldSkipFlowElement(activityExecution, skipExpression);\n\n        TaskEntity task = TaskEntity.createAndInsert(activityExecution, !skipUserTask);\n        task.setExecution(execution);\n\n        task.setTaskDefinition(taskDefinition);\n\n        if (activeNameExpression != null) {\n            String name = null;\n            try {\n                name = (String) activeNameExpression.getValue(execution);\n            } catch (ActivitiException e) {\n                name = activeNameExpression.getExpressionText();\n                LOGGER.warn(\"property not found in task name expression {}\", e.getMessage());\n            }\n            task.setName(name);\n        }\n\n        if (activeDescriptionExpression != null) {\n            String description = null;\n            try {\n                description = (String) activeDescriptionExpression.getValue(execution);\n            } catch (ActivitiException e) {\n                description = activeDescriptionExpression.getExpressionText();\n                LOGGER.warn(\"property not found in task description expression {}\", e.getMessage());\n            }\n            task.setDescription(description);\n        }\n\n        if (activeDueDateExpression != null) {\n            Object dueDate = activeDueDateExpression.getValue(execution);\n            if (dueDate != null) {","sourceCodeStart":118,"sourceCodeEnd":154,"githubUrl":"https://github.com/flowable/flowable-engine/blob/d6d39ce1c69ff244f2d9dc6af756a9b95e865586/modules/flowable5-engine/src/main/java/org/activiti/engine/impl/bpmn/behavior/UserTaskActivityBehavior.java#L118-L154","documentation":"Logged by UserTaskActivityBehavior when evaluating the task's name expression throws an ActivitiException (e.g. property/variable referenced by the expression does not exist). The raw expression text is used as the task name as fallback and the flow continues.","triggerScenarios":"A user task with a name expression like ${order.customerName} where the property is missing or expression evaluation fails at runtime.","commonSituations":"Renamed/removed process variables referenced in task name expressions; typos in EL property paths; missing variable initialization before the user task.","solutions":["Ensure the variable/property referenced by the name expression exists before the task is created","Add defaulting to the expression, e.g. ${order.customerName ?: 'unknown'}","Correct typos in the expression in the BPMN XML"],"exampleFix":"// before\n<userTask name=\"Approve ${order.customerName}\" />\n// after\n<userTask name=\"Approve ${order.customerName != null ? order.customerName : 'unknown'}\" />","handlingStrategy":"validation","validationCode":"Object n = execution.getVariable(\"order\");\nif (n == null) throw new BpmnError(\"MISSING_VAR\", \"order not set before approval task\");","typeGuard":null,"tryCatchPattern":"try { name = (String) expr.getValue(execution); } catch (ActivitiException e) { name = expr.getExpressionText(); LOGGER.warn(...); }","preventionTips":["Keep task name expressions simple and null-safe","Set all variables referenced by expressions before the user task","Review BPMN expressions after variable renames"],"tags":["user-task","expression","el"],"backgroundTag":"resource-not-found","analyzedSha":"d6d39ce1c69ff244f2d9dc6af756a9b95e865586","analyzedAt":"2026-09-11T06:41:19.413Z","contentChangedAt":"2026-09-11T06:41:19.413Z","schemaVersion":2},"datasetVersion":"2026-09-18T11:17:12.947Z"}