cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow with non many association items package

rascio
Champ in-the-making
Champ in-the-making
Hi at all,
i need to change the assignation of the package items for the workflows. Hi have to make that is possible to start a worklflow for only one document at time. Hi read the bpmModel.xml but i don't understad how i can change the association multiplicity.
If is possible how i can do that? Or there is some other way to do it (like change Share UI configuration for the form)?
1 REPLY 1

amitabhandari1
Champ in-the-making
Champ in-the-making
Hi rascio,

If I  understood correctly ,  you want to restrict no. of files to be attached to a workflow.
There is  file placed in location tomcat/webapps/alfresco/WEB-INF/classes/alfresco/model/bpmModel.xml.
Search for bpmSmiley Tongueackage and make the changes in the target tag . Replace  "true" with "false" .

              <target>
                  <class>sys:base</class>
                  <mandatory>false</mandatory>
                 <many>false</many>
               </target>

 <type name="bpm:package">         <title>Package Folder</title>         <parent>cm:systemfolder</parent>         <archive>true</archive>         <associations>            <child-association name="bpm:packageContains">               <source>                  <mandatory>false</mandatory>                  <many>true</many>               </source>               <target>                  <class>sys:base</class>                  <mandatory>false</mandatory>                 <many>true</many>               </target>               <duplicate>true</duplicate>               <propagateTimestamps>true</propagateTimestamps>            </child-association>         </associations>      </type>‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍