AnsweredAssumed Answered

Custom workflow wizard

Question asked by tito781 on Dec 21, 2007
Latest reply on Jan 11, 2008 by tito781
I want to add a step to Wizard Workflow. I follow the example of custom content wizard http://wiki.alfresco.com/wiki/Customising_The_Create_Content_Wizard
I insert this content in web-client-config-custom:

<config evaluator="string-compare" condition="Workflow Avanzato">
               <aspects>
                  <aspect name="dublincore"/>
                  <aspect name="effectivity"/>
                  </aspects>
             </config>
         <config>
         <wizard name="startWorkflow" managed-bean="CustomStartWorkflowWizard"
                 description-id="start_workflow_desc" icon="/images/icons/new_workflow_large.gif">
            <step name="choose-workflow" title-id="step_choose_workflow"
                  description-id="start_workflow_choose_desc">
               <page path="/jsp/workflow/start-workflow-wizard/choose-workflow.jsp"
                     title-id="start_workflow_choose_title"
                     description-id="start_workflow_choose_desc"
                     instruction-id="default_instruction" />
            </step>
            <step name="options" title-id="step_workflow_options"
                  description-id="start_workflow_options_desc">
               <page path="/jsp/workflow/start-workflow-wizard/workflow-options.jsp"
                     title-id="start_workflow_options_title"
                     description-id="start_workflow_options_desc"
                     instruction-id="default_instruction" />
            </step>
            <step name="select-user" title-id="step_workflow_select_user"
                  description-id="start_workflow_select_user">
               <page path="/jsp/extension/workflow-select-user.jsp"
                     title-id="start_workflow_select_user_title"
                     description-id="start_workflow_select_user"
                     instruction-id="default_instruction" />
            </step>
            <step name="summary" title-id="summary" description-id="summary_step_description">
               <page path="/jsp/wizard/summary.jsp"
                     title-id="summary"
                     description-id="summary_desc"
                     instruction-id="start_workflow_finish_instruction" />
            </step>
         </wizard>
        
         </config>

I can't understand in config-evaluator tag, what is the means of attribute condition.

For the rest of files to modify, I've created a bean like the bean reported in the example, but with some differences and I've configured jsf in the faces-config-custom.xml, with the code:

<managed-bean>
      <managed-bean-name>CustomStartWorkflowWizard</managed-bean-name>
      <managed-bean-class>org.alfresco.web.bean.workflow.CustomStartWorkflowWizard</managed-bean-class>
      <managed-bean-scope>session</managed-bean-scope>
      <managed-property>
         <property-name>nodeService</property-name>
         <value>#{NodeService}</value>
      </managed-property>
      <managed-property>
         <property-name>fileFolderService</property-name>
         <value>#{FileFolderService}</value>
      </managed-property>
      <managed-property>
         <property-name>searchService</property-name>
         <value>#{SearchService}</value>
      </managed-property>
      <managed-property>
         <property-name>navigator</property-name>
         <value>#{NavigationBean}</value>
      </managed-property>
      <managed-property>
         <property-name>browseBean</property-name>
         <value>#{BrowseBean}</value>
      </managed-property>
      <managed-property>
         <property-name>dictionaryService</property-name>
         <value>#{DictionaryService}</value>
      </managed-property>
      <managed-property>
         <property-name>namespaceService</property-name>
         <value>#{NamespaceService}</value>
      </managed-property>
      <managed-property>
         <property-name>workflowService</property-name>
         <value>#{WorkflowService}</value>
      </managed-property>
     <managed-property>
         <property-name>unprotectedNodeService</property-name>
         <value>#{nodeService}</value>
      </managed-property>
   </managed-bean>

Thus, I've created the jsp, i've updated the webclient.properties and I've deployed all.
The problem is that the Wizard doesn't show the third step defined. Why?
If necessary I can post the other files.

Outcomes