All Downloads are FREE. Search and download functionalities are using the official Maven repository.

IAF_Util.ConfigurationManageDatabase.xml Maven / Gradle / Ivy

The newest version!
<module>
	<adapter name="ManageDatabase" description="Manage the database" active="${manageDatabase.active}">
		<errorMessageFormatter className="nl.nn.adapterframework.errormessageformatters.FixedErrorMessageFormatter" filename="/ManageDatabase/xml/ErrorMessage.xml" replaceFrom="%reasonCode" replaceTo="INTERNAL_ERROR" />
		<receiver>
			<listener className="nl.nn.adapterframework.receivers.JavaListener" name="ManageDatabase" serviceName="${manageDatabase.serviceName}" />
		</receiver>
		<receiver active="${manageDatabase.webServiceListener.active}">
			<listener className="nl.nn.adapterframework.http.WebServiceListener" name="ManageDatabase-ws-addr" address="ManageDatabase-ws" />
		</receiver>
		<receiver active="${manageDatabase.webServiceListener.active}">
			<listener className="nl.nn.adapterframework.http.WebServiceListener" name="ManageDatabase-ws-uri" serviceNamespaceURI="http://managedatabase.ibissource.org/" />
		</receiver>
		<pipeline firstPipe="Query" transactionAttribute="Required">
			<inputValidator className="nl.nn.adapterframework.pipes.XmlValidator" schema="ManageDatabase/xsd/ManageDatabase.xsd" root="manageDatabaseREQ">
				<forward name="failure" path="InputValidateFailure" />
				<forward name="parserError" path="InputValidateError" />
			</inputValidator>
			<outputValidator className="nl.nn.adapterframework.pipes.XmlValidator" schema="ManageDatabase/xsd/ManageDatabase.xsd" root="manageDatabaseRLY">
				<forward name="failure" path="InternalXsdFailure" />
				<forward name="parserError" path="InternalXsdError" />
			</outputValidator>
			<exits>
				<exit name="EXIT" state="success" />
			</exits>
			<pipe className="nl.nn.adapterframework.pipes.ForEachChildElementPipe" name="Query" elementXPathExpression="manageDatabaseREQ/*" ignoreExceptions="true">
				<sender className="nl.nn.adapterframework.jdbc.XmlQuerySender" />
				<forward name="success" path="ManageDatabaseRLY" />
			</pipe>
			<pipe className="nl.nn.adapterframework.pipes.XsltPipe" name="ManageDatabaseRLY" styleSheetName="/ManageDatabase/xsl/ManageDatabaseRLY.xsl">
				<param name="returnResults" sessionKey="originalMessage" xpathExpression="/manageDatabaseREQ/@returnResults" />
				<forward name="success" path="EXIT" />
			</pipe>
			<!-- ERRORS -->
			<pipe className="nl.nn.adapterframework.pipes.FixedResultPipe" name="InputValidateError" filename="/ManageDatabase/xml/ErrorMessage.xml" replaceFrom="%reasonCode" replaceTo="NOT_WELL_FORMED_XML">
				<forward name="success" path="EXIT" />
			</pipe>
			<pipe className="nl.nn.adapterframework.pipes.XsltPipe" name="InputValidateFailure" styleSheetName="/ManageDatabase/xsl/ErrorMessage.xsl" getInputFromFixedValue="&lt;dummy/&gt;">
				<param name="errorCode" value="INVALID_XML" />
				<param name="failureReason" sessionKey="failureReason" />
				<forward name="success" path="EXIT" />
			</pipe>
			<pipe className="nl.nn.adapterframework.pipes.XsltPipe" name="InternalXsdError" styleSheetName="/ManageDatabase/xsl/ErrorMessage.xsl" getInputFromFixedValue="&lt;dummy/&gt;">
				<param name="errorCode" value="INTERNAL_XSD_ERROR" />
				<param name="failureReason" value="NOT_WELL_FORMED_XML" />
				<forward name="success" path="EXIT" />
			</pipe>
			<pipe className="nl.nn.adapterframework.pipes.XsltPipe" name="InternalXsdFailure" styleSheetName="/ManageDatabase/xsl/ErrorMessage.xsl" getInputFromFixedValue="&lt;dummy/&gt;">
				<param name="errorCode" value="INTERNAL_XSD_ERROR" />
				<param name="failureReason" sessionKey="failureReason" />
				<forward name="success" path="EXIT" />
			</pipe>
		</pipeline>
	</adapter>
</module>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy