Remove workflow for specific staging submission

We have already configured workflows for blogs and training web content. There can be various reasons why you don't want to follow a complete process of workflow and have to submit the content directly. If we think of the out-of-the-box feature, then we have to remove the workflow for those web forms so that web content can be submitted directly. This is not a good practice sometimes when you are configuring a workflow or sometimes when you are removing a workflow for a particular web content.

In order to make the task simpler we have to customize the submit dialog using APIs.

Follow these steps to create two Java files:

  1. Create a package com.book.web.bean.wcm, in Eclipse, in your project. For more details refer Chapter 2,Installation and Configuration.
  2. Create a Java file ExtendedSubmitDialog and copy the downloaded content from the Packt website.

    Note

    Please download the complete code from the Packt website.

  3. Create a Java file ExtendedSubmitConfigureWorkflowDialog and copy the downloaded content from the Packt website.
  4. Open the file faces-config-custom.xml, located at<install-alfresco>/tomcat/webapps/alfresco/WEB-INF and copy the downloaded content from the Packt website.
  5. Run Ant to compile the code and create a JAR file in<install-alfresco>/tomcat/webapps/alfresco/WEB-INF/lib. Please refer to Chapter 2, Installation and Configuration for compiling and deploying code to the installed Alfresco.
  6. Start the Alfresco server.

Test using Submit Items wizard

Follow the steps mentioned ahead to submit all or selected modified content to the workflow.

  1. Go to Company Home | Web Projects | Cignex.
  2. Submit Selected option is provided under Modified Items of My sandbox.
    Test using Submit Items wizard
  3. On click of Submit Selected, the Submit Items wizard is opened and you will notice that one more workflow is configured.
    Test using Submit Items wizard
  4. Select No workflow now and click on OK.
  5. The content will be submitted directly into the Staging server.
    Test using Submit Items wizard
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset