I develop workflow and i need to set default authorities in people picker (start-workflow form).
Example:
I think i should to set "default" value to association in model.xml file
<association name="scwf:assignees"> <title>Assignees</title> <source> <mandatory>false</mandatory> <many>true</many> </source> <target> <class>cm:person</class> <mandatory>false</mandatory> <many>true</many> </target> </association>But i don't know, how to set array of authorities
Solved! Go to Solution.
There is no support for default values in an association. There technically cannot be one because in order to define a default, you would have to know the reference value (node reference), which can differ from system to system (i.e. between dev and prod), or specific elements may not even exist. In addition, any default values in the model will not be reflected in the form - rather they would be set in the backend when a form has been provided without a value.
The only thing that could be done - with some non-trivial customisation - is to develop a custom form control which takes a "control-param" from the form configuration that denotes default values (e.g. names of groups), and dynamically resolves those names via search functionality, automatically adding any of the groups that could successfully be resolved to the list of selected values.
There is no support for default values in an association. There technically cannot be one because in order to define a default, you would have to know the reference value (node reference), which can differ from system to system (i.e. between dev and prod), or specific elements may not even exist. In addition, any default values in the model will not be reflected in the form - rather they would be set in the backend when a form has been provided without a value.
The only thing that could be done - with some non-trivial customisation - is to develop a custom form control which takes a "control-param" from the form configuration that denotes default values (e.g. names of groups), and dynamically resolves those names via search functionality, automatically adding any of the groups that could successfully be resolved to the list of selected values.
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.