AnsweredAssumed Answered

Multiple web components - bpm:assignees

Question asked by scundall on Nov 4, 2013
Is it possible, eventually how:-), to put multiple bpm:assigneess components on the form.
Example: I have code for share like this:

<forms>
         <form>
            <field-visibility>
               <!– C O M M O N –>
               <!– 2-COLUMNED –>
               <show id="dmswf:docTitle" />
               <show id="dmswf:tags" />
               <!– 3-COLUMNED –>
               <show id="dmswf:documentCategories" />
               <show id="dmswf:overallWorkflowDueDate" />
               <show id="dmswf:workflowPriority" />
               <show id="bpm:assignee" />
               <show id="dmswf:solverGroupAssignees" />
               <!– 1-COLUMNED –>
               <show id="message" />
               <!– <show id="bpm:workflowDescription" /> –>

               <!– E L A B O R A T I O N specific –>
               <!– <show id="bpm:status" /> –>
               <show id="taskOwner" />
               <show id="bpm:taskId" />

               <show id="dmswf:reviewAssignees" />
               <show id="dmswf:approvalAssignees" />

               <show id="bpm:comment" />
               <show id="packageItems" />
               <show id="dmswf:elaborationOutcome" />
            </field-visibility>
            <appearance>
               <set id="" appearance="title" label-id="workflow.set.task.info" />
               <set id="info2" appearance="" template="/org/alfresco/components/form/2-column-set.ftl" />
               <set id="info3" appearance="" template="/org/alfresco/components/form/3-column-set.ftl" />
               <set id="assignee" appearance="title" label="Solver(s)" template="/org/alfresco/components/form/3-column-set.ftl" />
               <set id="items" appearance="title" label="Template(s)" />
               <set id="other" appearance="title" label-id="workflow.set.other" />
               <set id="response" appearance="title" label-id="workflow.set.response" />

               <!– C O M M O N –>
               <!– 2-COLUMNED –>
               <field id="dmswf:docTitle" label="Document title" set="info2" read-only="true" />
               <field id="dmswf:tags" label="Tag(s)" set="info2" read-only="true" />

               <!– 3-COLUMNED –>
               <field id="dmswf:documentCategories" label="Categories" set="info3" read-only="true" />
               <field id="dmswf:overallWorkflowDueDate" label="Overall completion due date" set="info3" read-only="true">
                  <control template="/org/alfresco/components/form/controls/date.ftl">
                     <control-param name="showTime">false</control-param>
                     <control-param name="submitTime">false</control-param>
                  </control>
               </field>
               <field id="dmswf:workflowPriority" label="Priority" set="info3" read-only="true">
                  <control template="/org/alfresco/components/form/controls/workflow/priority.ftl" />
               </field>
               <field id="bpm:assignee" label="Solver" set="assignee" read-only="true" />
               <field id="dmswf:solverGroupAssignees" label="Solver(s)" set="assignee" />
               
               <!– 1-COLUMNED –>
               <field id="message" label="Instructions">
                  <control template="/org/alfresco/components/form/controls/info.ftl" />
               </field>
               <!– <field id="bpm:workflowDescription" label="Instructions" read-only="true"> –>
               <!– <control template="/org/alfresco/components/form/controls/richtext.ftl"> –>
               <!– <control-param name="style">width: 95%</control-param> –>
               <!– <control-param name="editorAppearance">explorer</control-param> –>
               <!– </control> –>
               <!– </field> –>

               <!– E L A B O R A T I O N specific –>
               <field id="taskOwner" set="info2" />
               <field id="bpm:taskId" set="info2">
                  <control template="/org/alfresco/components/form/controls/info.ftl" />
               </field>

               <!– ASSIGNABLES –>
               <field id="dmswf:approvalAssignees" label="Approver(s)" set="assignee" />
               <field id="dmswf:reviewAssignees" label="Reviewer(s)" set="assignee" />

               <field id="bpm:comment" label-id="workflow.field.comment" set="response" />
               <field id="packageItems" Label="Document template(s)" set="items" />
               <field id="dmswf:elaborationOutcome" set="response">
                  <control template="/org/alfresco/components/form/controls/workflow/activiti-transitions.ftl" />
               </field>
            </appearance>
         </form>
      </forms>




<aspect name="dmswf:approvalAssignees">
         <associations>
            <association name="dmswf:approvalAssignees">
               <source>
                  <mandatory>false</mandatory>
                  <many>true</many>
               </source>
               <target>
                  <class>cm:person</class>
                  <mandatory>false</mandatory>
                  <many>true</many>
               </target>
            </association>
         </associations>
      </aspect>

      <aspect name="dmswf:solverGroupAssignees">
         <associations>
            <association name="dmswf:solverGroupAssignees">
               <source>
                  <mandatory>false</mandatory>
                  <many>true</many>
               </source>
               <target>
                  <class>cm:person</class>
                  <mandatory>false</mandatory>
                  <many>true</many>
               </target>
            </association>
         </associations>
      </aspect>

      <aspect name="dmswf:mandatoryReadersGroupAssignees">
         <associations>
            <association name="dmswf:mandatoryReadersGroupAssignees">
               <source>
                  <mandatory>false</mandatory>
                  <many>true</many>
               </source>
               <target>
                  <class>cm:person</class>
                  <mandatory>false</mandatory>
                  <many>true</many>
               </target>
            </association>
         </associations>
      </aspect>

Example of type

      <type name="dmswf:readDocTask">
         <parent>bpm:activitiOutcomeTask</parent>
         <properties>
            <property name="dmswf:readDocOutcome">
               <type>d:text</type>
               <default>readDoc</default>
               <constraints>
                  <constraint ref="dmswf:readDocOutcomeConst"></constraint>
               </constraints>
            </property>
         </properties>
         <overrides>
            <property name="bpm:outcomePropertyName">
               <default>{http://tieto.com/prefix/dmswf}readDocOutcome
               </default>
            </property>
         </overrides>
         <mandatory-aspects>
            <aspect>bpm:assignee</aspect>
            <aspect>dmswf:mandatoryReadersGroupAssignees</aspect>
         </mandatory-aspects>
      </type>

Outcomes