cancel
Showing results for 
Search instead for 
Did you mean: 

Modification on ProcessInstanceResource (web-rest)

f_lombardo
Champ in-the-making
Champ in-the-making
I would like to modify the ProcessInstanceResource of the webapp-rest application to get the taskDefinitionKey property like in the "Get open tasks for a process instance" api call:

At line 135 I would add:

        taskJSON.put("taskDefinitionKey", historicTaskInstance.getTaskDefinitionKey()); //<-
        tasksJSON.add(taskJSON);

Would it be possible? Could I add it by myself on the project repository becoming a contributor?

Thanks in advance.

Bye

Franco
5 REPLIES 5

jbarrez
Star Contributor
Star Contributor
Would it be possible? Could I add it by myself on the project repository becoming a contributor?

Yes, if you can convince the core developers that what you did is a good thing in general.

For example, you'd have to explain the use case for you change. So, in this case, what exactly are you trying to do?

f_lombardo
Champ in-the-making
Champ in-the-making
The API "Get open tasks for a process instance" returns the "taskDefinitionKey" property for each task, while the "Get Process Instance Details" one does not, and this is, in my humble opinion, a little lack of uniformity.
Since in my client code I'm parsing  these APIs results to create my "Task" POJOs, I would like to have uniform information from them.

Thank you.

Bye

Franco

jbarrez
Star Contributor
Star Contributor
Ok I understand. Can you create a new Jira for it, so we can follow it up?
The alternative, faster solution is to fork Activiti, do the fix and send us a pull requests.

jbarrez
Star Contributor
Star Contributor
Ok I understand. Can you create a new Jira for it, so we can follow it up?
The alternative, faster solution is to fork Activiti, do the fix and send us a pull requests.

f_lombardo
Champ in-the-making
Champ in-the-making
I created https://jira.codehaus.org/browse/ACT-1450
I hope it's OK.

Thank you very much.

Bye

Franco