AnsweredAssumed Answered

Workflow UI fields are not coming up in Alfresco UI.

Question asked by javed_afroz on Apr 12, 2011
Latest reply on Apr 27, 2011 by javed_afroz
Hi,
          I have designed a custom wroflow following this tutorial – http://wiki.alfresco.com/wiki/WorkflowAdministration. I am using eclipse designer plugin to deploy process archive in alfresco jbpm. I have developed one custom work flow model and deployed it using repoadmin-console.jsp. Both of the files are deplyed successfully without showing any error in alfresco server console.
         But when I am going through UI and trying to start workflow for a file, it is not showing those fields that are there in my workflow model.

processdefinition.xml


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

<process-definition  xmlns="urn:jbpm.org:jpdl-3.2"  name="bwf:basicWorkFlowModel">

   <description>
      Basic Approval Flow
   </description>

   <swimlane name="initiator"></swimlane>

   <swimlane name="assignee">
      <assignment actor-id="#{bpm_assignee}"></assignment>
   </swimlane>

   <start-state name="Start">
      <task name="bwf:startApprovalTask" swimlane="initiator">
         <description>
            approval start
         </description>
      </task>
      <transition to="Approval" name="to_approve"></transition>
   </start-state>

   <decision name="Decision">
      <handler class="com.sample.action.ApprovalHandler"></handler>
      <transition to="Accepted" name="Yes"></transition>
      <transition to="Rejected" name="No"></transition>
   </decision>

   <node name="Accepted">
      <action name="AcceptedAction" class="com.sample.action.MessageActionHandler">
         <message>
            Accepted
         </message>
      </action>
      <transition to="End" name="to_end_accepted"></transition>
   </node>

   <node name="Rejected">
      <action name="RejectedAction" class="com.sample.action.MessageActionHandler">
         <message>
            Rejected
         </message>
      </action>
      <transition to="End" name="to_end_rejected"></transition>
   </node>

   <task-node name="Approval">
      <task name="bwf:approvalTask" swimlane="assignee"></task>
      <transition to="Decision" name="to_decide"></transition>
   </task-node>

   <end-state name="End"></end-state>
</process-definition>



basicWorkFlowModel.xml


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

<model name="bwf:basicWorkFlowModel" 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="my.basic.model" prefix="bwf"/>
  </namespaces>
     
  <types>

     <type name="bwf:startApprovalTask">
        <parent>bpm:startTask</parent>
        
        <properties>
           <property name="bwf:notify">
              <type>d:boolean</type>
              <default>false</default>
           </property>
        </properties>

        <mandatory-aspects>
           <aspect>bpm:assignee</aspect>
        </mandatory-aspects>
     </type>

     <type name="bwf:approvalTask">
        <parent>bpm:workflowTask</parent>
      <properties>
           <property name="bwf:decision">
              <type>d:boolean</type>
              <default>false</default>
           </property>
        </properties>
     </type>
   
  </types>
  
</model>



I have no clue how to resolve this  :cry: . Please help me out.

Thanks in advance.

Outcomes