[opencms-dev] TFSLA Workflow integration with OpenCms 9.0.1. I

doomito info at tfsla.com
Thu Jul 10 22:04:35 CEST 2014


Hi Sharad,

Most likely you omit to add the workflow hooks to the opencms-system.xml for
the 'container page'. Since this is a native content type, you have to add
it on that file. See example below. 

Example of 'containerpage' configuration at opencms-modules.xml

                <explorertype name="containerpage"
key="fileicon.containerpage" icon="containerpage.png"
bigicon="containerpage_big.png" reference="xmlcontent">                                            
                    <newresource
uri="newresource_xmlcontent.jsp?newresourcetype=containerpage" order="25"
autosetnavigation="false" autosettitle="false" info="desc.containerpage"/>                       
                    <accesscontrol>                                                                                                                                                                         
                        <accessentry principal="ROLE.WORKPLACE_USER"
permissions="+r+v+w+c"/>                                                                                                               
                    </accesscontrol>                                                                                                                                                                        
                    <editoptions>                                                                                                                                                                           
                        <defaultproperties enabled="true"
shownavigation="true">                                                                                                                            
                            <defaultproperty name="Title"/>                                                                                                                                                 
                            <defaultproperty name="Keywords"/>                                                                                                                                              
                            <defaultproperty name="Description"/>                                                                                                                                           
                        </defaultproperties>                                                                                                                                                                
                        <contextmenu>                                                                                                                                                                       
                             <entry
key="GUI_EXPLORER_CONTEXT_WORKFLOW_ACCEPT_0"
uri="commons/promotetoproject.jsp" rule="promote"/>
                             <entry
key="GUI_EXPLORER_CONTEXT_WORKFLOW_REJECT_0"
uri="commons/demotetoproject.jsp" rule="demote"/>
                             <entry
key="GUI_EXPLORER_CONTEXT_WORKFLOW_HISTORY_0"
uri="commons/viewworkflowhistory.jsp" rule="viewworkflowhistory"/>                          
                             <separator/>                                                                                                                                                                                                                                                                                                                                                                  
                            <entry key="GUI_EXPLORER_CONTEXT_LOCK_0"
uri="commons/lock.jsp" rule="lock"/>                                                                                                   
                            <entry key="GUI_EXPLORER_CONTEXT_OVERRIDELOCK_0"
uri="commons/lockchange.jsp" rule="changelock"/>                                                                               
                            <entry key="GUI_EXPLORER_CONTEXT_UNLOCK_0"
uri="commons/unlock.jsp" rule="unlock"/>                                                                                             
                            <separator/>                                                                                                                                                                    
                            <entry
key="GUI_EXPLORER_CONTEXT_COPYTOPROJECT_0" uri="commons/copytoproject.jsp"
rule="copytoproject"/>                                                                        
                            <entry key="GUI_EXPLORER_CONTEXT_PUBLISH_0"
uri="commons/publishresource.jsp" rule="directpublish"/>                                                                            
                            <entry
key="GUI_EXPLORER_CONTEXT_PUBLISH_SCHEDULED_0"
uri="commons/publishscheduledresource.jsp" rule="publishscheduled"/>                                                      
                            <separator/>                                                                                                                                                                    
                            <entry key="GUI_EXPLORER_CONTEXT_EDIT_0"
uri="editors/editor.jsp" target="_top" rule="standard"/>                                                                               
                            <separator/>                                                                                                                                                                    
                            <entry key="GUI_EXPLORER_CONTEXT_COPY_0"
uri="commons/copy.jsp" rule="copy"/>                                                                                                   
                            <entry key="GUI_EXPLORER_CONTEXT_MOVE_0"
uri="commons/move.jsp" rule="standard"/>                                                                                               
                            <entry key="GUI_EXPLORER_CONTEXT_DELETE_0"
uri="commons/delete.jsp" rule="standard"/>                                                                                           
                            <entry key="GUI_EXPLORER_CONTEXT_UNDOCHANGES_0"
uri="commons/undochanges.jsp" rule="undochanges"/>                                                                              
                            <entry key="GUI_EXPLORER_CONTEXT_UNDELETE_0"
uri="commons/undelete.jsp" rule="undelete"/>                                                                                       
                            <separator/>                                                                                                                                                                    
                            <entry key="GUI_EXPLORER_CONTEXT_RELATIONS_0"
rule="substandard">                                                                                                               
                             <entry
key="GUI_EXPLORER_CONTEXT_LINKRELATIONTO_0"
uri="views/admin/admin-main.jsp?root=explorer&path=%2Flinkrelationtarget"
rule="standard"/>                          
                             <entry
key="GUI_EXPLORER_CONTEXT_LINKRELATIONFROM_0"
uri="views/admin/admin-main.jsp?root=explorer&path=%2Flinkrelationsource"
rule="standard"/>                        
                              <separator/>                                                                                                                                                                
                              <entry
key="GUI_EXPLORER_CONTEXT_SHOWSIBLINGS_0"
uri="views/admin/admin-main.jsp?root=explorer&path=%2Fsiblings"
rule="showsiblings"/>                                  
                              <separator/>                                                                                                                                                                
                              <entry key="GUI_EXPLORER_CONTEXT_CATEGORIES_0"
uri="views/admin/admin-main.jsp?root=explorer&path=%2Fcategories"
rule="standard"/>                                      
                            </entry>                                                                                                                                                                        
                            <separator/>                                                                                                                                                                    
                            <entry key="GUI_EXPLORER_CONTEXT_ACCESS_0"
uri="commons/chacc.jsp" rule="permissions"/>                                                                                         
                            <entry key="GUI_EXPLORER_CONTEXT_CHNAV_0"
uri="commons/chnav.jsp" rule="standard"/>                                                                                             
                            <separator/>                                                                                                                                                                    
                            <entry key="GUI_EXPLORER_CONTEXT_ADVANCED_0"
rule="substandard">                                                                                                                
                                <entry key="GUI_EXPLORER_CONTEXT_TOUCH_0"
uri="commons/touch.jsp" rule="standard"/>                                                                                         
                                <entry
key="GUI_EXPLORER_CONTEXT_AVAILABILITY_0" uri="commons/availability.jsp"
rule="standard"/>                                                                           
                                <separator/>                                                                                                                                                                
                                <entry key="GUI_EXPLORER_CONTEXT_SECURE_0"
uri="commons/secure.jsp" rule="standard"/>                                                                                       
                                <entry key="GUI_EXPLORER_CONTEXT_TYPE_0"
uri="commons/chtype.jsp" rule="standard"/>                                                                                         
                                <separator/>    
                            <entry
key="GUI_EXPLORER_CONTEXT_EDITCONTROLFILE_0"
uri="editors/editor.jsp?editastext=true" target="_top"
rule="editcontrolcode"/>                                         
                            </entry>                                                                                                                                                                        
                            <separator/>                                                                                                                                                                    
                            <entry key="GUI_EXPLORER_CONTEXT_HISTORY_0"
uri="views/admin/admin-main.jsp?root=explorer&path=%2Fhistory"
rule="nondeleted"/>                                              
                            <entry key="GUI_EXPLORER_CONTEXT_PROPERTY_0"
uri="commons/property.jsp" rule="nondeleted"/>                                                                                     
                            <entry key="GUI_EXPLORER_CONTEXT_AVAILABILITY_0"
name="org.opencms.gwt.client.ui.CmsAvailabilityDialog"
rule="containerpage"/>                                                  
                            <entry
key="GUI_EXPLORER_CONTEXT_SHOW_WORKPLACE_0"
name="org.opencms.gwt.client.ui.CmsShowWorkplace" rule="containerpage"/>                                                     
                            <entry
key="GUI_EXPLORER_CONTEXT_ADVANCED_PROPERTIES_0"
name="org.opencms.gwt.client.ui.CmsEditProperties" rule="containerpage"/>                                               
                            <entry key="GUI_EXPLORER_CONTEXT_LOGOUT_0"
name="org.opencms.gwt.client.ui.CmsLogout" rule="containerpage"/>                                                                    
                        </contextmenu>                  
                </editoptions>                                                                                                                                                                          
                </explorertype>




--
View this message in context: http://opencms.996256.n3.nabble.com/TFSLA-Workflow-integration-with-OpenCms-9-0-1-I-tp24331p24333.html
Sent from the OpenCMS mailing list archive at Nabble.com.



More information about the opencms-dev mailing list