AnsweredAssumed Answered

How can I check if an association is empty?

Question asked by mafaldap on Nov 19, 2016
Latest reply on Nov 20, 2016 by mafaldap

I've three associations added to the workflow's form by an aspect:

<aspect name="psw:allegabile">
               <associations>
                    <association name="psw:docDRC">
                         <title>Domanda di Ricostruzione di Carriera</title>
                         <source>
                              <mandatory>true</mandatory>
                              <many>false</many>
                         </source>
                         <target>
                              <class>cm:content</class>
                              <mandatory>true</mandatory>
                              <many>false</many>
                         </target>
                    </association>
                    <association name="psw:docAS">
                         <title>Autocertificazione dei Servizi</title>
                         <source>
                              <mandatory>true</mandatory>
                              <many>false</many>
                         </source>
                         <target>
                              <class>cm:content</class>
                              <mandatory>true</mandatory>
                              <many>false</many>
                         </target>
                    </association>
                    <association name="psw:docAllegati">
                         <title>Documenti allegati</title>
                         <source>
                              <mandatory>false</mandatory>
                              <many>true</many>
                         </source>
                         <target>
                              <class>cm:content</class>
                              <mandatory>false</mandatory>
                              <many>true</many>
                         </target>
                    </association>
               </associations>
          </aspect>

I need to move the documents between folders during the workflow. The move function works for the mandatory associations but I can't find how to check if psw:docAllegati is empty. Any idea?

Outcomes