cancel
Showing results for 
Search instead for 
Did you mean: 

How to remove assignee from submitAdhocTask form

muralidharand
Star Contributor
Star Contributor
Hi experts,

While starting the workflow, (ie) in wf:submitAdhocTask form, I want to remove the assignee option. And during the workflow design, I wanted to hardcode the candidategroups. Basically behind the scenes, I want to assign the candidategroup in wf:submitAdhocTask form.

Please suggest me.
2 REPLIES 2

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

Are you customizing any out of the box workflow.  You can make change in the workflowModel.xml . Instead of bpm:assignee , change it to groupAssignee. NOTE : This will affect workflows which are using  below type.

<type name="wf:submitAdhocTask">
         <parent>bpm:startTask</parent>
         <properties>
            <property name="wf:notifyMe">
               <type>d:boolean</type>
               <default>false</default>
            </property>
         </properties>
         <mandatory-aspects>
            <aspect>bpm:groupAssignee</aspect>
         </mandatory-aspects>
      </type>

Second step :  you can now hard code  group in the process definition , for e.g.  Use the below code for that specific task.

<assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment">
               <actor>#{candidategroups}</actor>
    </assignment>

OR
<action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
               <script>
                    executionContext.setVariable("bpm_groupAssignee",candidategroups);
               </script>
</action>

I would suggest to see parallelreview_group_processdefinition.xml and review_pooled_processdefinition.xml  for  reference. The files are located in <install-app>|tomcat|webapps|alfresco|WEB-INF|classes|alfresco|workflow.

Thanks,

muralidharand
Star Contributor
Star Contributor
Thanks it helped me.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.