cancel
Showing results for 
Search instead for 
Did you mean: 

problem setting web-client-config-custom for workflow

xena
Champ in-the-making
Champ in-the-making
Hello to everyone!
I have created a custom workflow that works perfectly but I can not see in the manage task, the properties that i have define in property- sheet. maybe i don't properly configure the workflow model and the file web-client-config-custom?
please help me!
these are the 2 files:
pm-model.xml

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

<model name="wfpm:workflowpmmodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">

   <description>Workflow VeV Model for PM</description>
   <author>giustino - labbate</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/dictionary/1.0" prefix="cm" />
       <import uri="http://www.alfresco.org/model/bpm/1.0" prefix="bpm"></import>
   </imports>

   <namespaces>
       <namespace uri="wfpm.model" prefix="wfpm" />
   </namespaces>

   <constraints>
       <constraint name="wfpm:status" type="LIST">
           <parameter name="allowedValues">
               <list>
                   <value>Redatto</value>
                   <value>In Verifica</value>
                   <value>Verificato</value>
                   <value>Validato</value>
               </list>
           </parameter>
       </constraint>
   </constraints>
   <types>
          <type name="wfpm:inizia">
           <parent>bpm:startTask</parent>
          <mandatory-aspects>
           <aspect>wfpm:status</aspect>
          </mandatory-aspects>
          </type>

          <type name="wfpm:verificaTask">
           <parent>bpm:workflowTask</parent>
         </type>
         <type name="wfpm:nonVerificatoTask">
           <parent>bpm:workflowTask</parent>
            <overrides>
         <property name="bpm:packageItemActionGroup">
         <default>edit_package_item_actions</default>
         </property>
         </overrides>
         </type>

          <type name="wfpm:validazioneTask">
           <parent>bpm:workflowTask</parent>
            </type>
          <type name="wfpm:RifiutatoTask">
           <parent>bpm:workflowTask</parent>
                <overrides>
         <property name="bpm:packageItemActionGroup">
         <default>edit_package_item_actions</default>
         </property>
         </overrides>
         </type>
          <type name="wfpm:ValidatoTask">
           <parent>bpm:workflowTask</parent>
           </type>
       </types>

   <aspects>

       <aspect name="wfpm:status">
           <title>Stato del documento</title>
           <properties>
               <property name="wfpm:status">
                   <title>Stato del documento</title>
                   <type>d:text</type>
                   <default>Redatto</default>
                   <constraints>
                       <constraint ref="wfpm:status" />
                   </constraints>
               </property>
           </properties>
       </aspect>
        <aspect name="wfpm:utente">
           <title>Utente</title>
           <properties>
               <property name="wfpm:utente">
                   <title>Utente validazione</title>
                   <type>d:text</type>
               </property>
           </properties>
       </aspect>
       <aspect name="wfpm:valiDate">
           <title>validazione</title>
           <properties>
               <property name="wfpm:valiDate">
                   <title>Data validazione</title>
                   <type>d:date</type>
               </property>
           </properties>
       </aspect>
    </aspects>

</model>
web-client-config-custom.xml

<alfresco-config>
<config evaluator="node-type" condition="wfpm:inizia" 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" />
      <show-property name="bpm:workflowDueDate" />
      <show-property name="wfpm:status" read-only="true"/>
    </property-sheet>
</config>

<config evaluator="node-type" condition="wfpm:VerificaTask" replace="true">
<property-sheet>
      <separator name="sep2" 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"/>
       <show-property name="bpm:comment" />
      <show-property name="bpm:status" />
   </property-sheet>
</config>

<config evaluator="node-type" condition="wfpm:nonVerificatoTask" replace="true">
<property-sheet>
      <separator name="sep4" display-label-id="general" component-generator="HeaderSeparatorGenerator" />
      <show-property name="bpm:taskId" />
      <show-property name="bpm:description" component-generator="TextAreaGenerator" />
      <show-property name="bpm:dueDate" />
      <show-property name="bpm:priority" />
      <show-property name="bpm:comment" />
      <show-property name="bpm:status" />
   </property-sheet>
</config>


<config evaluator="node-type" condition="wfpm:ValidazioneTask" replace="true">
<property-sheet>
   <separator name="sep6" display-label-id="general" component-generator="HeaderSeparatorGenerator" />
      <show-property name="bpm:taskId" />
      <show-property name="bpm:description" component-generator="TextAreaGenerator" />
      <show-property name="bpm:dueDate" />
      <show-property name="bpm:priority" />
      <show-property name="bpm:comment" />
      <show-property name="bpm:status" />
</property-sheet>
</config>
<config evaluator="node-type" condition="wfpm:RifiutatoTask" replace="true">
<property-sheet>
      <separator name="sep7" display-label-id="general" component-generator="HeaderSeparatorGenerator" />
      <show-property name="bpm:taskId" />
      <show-property name="bpm:description" component-generator="TextAreaGenerator" />
      <show-property name="bpm:dueDate" />
      <show-property name="bpm:priority" />
      <show-property name="bpm:comment" />
      <show-property name="bpm:status" />
</property-sheet>
</config>

<config evaluator="node-type" condition="wfpm:ValidatoTask" replace="true">
<property-sheet>
      <separator name="sep5" display-label-id="general" component-generator="HeaderSeparatorGenerator" />
      <show-property name="bpm:taskId" />
      <show-property name="bpm:description" component-generator="TextAreaGenerator" />
      <show-property name="bpm:status" />
      <show-property name="bpm:dueDate" />
      <show-property name="bpm:priority" />
   </property-sheet>
</config>

<config evaluator="aspect-name" condition="wfpm:status" display-label-id="statoDocumento">
<property-sheet>
<separator name="sep3" display-label-id="detailswf" component-generator="HeaderSeparatorGenerator" />
<show-property name="wfpm:status"/>
</property-sheet>
</config>

<config evaluator="aspect-name" condition="wfpm:utente" />
<property-sheet>
<show-property name="wfpm:utente"/>
</property-sheet>    
</config>

<config evaluator="aspect-name" condition="wfpm:valiDate" />
<property-sheet>
<show-property name="wfpm:valiDate"/>
</property-sheet>
</config>
</alfresco-config>
at the moment i was working at the task "inizia" and the task "verifica" but with no success because at the task inizia the property(aspect) wfpm:status appears but not in read-only mode, while in the task verifica e every property i've defined doesn't appear!
what i'm wrong? i use alfresco community 3.4.

these are the images of the manage task of "inizia" and "verifica"
http://img5.imageshack.us/img5/1381/iniziatask.jpg
http://img574.imageshack.us/img574/9434/verificatask.jpg
1 REPLY 1

xena
Champ in-the-making
Champ in-the-making
I'have solved the problem about displaying the aspect "status" in read-only mode:
i have added the code read-only=true also here:
<config evaluator="aspect-name" condition="wfpm:status" display-label-id="statoDocumento">
<property-sheet>
<separator name="sep3" display-label-id="detailswf" component-generator="HeaderSeparatorGenerator" />
<show-property name="wfpm:status" read-only="true"/>
</property-sheet>

VerificaTask and Validazionetask are assigned to a "poolactors" named approvers while the other tasks are assigned to initiator.
It seems that in the pool task don't consider the property in web-client-config because alfresco displays in task properties only "OWNER"!!!
While in the tasks reserved to initiator there are all the properties i've have written.
Why???
HELP!!!!