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:
com.book.web.bean.wcm
, in Eclipse, in your project. For more details refer Chapter 2,Installation and Configuration. ExtendedSubmitDialog
and copy the downloaded content from the Packt website. ExtendedSubmitConfigureWorkflowDialog
and copy the downloaded content from the Packt website. faces-config-custom.xml
, located at<install-alfresco>/tomcat/webapps/alfresco/WEB-INF
and copy the downloaded content from the Packt website.<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.Follow the steps mentioned ahead to submit all or selected modified content to the workflow.