cancel
Showing results for 
Search instead for 
Did you mean: 

Rigth way to get a form defined in process definition by REST

zloy
Champ in-the-making
Champ in-the-making
Hi,
I got the task Id and I need to supply frontend with form content

As far as I see I need to perform such data retrieval steps:

1. <b>Get</b> task by its Id, e.g. /runtime/tasks/95094
2. Pick from task form_key = task['formKey'] and proc_def_url = task['processDefinitionUrl']
3. <b>Get</b> proc_def from /repository/process-definitions/VacationProcess%3A1%3A93960
4. <b>Get</b> deployment resources by proc_def["deploymentUrl"] /repository/deployments/93951/resources
5. Find a proper resource by form_key and pick its url
6. <b>Get</b> form data from resource url, e.g. /repository/deployments/93951/resourcedata/handle_request.yaml

Is that serie of 4 <b>GET</b>'s right way to retrieve task form content for given task id?
4 REPLIES 4

zloy
Champ in-the-making
Champ in-the-making
gently up

zloy
Champ in-the-making
Champ in-the-making
Hi, do I do completely insane things or that is what it's supposed to do

jbarrez
Star Contributor
Star Contributor
No, you simply posted in the wrong forum (see description of this forum 'Only for discussing development of Activiti itself.'), hence why people look less here.

The way you describe is the proper way, if you store the forms in the deployment. Of course, you can choose whatever you want to put in the formKey to optimize that.

zloy
Champ in-the-making
Champ in-the-making
>> No, you simply posted in the wrong forum
Ok, I see now, thank you.

I'll post rephrased question in the right forum.