cancel
Showing results for 
Search instead for 
Did you mean: 

Initial form not match with the config

arak
Confirmed Champ
Confirmed Champ
Hi everyone,

This is a part of my file share-config-custom.xml :



<config evaluator="task-type" condition="bcwf:inicioReferenteCalidad">
  <forms>
    <form>
      <field-visibility>
   <show id="bpm:workflowDescription" />
   <show id="bpm:workflowDueDate" />
   <show id="packageItems" />
      </field-visibility>
      <appearance>
   <set id="" appearance="title" label-id="workflow.set.general" />
   <set id="items" appearance="title" label-id="workflow.set.items" />             
   <field id="bpm:workflowDescription" label-id="workflow.field.message">
     <control template="/org/alfresco/components/form/controls/textarea.ftl">
       <control-param name="style">width: 95%</control-param>
     </control>
   </field>
   <field id="bpm:workflowDueDate" label-id="workflow.field.due"/>
   <field id="packageItems" set="items" />
      </appearance>
    </form>
  </forms>
</config>



"bcwf:inicioReferenteCalidad" is the namespace of the form of my start task:



<type name="bcwf:inicioReferenteCalidad">
  <parent>bpm:startTask</parent>
  <mandatory-aspects>
    <aspect>bcwf:infoWorkflow</aspect>
  </mandatory-aspects>
</type>



But, this code not match with the form in the Share (I attach a image of the form). I need see only the description field and due date field.

Please,
Can anyone help me?

Greetings,
Pablo.

2 REPLIES 2

tonyrivet
Champ in-the-making
Champ in-the-making
Hi,

For the start task, the form config must refer to the workflow definition instead of the task type.
Try something like this :

<config evaluator="string-compare" condition="activiti$yourWorkflowDefinitionName">
   …
</config>

arak
Confirmed Champ
Confirmed Champ
Thanks for the aclaration !