cancel
Showing results for 
Search instead for 
Did you mean: 

Can I define new attributes in the activiti.cfg.xml

sky1
Champ in-the-making
Champ in-the-making
Hello,

I have a trouble when I using activiti in the project.
There are some buttons which display or hide based on some rules in some jsps.So I want to add some new attributes in the userTask node.But I don't know whether this way is supported? And how can I get the attributes?

Thanks!
2 REPLIES 2

frederikherema1
Star Contributor
Star Contributor
Do you mean adding attributes to the process-definition in XML? I'm affraid there is no easy mechanism to do this, the userTask xml is bpmn2.0 compliant, with some custom activiti-extentions.

You can however, use task-variables at runtime. You can set variables on a task (or process) and use those in your JSP (taskService and runtimeService offer nice API for reading/writing these variables)

sky1
Champ in-the-making
Champ in-the-making
Do you mean adding attributes to the process-definition in XML? I'm affraid there is no easy mechanism to do this, the userTask xml is bpmn2.0 compliant, with some custom activiti-extentions.

You can however, use task-variables at runtime. You can set variables on a task (or process) and use those in your JSP (taskService and runtimeService offer nice API for reading/writing these variables)


Thanks a lot! I will try it.