cancel
Showing results for 
Search instead for 
Did you mean: 

Approve and assign user together

fuad_gafarov
Champ in-the-making
Champ in-the-making
Hi.
There are have operator, director, and other workers.
Operator - create document, assign to director
Director - approve document and assign to another worker
Worker - do job and done task.

Question: Can director approve and assign new user in same time?

Info: I create my own workflow.

Thanks a lot
4 REPLIES 4

ramesh_ram
Champ in-the-making
Champ in-the-making
hi fuad_gafarov,

I am also need the same kind of task can you please help me
how to do this. I am new to alfresco how you added the custom workflow.

fuad_gafarov
Champ in-the-making
Champ in-the-making
Add this piece of code in workflowModel.xml

<types>
    <type name="tcwf:select">
      <!– Наследуем от bpm:workflowTask –>
      <parent>bpm:workflowTask</parent>
      <!– Документ может быть отредактирован –>
      <overrides>
        <property name="bpm:packageItemActionGroup">
          <default>read_package_item_actions</default>
        </property>
      </overrides>
      <mandatory-aspects>
         <aspect>tcwf:secondAssignee</aspect>
      </mandatory-aspects>
    </type>
</types>

<aspects>
     <aspect name="tcwf:secondAssignee">
        <associations>
           <association name="tcwf:secondAssignee">
              <source>
                 <mandatory>false</mandatory>
                 <many>false</many>
              </source>    
              <target>
                 <class>cm:person</class>
                 <mandatory>false</mandatory>
                 <many>false</many>
              </target>    
           </association>    
        </associations>    
       
     </aspect>
</aspects>


Add this this in share-config-custom.xml (if you use share)

  <config evaluator="task-type" condition="tcwf:select">
    <forms>
       <form>
          <field-visibility>
             <show id="message" />
             <show id="taskOwner" />
             <show id="bpm:priority" />
             <show id="bpm:dueDate" />
             <show id="bpm:taskId" />
             <show id="bpm:status" />
             <show id="tcwf:secondAssignee" />
             <show id="packageItems" />
             <show id="bpm:comment" />
             <show id="transitions" />
          </field-visibility>
          <appearance>
             <set id="" appearance="title" label-id="workflow.set.task.info" />
             <set id="info" appearance="" template="/org/alfresco/components/form/3-column-set.ftl" />
             <set id="progress" appearance="title" label-id="workflow.set.task.progress" />
             <set id="items" appearance="title" label-id="workflow.set.items" />
             <set id="secondAssignee" appearance="title" label-id="workflow.set.assignee" />
             <set id="response" appearance="title" label-id="workflow.set.response" />
             <field id="message">
                <control template="/org/alfresco/components/form/controls/info.ftl" />
             </field>
             <field id="taskOwner" set="info" />
             <field id="bpm:taskId" set="info">
                <control template="/org/alfresco/components/form/controls/info.ftl" />
             </field>
             <field id="bpm:priority" set="info" read-only="true">
                <control template="/org/alfresco/components/form/controls/workflow/priority.ftl" />
             </field>
             <field id="bpm:dueDate" label-id="workflow.field.due" read-only="true">
                  <control template="/org/alfresco/components/form/controls/info.ftl" />
             </field>
             <field id="bpm:status" set="progress" />
             <field id="tcwf:secondAssignee" label-id="workflow.field.assign_to" set="secondAssignee" />
             <field id="packageItems" set="items" />
             <field id="bpm:comment" label-id="workflow.field.comment" set="response">
                <control template="/org/alfresco/components/form/controls/textarea.ftl" />
             </field>
             <field id="transitions" set="response" />
          </appearance>
        </form>
    </forms>
  </config>

If need advanced I can help you via skype.
skype: fuad.gafarov

ramesh_ram
Champ in-the-making
Champ in-the-making
hi fuad_gafarov ,
thanks for your reply,

recently I started working on alfresco, for adding advanced
workflow, what is the procedure.
what are changes we have to do, to add advanced workflow.

fuad_gafarov
Champ in-the-making
Champ in-the-making