cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with jbpm process

tito781
Champ in-the-making
Champ in-the-making
I've a throuble with a process I've defined. The web client interface doesn't show the list of assignee and tomcat says that:

11:16:36,484 User:admin WARN  [component.property.UIAssociation] Failed to find association definition for association 'bpm:assignee'

this is my processdefinition:

<process-definition xmlns="urn:jbpm.org:jpdl-3.1" name="wf:prova">
   <swimlane name="initiator"/>
  
   <start-state name="start">
      <task name="wf:submitProvaTask" swimlane="initiator"/>
      <transition name="" to="adhoc"/>
   </start-state>
   <swimlane name="assignee">
      <assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment">
         <actor>#{bpm_assignee}</actor>
      </assignment>
   </swimlane>
   <task-node name="adhoc">
      <task name="wf:provaTask" swimlane="assignee">
      
      </task>
      <transition name="" to="completed">
         <action class="org.alfresco.repo.workflow.jbpm.AlfrescoJavaScript">
           <script>
            if (wf_notifyMe)
            {
               var mail = actions.create("mail");
               mail.parameters.to = initiator.properties["cm:email"];
               mail.parameters.subject = "Adhoc Task " + bpm_workflowDescription;
               mail.parameters.from = bpm_assignee.properties["cm:email"];
               mail.parameters.text = "It's done";
               mail.execute(bpm_package);
            }
           </script>
         </action>
      </transition>
   </task-node>
   <swimlane name="aoo">
       <assignment class="org.alfresco.repo.workflow.jbpm.AlfrescoAssignment">
         <actor>#{bpm_assignee}</actor>
      </assignment>
   </swimlane>
   <task-node name="completed">
      <task name="wf:completedProvaTask" swimlane="aoo">
      <event type="task-create">
         <script>
         if (bpm_workflowDueDate != void)
         {
            taskInstance.dueDate = bpm_workflowDueDate;
         }
         if (bpm_workflowPriority != void)
         {
            taskInstance.priority = bpm_workflowPriority;
         }
         </script>
      </event>
      </task>
      <transition name="" to="end"/>
      
   </task-node>
<end-state name="end"/>
</process-definition>

this is process-model:

<model name="wf:provamodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<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"/>
</imports>
<namespaces>
   <namespace uri="http://www.alfresco.org/model/workflow/1.0" prefix="wf"/>
</namespaces>
<types>
   <type name="wf:submitProvaTask">
      <parent>bpm:startTask</parent>
      <mandatory-aspects>
         <aspect>bpm:assignee</aspect>
      </mandatory-aspects>
   </type>
   <type name="wf:provaTask">
      <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>
      <mandatory-aspects>
         <aspect>bpm:assignee</aspect>
      </mandatory-aspects>
   </type>
   <type name="wf:completedProvaTask">
      <parent>bpm:workflowTask</parent>
         <mandatory-aspects>
            <aspect>bpm:assignee</aspect>
         </mandatory-aspects>
   </type>
</types>
</model>

and, finally this is web-client-config-properties:



<!– Prova workflow tasks (by tito)–>

   <config evaluator="node-type" condition="wf:submitProvaTask" 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:workflowDueDate"/>
         <separator name="sep2" display-label-id="user_filter_user" component-generator="HeaderSeparatorGenerator" />
         <show-association name="bpm:assignee"  />
      </property-sheet>
   </config>

   <config evaluator="node-type" condition="wf:provaTask" 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:dueDate" read-only="true" />
         <show-property name="bpm:priority" read-only="false" />
         <show-property name="bpm:status" />
         <show-property name="bpm:comment" component-generator="TextAreaGenerator" />
         <separator name="sep2" display-label-id="user_filter_user" component-generator="HeaderSeparatorGenerator" />
         <show-association name="bpm:assignee" />

      </property-sheet>
   </config>

   <config evaluator="node-type" condition="wf:completedProvaTask" 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:dueDate" read-only="true" />
         <show-property name="bpm:priority" read-only="true" />
         <separator name="sep2" display-label-id="users_and_roles" component-generator="HeaderSeparatorGenerator" />
         <show-association name="bpm:assignee" display-label-id="wf_adhoc_assignee" read-only="true" />
      </property-sheet>
   </config>


can anyone help me? What is wrong in my files? Thanks
1 REPLY 1

tito781
Champ in-the-making
Champ in-the-making
I'v solved the problem, in the definition of model there is a wrong definition of namespace wf. I've only changed the namespace with another like
<namespaces>
     <namespace uri="MySpace" prefix="wif"/>
  </namespaces>

and obviously I've changed the other files with wif where there was wf.