Like PRIORITY_, and DUE_DATE_ , I want to introduce my new custom property for UserTask. I tried as per my understanding. I took the reference of PRIORITY_ attribute. I can see my new attribute/property in modeler design but not in ACT_RU_TASK table and task object getter.
Solved! Go to Solution.
Be aware, doing this will break any upgrade in the future.
1. Update table schema
2. Update the iBatis mappings (under resources in activiti-engine module)
3. Update TaskEntoty and TaskEntityManager classes in org.activiti.engine.impl.persistence.entity
4. Update all unit tests that will now fail.
I think that should do it.
Greg
Give us a little more detail of what you have done to date.
It sounds as though all you have done is add a custom property in the modeler which will impact the BPMN definition that is ultimately deployed.
For custom service tasks this is usually enough as the service implementation knows how to understand the extension elements injected into the BPMN.
However if you are looking to extend a standard User task, you will need to update the BPMN parser, ActivityBehavior handler, Entity definition and myBatis mappings.
A fairly straight forward, but non trivial exercise.
Perhaps I have misunderstood your requirement.
Greg
Thanks for the reply, I want to introduce new attribute in ACT_RU_TASK table. Please guide me for the same.
Be aware, doing this will break any upgrade in the future.
1. Update table schema
2. Update the iBatis mappings (under resources in activiti-engine module)
3. Update TaskEntoty and TaskEntityManager classes in org.activiti.engine.impl.persistence.entity
4. Update all unit tests that will now fail.
I think that should do it.
Greg
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.