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
Solved! Go to Solution.
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
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.
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
Hi, do you find solution for your problem? Becouse I have same now and marked solution does not solve the problem actually
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.