Problem
I have several Activiti task types, the base types are ServiceTask and UserTask.
Some ServiceTask types are Java implementations, each of them different. Then there are others.
I'd like to distinguish them in my code.
Question
Is it possible to store some custom attributes / properties in the tasks and if so, how?
Example:
A ServiceTask that implements simple Logging functionality should have a property "TYPE" with the value "LOGGING" which I can then query later.
I tried using FieldExtension, but when I run the workflow, Activiti throws the error:
org.activiti.engine.ActivitiIllegalArgumentException: Field definition uses unexisting field 'TYPE'
Same happens for CustomProperty.
Of course I could solve that by declaring the field in the Java class, but I need a solution that works also for non Java service tasks and for user tasks. Or better yet if possible for all flow elements.
Thank you very much!