cancel
Showing results for 
Search instead for 
Did you mean: 

No Effect - web-client-config-custom.xml

gabbit
Champ in-the-making
Champ in-the-making
I tred to change the apperience of the starting dialog of my first workflow by editing the web-client-config-custom.xml in \tomcat\shared\classes\alfresco\extension:
<config evaluator="node-type" condition="wf:submitUrlaubsantragTask" replace="true">
   <property-sheet>
     <separator name="sep1" display-label-id="general" component-generator="HeaderSeparatorGenerator" />
  <show-property name="bpm:workflowPriority" />
  <show-property name="bpm:workflowDueDate" />
  </property-sheet>
  </config>
But these changes had no effect…
btw here is the code of my taskmodel/ Workflow-definition:

<?xml version="1.0" encoding="UTF-8" ?> 
<process-definition xmlns="urn:jbpm.org:jpdl-3.1" name="wf:Urlaubsantrag">

  <swimlane name="initiator" />
 
<swimlane name="vorgesetzter">
  <assignment actor-id="vorgesetzter" />
</swimlane>
<swimlane name="personalsachbearbeiter">
  <assignment actor-id="personalsachbearbeiter" />
</swimlane>

<start-state name="start">
  <task name="wf:submitUrlaubsantragTask" swimlane="initiator" />
  <transition name="" to="reviewPersonalsachbearbeiter" />
  </start-state>
<task-node name="reviewPersonalsachbearbeiter">
  <task name="wf:reviewPersonalsachbearbeiterTask" swimlane="personalsachbearbeiter" />
  <transition name="Approve" to="reviewVorgesetzter" />
  <transition name="Reject" to="rejectedUrlaubsantrag" />
  </task-node>
<task-node name="reviewVorgesetzter">
  <task name="wf:reviewVorgesetzterTask" swimlane="vorgesetzter" />
  <transition name="Approve" to="approvedUrlaubsantrag" />
  <transition name="Reject" to="rejectedUrlaubsantrag" />
  </task-node>
<task-node name="approvedUrlaubsantrag">
  <task name="wf:approvedUrlaubsantragTask" swimlane="initiator" />
  <transition name="Complete" to="end" />
  </task-node>
<task-node name="rejectedUrlaubsantrag">
  <task name="wf:rejectedUrlaubsantragTask" swimlane="initiator" />
  <transition name="Complete" to="end" />
  </task-node>
  <end-state name="end" />
  </process-definition>
<?xml version="1.0" encoding="UTF-8"?>

<model name="wf:workflowmodel" 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="http://www.alfresco.org/model/workflow/1.0" prefix="wf"/>
  </namespaces>
     
  <types>


     <type name="wf:submitUrlaubsantragTask">
        <parent>bpm:startTask</parent>
     </type>


     <type name="wf:reviewPersonalsachbearbeiterTask">
        <parent>bpm:workflowTask</parent>
     </type>
    
     <type name="wf:reviewVorgesetzterTask">
        <parent>bpm:workflowTask</parent>
     </type>

     <type name="wf:approvedUrlaubsantragTask">
        <parent>bpm:workflowTask</parent>
     </type>


     <type name="wf:rejectedUrlaubsantragTask">
        <parent>bpm:workflowTask</parent>
     </type>

     
  </types>
  
</model>
Please help, because i have absolutely no idea whats wrong with my code…

Thx in advance
2 REPLIES 2

gavinc
Champ in-the-making
Champ in-the-making
Your configuration looks correct to me, so the most likely cause of this is that the web-client-config-custom.xml file is not getting picked up for some reason.

This can happen if you have another web-client-config-custom.xml already in the classpath i.e. the one in tomcat\shared\classes\alfresco\extension is getting ignored.

Although a little verbose you can try turning on debugging for the config service and check whether the file is being loaded. Look for a line in the debug that says:

Retrieving input stream for source: classpath:alfresco/extension/web-client-config-custom.xml

You should then see later in the debug a mention of your condition i.e. wf:submitUrlaubsantragTask

If you see something like:

08:37:18,031 DEBUG [org.alfresco.config.source.ClassPathConfigSource] Failed to obtain input stream to classpath: alfresco/extension/web-client-config-custom.xml

you know your file has not been found.

gabbit
Champ in-the-making
Champ in-the-making
Thank you for your fast reply, but i found my mistake…

Naming the workflow-model as wf:workflowmodel , which has allready been defined by the build-in examples as probably not the best idea Smiley Wink

I changed the namespace to mywf and everything works fine Smiley Wink