cancel
Showing results for 
Search instead for 
Did you mean: 

Custum workflow forms

tomash
Champ in-the-making
Champ in-the-making
I want to modify the default workflow form for my own start workflow form. I've tried to change the config-file
"$TOMCAT_HOME/share/WEB-INF/classes/alfresco/webextension/share-workflow-form-config-custom.xml" without success and (alternatively) the file "share-config-custom.xml" without success too. The following (simple) change I want put in these files, especially the "hide"-attribute doesnt work:

<config evaluator="string-compare" condition="activiti$helloWorldUI">
      <forms>
         <form>
            <field-visibility>
            <show id="bpm:workflowDescription" />
            <show id="packageItems" />
            <hide id="wf:helloName" />
            <show id="transitions" />   
         </field-visibility>   
         <appearance>
            <set id="items" appearance="title" label-id="workflow.set.items" />
            <set id="other" appearance="title" label-id="workflow.set.other" />
            <set id="response" appearance="title" labelid="workflow.set.response" />
            
            <field id="bpm:workflowDescription" labelid="workflow.field.message">
               <control template="/org/alfresco/components/form/controls/textarea.ftl">
                  <control-param name="style">width: 95%</control-param>
               </control>
            </field>
            <field id="packageItems" set="items" />
            <field id="transitions" set="response" />
         </appearance>
      </form>
   </forms>
</config>

I cannot find out any changes if I start the workflow.

The process-id ist named "helloWorldUI" too.
Its a fresh standard Installation of Aldresco 4.2a CE on Windows7.

Whats wrong?  I've got my information to modify share from https://wiki.alfresco.com/wiki/Custom_Share_Workflow_UI.

I hope someone can help me.
Thomas
2 REPLIES 2

bone
Champ on-the-rise
Champ on-the-rise
Hello Thomas,

sounds like you did it the right way.
I would suggest that you put the changes in the "share-config-custom.xml"-file in "$TOMCAT_HOME/shared/classes/alfresco/web-extension" to keep your changes separate from the originals.

Please check if you've deployed the correct version of your workflow and also restarted your Share-server? I assume, your workflow is generally already working?

Regards,
Tobias

tomash
Champ in-the-making
Champ in-the-making
Hello Tobias,

I have transfered the "share-config-custom.xml" in ../shared/.. - path and deployed the workflows on more time. Now its works as expected.

Thank you for helping.

Best regards
Thomas