<?xml version="1.0" encoding="UTF-8"?>
<switchyard xmlns="urn:switchyard-config:switchyard:1.0" xmlns:sy="urn:switchyard-config:switchyard:1.0" xmlns:rules="urn:switchyard-component-rules:config:1.0" xmlns:sca="http://docs.oasis-open.org/ns/opencsa/sca/200912" name="switchyard-quickstart-demo-cluster-credit" targetNamespace="urn:switchyard-quickstart-demo-cluster-credit:1.0">
  <sca:composite name="switchyard-quickstart-demo-cluster-credit" targetNamespace="urn:switchyard-quickstart-demo-cluster-credit:1.0">
    <sca:component name="RulesComponent">
      <rules:implementation.rules>
        <rules:manifest>
          <rules:resources>
            <rules:resource location="RulesComponent.drl" type="DRL"/>
          </rules:resources>
        </rules:manifest>
        <rules:operations>
          <rules:operation name="checkCredit" type="EXECUTE">
            <rules:inputs>
              <rules:input from="message.content.application"/>
            </rules:inputs>
          </rules:operation>
        </rules:operations>
      </rules:implementation.rules>
      <sca:service name="CreditCheck">
        <sca:interface.java interface="org.switchyard.quickstarts.demo.cluster.CreditCheck"/>
      </sca:service>
    </sca:component>
    <sca:service name="CreditCheck" promote="RulesComponent/CreditCheck">
      <sca:interface.java interface="org.switchyard.quickstarts.demo.cluster.CreditCheck"/>
      <sca:binding.sca sy:clustered="true"/>
    </sca:service>
  </sca:composite>
</switchyard>
