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

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2011 05:33 AM
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!
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!
Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2011 03:49 AM
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)
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)

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2011 05:40 AM
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.
