AnsweredAssumed Answered

bpm:packageActionGroup not working

Question asked by tarunbajaj_007 on May 1, 2008
Latest reply on Apr 6, 2009 by dbz
Hi ,

I have deployed a custom workflow and the problem is even though I have specified the action group properties,
like this in my model file:
         <property name="bpm:packageItemActionGroup">
               <default>edit_package_item_actions</default>
            </property>
in the web client it is only showing the "View Properties" action. It is not giving the option to edit and checkout the content.
Here is my code.

Process Definition File: idearc1_processdefinition.xml

<?xml version="1.0" encoding="UTF-8"?>

<process-definition xmlns="urn:jbpm.org:jpdl-3.1" name="ac:idearc1">

   <swimlane name="editor">
      <assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment">
         <actor>salesrep</actor>
      </assignment>
   </swimlane>
   <swimlane name="mip">
       <assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment">
          <actor>accountmanager</actor>
       </assignment>
   </swimlane>
   <swimlane name="analyst">
      <assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment">
          <actor>analyst</actor>
      </assignment>
   </swimlane>
  
   <start-state name="start">
      <task name="ac:RegisterDocs1" swimlane="editor">
      </task>
      <transition name="" to="AnalyzeDocs"></transition>
   </start-state>
  
  
   <task-node name="AnalyzeDocs">
      <task name="ac:AnalyzeDocs1" swimlane="mip">
      </task>
      <transition name="Reject" to="RejectDoc"></transition>
      <transition name="Consult_Specialist" to="ConsultAnalyst"></transition>
   </task-node>


    <task-node name="RejectDoc">
      <task name="ac:RejectDoc1" swimlane="editor">
      </task>
      <transition name="Feedback1" to="CompleteRequest"></transition>
   </task-node>
  

  
   <task-node name="ConsultAnalyst">
      <task name="ac:ConsultAnalyst1" swimlane="analyst">
      </task>
      <transition name="Feedback2" to="CompleteRequest"></transition>
   </task-node>
  

   <task-node name="CompleteRequest">
      <task name="ac:CompleteRequest1" swimlane="analyst">
      </task>
      <transition name="Accepted" to="end"></transition>
   </task-node>
    
   <end-state name="end"></end-state>
  
  
</process-definition>





Model file: idearc1Model.xml

<?xml version="1.0" encoding="UTF-8"?>

<model name="ac:idearc1" xmlns="http://www.alfresco.org/model/dictionary/1.0">
  
    <description>Idearc Publishing</description>
    <author>Tarun Bajaj</author>
    <version>1.0</version>

    <imports>
        <import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d" />
        <import uri="http://www.alfresco.org/model/bpm/1.0" prefix="bpm" />
        <import uri="http://www.alfresco.org/model/workflow/1.0" prefix="wf" />
        <import uri="http://www.alfresco.org/model/content/1.0" prefix="cm" />
    </imports>
  
    <namespaces>
        <namespace uri="ac.idearc1" prefix="ac" />
    </namespaces>
  

    <types>
      
      <type name="ac:RegisterDocs1">
            <parent>bpm:startTask</parent>
             <overrides>
                    <property name="bpm:packageActionGroup">
               <default>add_package_item_actions</default>
               </property>
                </overrides>

          <mandatory-aspects>
                <aspect>ac:publishDetails</aspect>
            </mandatory-aspects>        
        </type>

     
        <type name="ac:AnalyzeDocs1">
            <parent>bpm:workflowTask</parent>

        <overrides>
            <property name="bpm:packageActionGroup">
               <default>add_package_item_actions</default>
            </property>
            <property name="bpm:packageItemActionGroup">
               <default>edit_package_item_actions</default>
            </property>
         </overrides>


      </type>
      
       
      <type name="ac:ConsultAnalyst1">
            <parent>bpm:workflowTask</parent>

       <overrides>
            <property name="bpm:packageActionGroup">
               <default>add_package_item_actions</default>
            </property>
            <property name="bpm:packageItemActionGroup">
               <default>edit_package_item_actions</default>
            </property>
         </overrides>

      </type>
      
      
        <type name="ac:RejectDoc1">
            <parent>bpm:workflowTask</parent>

          <mandatory-aspects>
                <aspect>ac:publishDetails</aspect>
            </mandatory-aspects>        

      </type>
      
        <type name="ac:CompleteRequest1">
            <parent>bpm:workflowTask</parent>

          <mandatory-aspects>
                <aspect>ac:publishDetails</aspect>
            </mandatory-aspects>        
      </type>      

   </types>
  
<aspects>
    <aspect name="ac:publishDetails">
        <title>Complaint Details</title>
        <properties>
       
      <property name="ac:Name">
            <title>Comments </title>
            <type>d:text</type>
        </property>

      <property name="ac:Age">
            <title>Age </title>
            <type>d:int</type>
        </property>
      
      </properties>
    </aspect>
</aspects>
</model>



and Finally web-client-config-properties.xml

<config evaluator="node-type" condition="ac:RegisterDocs1" replace="true">
      <property-sheet>
         <separator name="sep1" display-label-id="general" component-generator="HeaderSeparatorGenerator" />
         <show-property name="bpm:workflowDescription" component-generator="TextAreaGenerator" />
         <show-property name="bpm:workflowPriority" display-label-id="wf_adhoc_priority" />
         <show-property name="ac:Name" component-generator="TextAreaGenerator"/>
         <separator name="sep2" display-label-id="user_filter_user" component-generator="HeaderSeparatorGenerator"/>
      </property-sheet>
   </config>

   <config evaluator="node-type" condition="ac:AnalyzeDocs1" replace="true">
      <property-sheet>
         <separator name="sep1" display-label-id="general" component-generator="HeaderSeparatorGenerator" />
         <show-property name="bpm:taskId" />
         <show-property name="bpm:description" component-generator="TextAreaGenerator" read-only="true" />
         <show-property name="bpm:priority" read-only="true" />
         <show-property name="ac:Name" component-generator="TextAreaGenerator"/>
      </property-sheet>
   </config>

   <config evaluator="node-type" condition="ac:ConsultAnalyst1" replace="true">
      <property-sheet>
         <separator name="sep1" display-label-id="general" component-generator="HeaderSeparatorGenerator" />
         <show-property name="bpm:taskId" />
         <show-property name="bpm:description" component-generator="TextAreaGenerator" read-only="true" />
         <show-property name="bpm:priority" read-only="true" />
       <show-property name="ac:Name" component-generator="TextAreaGenerator"/>
     </property-sheet>
   </config>

      <config evaluator="node-type" condition="ac:RejectDoc1" replace="true">
      <property-sheet>
         <separator name="sep1" display-label-id="general" component-generator="HeaderSeparatorGenerator" />
         <show-property name="bpm:taskId" />
         <show-property name="bpm:description" component-generator="TextAreaGenerator" read-only="true" />
         <show-property name="bpm:priority" read-only="true" />
       <show-property name="ac:Name" component-generator="TextAreaGenerator"/>
     </property-sheet>
   </config>

      <config evaluator="node-type" condition="ac:CompleteRequest1" replace="true">
      <property-sheet>
         <separator name="sep1" display-label-id="general" component-generator="HeaderSeparatorGenerator" />
         <show-property name="bpm:taskId" />
         <show-property name="bpm:description" component-generator="TextAreaGenerator" read-only="true" />
         <show-property name="bpm:priority" read-only="true" />
       <show-property name="ac:Name" component-generator="TextAreaGenerator"/>
     </property-sheet>
   </config>


Outcomes