cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow UI fields are not coming up in Alfresco UI.

javed_afroz
Champ in-the-making
Champ in-the-making
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.
3 REPLIES 3

paiyyavj13
Star Contributor
Star Contributor
hi,
i faced a similar issue wen i tried deploying my custom wrkflow….. this issue is because of failure to deploy the work flow model….i tried few steps before….i did a work around by deploying my cutom wrkflow model along with the default workflowModel.xml file….. i added the custom task model code to the workflowModel.xml file and restarted the server…
worked fine for me…. hope this wrks….

regards,
Vijay

mitpatoliya
Star Collaborator
Star Collaborator
For showing the properties in Alfresco WebClient you need to do the entry in you web-client-config-custom.xml
for reference you can see the file web-client-config-properties.xml
where for each task they have mentioned which are the properties should be visible in webclient.
Hope this is clear.

javed_afroz
Champ in-the-making
Champ in-the-making
Yea I got it. Thanks