cancel
Showing results for 
Search instead for 
Did you mean: 

Metadata with a list of Alfresco users

coffman
Champ in-the-making
Champ in-the-making
Hello.
I am defining onw type of document who needs a list of users, this users must exist on Alfresco.

So the question is :
Is posible to put a metadata on a document that contains a list of valid users ?
I try without success with this code on my model:
<property name="av:users">
                <title>Document users</title>
                <type>d:text</type>
                <multiple>true</multiple>
                <constraints>
                        <constraint ref="cm:userNameConstraint" />
                </constraints>
            </property>
The component must show like the one to choose users on an advanced Workflow.

Thanks
1 REPLY 1

jbarmash
Champ in-the-making
Champ in-the-making
It's possible - take a look at bpmModel.xml  file, more specifically aspect  "bpm:assignees".  It creates an associatoin between an aspect and multiple cmSmiley Tongueerson  objects.

    <aspect name="bpm:assignees">
            <associations>

                <association name="bpm:assignees">
                    <source>
                        <mandatory>false</mandatory>
                        <many>false</many>
                    </source>
                    <target>
                        <class>cmSmiley Tongueerson</class>
                        <mandatory>true</mandatory>
                        <many>true</many>
                    </target>
                </association>

            </associations>
        </aspect>