{"record":{"id":"868be6d3fb4091cf","repo":"flowable/flowable-engine","slug":"not-supported-to-set-get-cached-value","errorCode":null,"errorMessage":"Not supported to set get cached value","messagePattern":"Not supported to set get cached value","errorType":"exception","errorClass":"UnsupportedOperationException","httpStatus":null,"severity":"error","filePath":"modules/flowable-engine/src/main/java/org/flowable/engine/impl/delete/BatchDeleteProcessConfig.java","lineNumber":560,"sourceCode":"\n        @Override\n        public void setDoubleValue(Double doubleValue) {\n            throw new UnsupportedOperationException(\"Not supported to set double value\");\n        }\n\n        @Override\n        public byte[] getBytes() {\n            throw new UnsupportedOperationException(\"Not supported to get bytes\");\n        }\n\n        @Override\n        public void setBytes(byte[] bytes) {\n            throw new UnsupportedOperationException(\"Not supported to set bytes\");\n        }\n\n        @Override\n        public Object getCachedValue() {\n            throw new UnsupportedOperationException(\"Not supported to set get cached value\");\n        }\n\n        @Override\n        public void setCachedValue(Object cachedValue) {\n            throw new UnsupportedOperationException(\"Not supported to set cached value\");\n        }\n    }\n}\n","sourceCodeStart":542,"sourceCodeEnd":569,"githubUrl":"https://github.com/flowable/flowable-engine/blob/d6d39ce1c69ff244f2d9dc6af756a9b95e865586/modules/flowable-engine/src/main/java/org/flowable/engine/impl/delete/BatchDeleteProcessConfig.java#L542-L569","documentation":"The inner entity of BatchDeleteProcessConfig implements getCachedValue() by throwing UnsupportedOperationException with the message 'Not supported to set get cached value'. This configuration object is not cached in the entity cache, so reading the cached value is unsupported by design. Any call to getCachedValue on this instance throws.","triggerScenarios":"Calling getCachedValue() on the inner variable/entity instance in BatchDeleteProcessConfig (BatchDeleteProcessConfig.java:560), typically via cache-machinery that reads the cached object of every entity, or generic value-copying code.","commonSituations":"Entity cache flushing/lookup paths processing the batch-delete config as if it were a cached variable entity; serialization or diff utilities that read cached values from all entities.","solutions":["Do not call getCachedValue on the batch-delete configuration entity.","Exclude non-cacheable entities from cache operations by checking their type first.","Use a real persistent variable entity (e.g. VariableInstanceEntity) if cached value semantics are required."],"exampleFix":"// before\nObject cached = entity.getCachedValue();\n// after\nObject cached = (entity instanceof VariableInstanceEntity)\n    ? ((VariableInstanceEntity) entity).getCachedValue()\n    : null;","handlingStrategy":"validation","validationCode":"Object cached = (entity instanceof VariableInstanceEntity)\n    ? ((VariableInstanceEntity) entity).getCachedValue()\n    : null;","typeGuard":"boolean cacheable = (entity instanceof VariableInstanceEntity);","tryCatchPattern":null,"preventionTips":["Do not run entity-cache routines over non-persistent config objects.","Filter entities by type before cache read/write operations."],"tags":["unsupported-operation","batch-delete","flowable"],"backgroundTag":"unsupported-operation","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"}