03-20-2017 09:14 AM
Hello,
My use case is simple and I am really close to be able to implement it.
startEvent -> task1 -> task2 -> endEvent
I want my app users to fill forms at every task and be able, afterwards, to let them consult what form they have filled in the past.
I can easily display the form at the start event or at any task via API 15.9.1. Get form data when the user submits it.
But when the process is at task2 I cannot display the form submitted at task1 because
Then I cannot display the input labels which are stored as property names !
That's too bad not to have the property names, it would be very practical to display historical submitted forms !
Can anyone think a way of doing it using REST only ? Am I missing something ?
Thanks!
Stephane
03-20-2017 10:12 AM
If you add the "selectOnlyFormProperties=true" attribute to the query string of
POST query/historic-detail
You will only return variables that were submitted as part of a form.
I believe this is what you are after,
Greg
03-20-2017 10:12 AM
03-20-2017 10:37 AM
Thanks for the prompt answer.
I use the attribute selectOnlyFormProperties at true. But it does not return propertyNames 😕
With
POST query/historic-detail
the problem remains the same, I don't have the propertyNames which are my input control labels, then how to render the form without labelling my inputs ?
From: Activiti/modules/activiti-rest/src/main/java/org/activiti/rest/service/api/history/HistoricDetailResponse.java
public class HistoricDetailResponse {
...
// Form properties
protected String propertyId;
protected String propertyValue;
...
}
I am afraid the property name is never returned 😕 but it seems to me that display submitted form is a recurrent use case to implement.
03-20-2017 11:19 AM
No, it wont return "properties", rather it returns the variables that were bound to the form properties.
This is the closest you will get.
Greg
12-18-2019 01:02 AM
Hi, do you find solution for your problem? Becouse I have same now and marked solution does not solve the problem actually
Explore our Alfresco products with the links below. Use labels to filter content by product module.