<?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="webServicesForm"
               type="com.appiancorp.process.webservices.WebServicesForm"/>

    <appian-form-bean name="processModelWebServiceForm"
                type="com.appiancorp.process.webservices.ProcessModelWebServiceForm"/>

    <appian-form-bean name="businessInformationForm"
                type="com.appiancorp.process.webservices.BusinessInformationForm"/>
  </appian-form-beans>

  <appian-action-mappings>
     <appian-action path="/webservices/searchbusiness"
            name="webServicesForm"
    	      type="com.appiancorp.web.framework.extras.main.ForwardAction"
            scope="request" 
            validate="false" 
            parameter="/webservices/searchwebservicebusinessresults.jsp" />
      
    <appian-action path="/webservices/publishpmaswebservice"
            name="processModelWebServiceForm" 
    	      type="com.appiancorp.process.webservices.action.PublishProcessModelWebService">
      <forward name="success" path="/webservices/getservicespage.do"/>
    </appian-action>

    <appian-action path="/webservices/unpublishpmwebservice"
            name="processModelWebServiceForm"
            scope="request"
    	      type="com.appiancorp.process.webservices.action.UnPublishProcessModelWebService">
      <forward name="success" path="/webservices/getservicespage.do"/>
    </appian-action>

    <appian-action path="/webservices/createbusinessentity"
            name="businessInformationForm"
            scope="request"
    	      type="com.appiancorp.process.webservices.action.CreateBusinessEntity">
       <forward name="success" path="/webservices/getbusinessentity.do"/>
    </appian-action>

    <appian-action path="/webservices/updatebusinessentity"
            name="businessInformationForm"
            scope="request"
    	      type="com.appiancorp.process.webservices.action.UpdateBusinessEntity">
       <forward name="success" path="/webservices/getbusinessentity.do"/>
    </appian-action>

    <appian-action path="/webservices/refreshwebservicescache"
    	      type="com.appiancorp.process.webservices.action.RefreshWebServicesCache">
        <!-- change the succss page when UI is ready -->
      <forward name="success" path="/process/forms/jsp.jsp"/>
    </appian-action>

    <appian-action path="/webservices/getservicespage"
            type="com.appiancorp.process.webservices.action.GetServicesPublicationPage" 
            name="businessInformationForm"
            scope="request" 
            validate="false">
      <forward name="success" path="/webservices/webservicespublication.jsp"/>
    </appian-action>

  </appian-action-mappings>

  <message-resources parameter="text.java.com.appiancorp.process.webservices.application-i18n" key="webservices-app-i18n"/>
  <message-resources parameter="resources.application"/>

</appian-web-config>
