Expose id attribute of userTask element in Task interface

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2010 01:48 AM
Hi,
Just to find out that is there any plan to expose id attribute of userTask element in Task interface?
I would like to request this feature to be included in 5.0.beta2 to make task form integration simpler in Grails.
Below is sample code from vacation request bpmn xml:
So the developer can run the same bpmn.xml in both Activiti Explorer and Grails environment without any amendment.
What do you think?
Regards,
Chee Kin
Just to find out that is there any plan to expose id attribute of userTask element in Task interface?
I would like to request this feature to be included in 5.0.beta2 to make task form integration simpler in Grails.
Below is sample code from vacation request bpmn xml:
<process id="vacationRequest" name="Vacation request">…. <userTask id="handleRequest" name="Handle vacation request" activiti:form="org/activiti/examples/taskforms/approve.form" >
Given code block above, for locating Task form (GSP view) by Convention over Configuration in Grails, we can achieve it by using getKey() (proposed API for expose of id attribute) of Task interface. While the getKey() return "handleRequest", we can make the convention controller/action equals to processKey/userTaskKey, where in the case above is vacationRequest/handleRequest.So the developer can run the same bpmn.xml in both Activiti Explorer and Grails environment without any amendment.
What do you think?
Regards,
Chee Kin
Labels:
- Labels:
-
Archive
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2010 03:01 AM
I think it's a good idea, not only for Grails, but for other technologies as well. I vote for it to be included in the upcoming release.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2010 03:56 AM
I also think this is a good idea. I also vote for it!

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2010 02:34 PM
I support this request

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2010 03:28 AM
Do I understand correctly that you want a method added to the Task interface like
that returns 'handleRequest' in your example?
(i added http://jira.codehaus.org/browse/ACT-145 )
String getTaskId();
that returns 'handleRequest' in your example?
(i added http://jira.codehaus.org/browse/ACT-145 )

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2010 06:08 AM
Do I understand correctly that you want a method added to the Task interface likeString getTaskId();
that returns 'handleRequest' in your example?
(i added http://jira.codehaus.org/browse/ACT-145 )
Hi Tom,
Yes. Thanks for creating the jira issue and your support on this enhancement.
Regards,
Chee Kin
