<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE appian-web-config PUBLIC "-//Appian Corporation//DTD Appian Web MVC Configuration 1.0//EN" "/WEB-INF/appian-web-config_1_0.dtd" >

<appian-web-config>

 <appian-form-beans>
    <appian-form-bean name="rulesGenericForm" type="com.appiancorp.content.forms.GenericContentForm" />
    <appian-form-bean name="constantForm" type="com.appiancorp.rules.forms.ConstantForm"/>
    <appian-form-bean name="importRuleForm" type="com.appiancorp.rules.forms.ImportRuleForm"/>
    <appian-form-bean name="contentPropertiesForm" type="com.appiancorp.km.forms.ContentPropertiesForm"/>
  </appian-form-beans>

  <appian-action-mappings>
    
    <appian-action path="/rules/browse/createrulesfolder"
        type="com.appiancorp.rules.browse.CreateRulesFolder" >
      <forward name="prepare" path="/knowledge/browse/createfolder.jsp" />
      <forward name="success" path="/knowledge/browse/updatebrowsecomponent.jsp" />
    </appian-action>

    <appian-action path="/rules/CreateFolder"
        type="com.appiancorp.rules.browse.CreateRulesFolder" >
      <forward name="prepare" path="/knowledge/browse/createfolder.jsp" />
      <forward name="success" path="/contents/grid/update_rules_folder.jsp" />
    </appian-action>

    <appian-action path="/rules/renameFolder"
        type="com.appiancorp.rules.actions.RenameRuleFolderAction" name="contentPropertiesForm">
      <forward name="prepare" path="/rules/renameFolder.jsp" />
      <forward name="success" path="/contents/grid/update_rules_folder.jsp" />
    </appian-action>
    
    <appian-action path="/rules/getFreeformRule"
            type="com.appiancorp.rules.actions.GetFreeformRuleAction"
            name="rulesGenericForm" scope="request" validate="false">
      <forward name="add" path="/rules/freeform.jsp"/>
      <forward name="interface" path="/rules/interface.jsp"/>
      <forward name="expression" path="/rules/expression.jsp"/>
    </appian-action>

    <appian-action path="/rules/convertToSailRule"
            type="com.appiancorp.rules.actions.ConvertToSailRuleAction"
            name="rulesGenericForm" scope="request" validate="false">
      <forward name="success" path="/contents/GetContainer.do"/>
      <forward name="error" path="/contents/error.jsp"/>
    </appian-action>

    <appian-action path="/rules/getQueryRule" include="/rules/query_rule/queryRule.jsp"/>

    <appian-action path="/queryRule" type="com.appiancorp.process.analytics2.actions.NoChromeAction" >
      <forward name="success" path="/contents/GetContent.do"/>
    </appian-action>
            
    <appian-action path="/rules/editConstant"
            type="com.appiancorp.rules.actions.EditConstantAction"
            name="constantForm" scope="request" validate="true">
      <forward name="prepare" path="/rules/getConstant.do"/>
      <forward name="edit" path="/rules/edit_constant.jsp"/>
      <forward name="success" path="/contents/GetContainer.do"/>
    </appian-action>

    <appian-action path="/rules/getConstant"
            type="com.appiancorp.rules.actions.GetConstantAction"
            name="constantForm" scope="request" validate="true">
      <forward name="add" path="/rules/edit_constant.jsp"/>
      <forward name="edit" path="/rules/edit_constant.jsp"/>
      <forward name="readOnly" path="/rules/preview.jsp"/>
      <forward name="success" path="/contents/GetContainer.do"/>
    </appian-action>

    <appian-action path="/rules/previewRule"
            type="com.appiancorp.rules.actions.PreviewRuleAction"
            name="rulesGenericForm" scope="request" validate="false">
      <forward name="success" path="/rules/preview.jsp"/>
    </appian-action>

    <appian-action path="/rules/importRulesCheck"
            type="com.appiancorp.rules.actions.ImportRulesCheckAction"
            name="importRuleForm"
            scope="request"
            validate="true">
      <forward name="prepare" path="/rules/importRules.jsp"/>
      <forward name="success" path="/rules/importRules.do"/>
      <forward name="conflicts" path="/rules/ruleConflicts.jsp"/>
    </appian-action>

    <appian-action path="/rules/importRules"
            type="com.appiancorp.rules.actions.ImportRulesAction"
            name="importRuleForm"
            scope="request"
            validate="false">
      <forward name="success" path="/rules/importSuccess.jsp"/>
    </appian-action>

    <appian-action path="/rules/rootSecurity"
            type="com.appiancorp.rules.security.RootFolderSecurity"
            name="securityManagerForm">
      <forward name="success" path="/components/securityManager/interface.jsp" />
    </appian-action>

    <appian-action path="/rules/getContentSecurity"
            type="com.appiancorp.rules.security.GetContentSecurity"
            name="securityManagerForm">
      <forward name="success" path="/components/securityManager/interface.jsp" />
    </appian-action>

    <appian-action path="/rules/updateSecurity"
            type="com.appiancorp.rules.security.ContentSecurityUpdate"
            name="securityManagerForm">
      <forward name="root" path="/rules/rootSecurity.do"/>
      <forward name="success" path="/rules/getContentSecurity.do"/>
    </appian-action>

	<appian-action path="/rules/GetRulesRoot"
			type="com.appiancorp.rules.actions.PopulateRulesRootAction">
	  <forward name="success" path="/contents/GetContent.do"/>
	</appian-action>

	<appian-action path="/rules/GetRulesFavorites"
			type="com.appiancorp.rules.actions.PopulateRulesRootAction">
	  <forward name="success" path="/contents/GetFavorites.do"/>
	</appian-action>

	<appian-action path="/rules/SearchRules"
			type="com.appiancorp.rules.actions.PopulateRulesRootAction">
	  <forward name="success" path="/contents/Search.do"/>
	</appian-action>
    
  </appian-action-mappings>

  <message-resources parameter="resources.application"/>

</appian-web-config>
