<?xml version="1.0" encoding="UTF-8"?>
<switchyard xmlns="urn:switchyard-config:switchyard:1.1" xmlns:rules="urn:switchyard-component-rules:config:1.1" xmlns:sca="http://docs.oasis-open.org/ns/opencsa/sca/200912" xmlns:soap="urn:switchyard-component-soap:config:1.1" name="rules-interview-dtable">
  <sca:composite name="Interview" targetNamespace="urn:switchyard-quickstart:rules-interview-dtable:0.1.0">
    <sca:service name="Interview" promote="Interview/Interview">
      <sca:interface.java interface="org.switchyard.quickstarts.rules.interview.Interview"/>
    </sca:service>
    <sca:service name="InterviewPortType" promote="Interview/Interview">
      <sca:interface.wsdl interface="META-INF/Interview.wsdl#wsdl.porttype(InterviewPortType)"/>
      <soap:binding.soap>
        <soap:wsdl>META-INF/Interview.wsdl</soap:wsdl>
        <soap:socketAddr>:18001</soap:socketAddr>
        <soap:contextPath>rules-interview-dtable</soap:contextPath>
      </soap:binding.soap>
    </sca:service>
    <sca:component name="Interview">
      <rules:implementation.rules>
        <rules:manifest>
          <rules:resources>
            <rules:resource location="META-INF/Interview.xls" type="DTABLE">
                <rules:resourceDetail inputType="XLS"/>
            </rules:resource>
          </rules:resources>
        </rules:manifest>
        <rules:operations>
          <rules:operation name="verify" type="EXECUTE">
            <rules:globals>
              <rules:global from="userName" to="userName"/>
            </rules:globals>
            <rules:inputs>
              <rules:input from="message.content"/>
            </rules:inputs>
            <rules:outputs>
              <rules:output from="globals.Result" to="message.content"/>
            </rules:outputs>
          </rules:operation>
        </rules:operations>
      </rules:implementation.rules>
      <sca:service name="Interview">
        <sca:interface.java interface="org.switchyard.quickstarts.rules.interview.Interview"/>
      </sca:service>
    </sca:component>
  </sca:composite>
  <transforms>
    <transform.java xmlns="urn:switchyard-config:transform:1.1" class="org.switchyard.quickstarts.rules.interview.Transformers" from="{urn:switchyard-quickstart:rules-interview-dtable:0.1.0}verify" to="java:org.switchyard.quickstarts.rules.interview.Applicant"/>
    <transform.java xmlns="urn:switchyard-config:transform:1.1" class="org.switchyard.quickstarts.rules.interview.Transformers" from="java:boolean" to="{urn:switchyard-quickstart:rules-interview-dtable:0.1.0}verifyResponse"/>
  </transforms>
  <domain>
    <properties>
      <property name="userName" value="${user.name}"/>
    </properties>
  </domain>
</switchyard>
