cancel
Showing results for 
Search instead for 
Did you mean: 

Add propeties for Task on Alfresco Activiti Modeler

tunglk
Champ in-the-making
Champ in-the-making
Hi all,

I want to add a propertie for User Task on edit modeler.

As image:
[img]http://www.upsieutoc.com/images/2016/01/04/Capture51b59.png[/img]

in red circle second, i want display an other propeties ( i'm define) on this panel.

How can i do for it?

Thank so much!
13 REPLIES 13

jbarrez
Star Contributor
Star Contributor
If you need to store extra properties, you will probably also need to change the UserTaskActivityBehaviour to read that poperty and add it to the entity. You can swap out behaviour by extending the DefaultActivityBehaviorfactory class and injecting it into the processEngineConfiguration.

tunglk
Champ in-the-making
Champ in-the-making
Thanks for your help! But before I start a process, when i deploy a model on model workspace and on my deploy xml file (xyz.bpmn20.xml):
My task haven't propeties 'abc' ( < userTask id="task1" name="InsertProfile" activiti:assignee="kermit"/ > ).

I try debug to fill something referent to xml parser, but i can't.
Can you show me where do it.
Thank you!

jbarrez
Star Contributor
Star Contributor

tunglk
Champ in-the-making
Champ in-the-making
Yeah, i think that happens here: https://github.com/Activiti/Activiti/blob/master/modules/activiti-bpmn-converter/src/main/java/org/a...

I try to modify UserTaskXMLConverter.java but my properties  'eformKey'=null.
I upload my UserTaskXMLConverter.java file:
I add lines:
- 56, 97, 116, 140, 141