AnsweredAssumed Answered

WF doesn't display start task properties in the UI

Question asked by carnis on Feb 8, 2009
Hi,
I have a problem about viewing  start task properties when I start my custom workflow.

My workflow (named dbinsert) is very simple, because it is a trial version I've implemented to get knowledge and practice with customization of advanced workflow; It's made of a start state, a start task (to collect the basic start task's properties plus one custom properties named insertMode) and the transition to the end state.

I've created my process definition, save it in "…alfresco/workflow" folder (like adhoc and review-approval workflows), registered it in the bean "workflowBootstrap" inside the xml file "bootstrap-context.xml"; then I've created the task model, inside the workflowModel.xml file (next to the others task models for adhoc and review-approval workflows), and setted the web-client-config-properties.xml with the appropriated config.

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

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

    <swimlane name="initiator" />
      <start-state name="start">
         <task name="wf:insertSettings" swimlane="initiator"/>
         <transition name="inserting" to="end"/>
      </start-state>
  
      <end-state name="end"/>
  
</process-definition>

TaskModel:
<type name="wf:insertSettings">
            <parent>bpm:startTask</parent>
      <properties>  
         <property name="wf:insertMode">
                     <type>d:int</type>
                       <default>1</default>
            <constraints>
                        <constraint type="LIST">
                     <parameter name="allowedValues">
                         <list>
                          <value>1</value>
                          <value>2</value>
                         </list>
                     </parameter>
                 </constraint>
            </constraints>
                   </property>   
      </properties>
   </type>

Web client config:
<config evaluator="node-type" condition="wf:insertSettings" replace="true">
<propety-sheet>
<separator name="sep1" display-label-id="general" component-generator="HeaderSeparatorGenerator" />
<show-property name= "bpm:workflowDescription" component-generator="TextAreaGenerator" />
<show-property name= "bpm:workflowPriority" />
<show-property name= "bpm:workflowDueDate" />
<show-property name= "wf:insertMode" />
</propety-sheet>
</config>
After, I started up Alfresco server, successfully.
So I start an advanced workflow: first I choose my custom worflow from the list and click next; then, in the "workflow options" view I don't see my properties displayed on the screen (like due date, priority and insertMode), but only a dark blue text area (where I could'nt write anything!!) with the label "Owner".
Why is appened this??? Anyone could help me?? Have I make mistakes on workflow registering procedure??

PS: If I click next, the workflow ends successfully…
PPS: I use Alfresco LABS 3.0 stable
Thanks!!

Outcomes