Is it possible to retrieve: workflow process definition start form model / task form model entries, in same order as defined in content model properties, via Public Rest API?
e.g. of custom content type:
<type name="sc:test">
<title>Test Model</title>
<parent>bpm:startTask</parent>
<properties>
<property name="sc:firstName">
<title>First Name</title>
<type>d:text</type>
</property>
<property name="sc:lastName">
<title>Last Name</title>
<type>d:text</type>
</property>
<property name="sc:birthDate">
<title>Birth Date</title>
<type>d:date</type>
</property>
...........................
...........................
...........................
</properties>
<mandatory-aspects>
<aspect>bpm:assignee</aspect>
</mandatory-aspects>
</type>
After calling: GET /process-definitions/{processDefinitionId}/start-form-model, ordering of the result entries are not same as they are defined in above described model (1. firstName, 2.lastName, 3.birthDate ...).
Hi,
You can set field visibility and field ordering in 'Share-config-custom.xml' as follows :
<config evaluator="string-compare" condition="activiti$nameofProcess">
<forms>
<form>
<field-visibility>
<show id="sc:firstName" /><show id="sc:lastName" />
<show id="sc:birthDate" />
</field-visibility>
<appearance>
<field id="sc:firstName" /><field id="sc:lastName" />
<field id="sc:birthDate" />
</appearance>
</form>
</forms>
</config>
The above config is for workflow start task, condition contains the process id with prefix 'activiti$'.
Thanks,
Vidhi
Hello,
Thanks for your reply. I do not use share, I want to know if same thing was achievable from public Rest API, it would be nice if forms GET methods have some sorting functionality.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
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.