cancel
Showing results for 
Search instead for 
Did you mean: 

Expose id attribute of userTask element in Task interface

limcheekin
Champ on-the-rise
Champ on-the-rise
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:

<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
5 REPLIES 5

sstolarczyk
Champ in-the-making
Champ in-the-making
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.

rilisema
Champ in-the-making
Champ in-the-making
I also think this is a good idea. I also vote for it!

cosmicrider
Champ in-the-making
Champ in-the-making
I support this request

tombaeyens
Champ in-the-making
Champ in-the-making
Do I understand correctly that you want a method added to the Task interface like

String getTaskId();
that returns 'handleRequest' in your example?

(i added http://jira.codehaus.org/browse/ACT-145 )

limcheekin
Champ on-the-rise
Champ on-the-rise
Do I understand correctly that you want a method added to the Task interface like

String 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