<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:util="http://www.springframework.org/schema/util"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
                          http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.0.xsd">

  <!-- All asset resources are created as beans to be set to runtime environment. -->

  <bean id="sample" factory-method="newClassPathResource" class="org.kie.internal.io.ResourceFactory">
    <constructor-arg>
      <value>jbpm/processes/sample.bpmn</value>
    </constructor-arg>
  </bean>

  <bean id="sample1" factory-method="newClassPathResource" class="org.kie.internal.io.ResourceFactory">
    <constructor-arg>
      <value>jbpm/processes/sample1.bpmn2</value>
    </constructor-arg>
  </bean>

  <bean id="expense" factory-method="newClassPathResource" class="org.kie.internal.io.ResourceFactory">
    <constructor-arg>
      <value>jbpm/processes/expense.bpmn2</value>
    </constructor-arg>
  </bean>

  <bean id="humanTask" factory-method="newClassPathResource" class="org.kie.internal.io.ResourceFactory">
    <constructor-arg>
      <value>jbpm/processes/HumanTaskProcess.bpmn2</value>
    </constructor-arg>
  </bean>

  <bean id="scriptTask" factory-method="newClassPathResource" class="org.kie.internal.io.ResourceFactory">
    <constructor-arg>
      <value>jbpm/processes/ScriptTask.bpmn2</value>
    </constructor-arg>
  </bean>

  <bean id="addTaskAfterActiveV1" factory-method="newClassPathResource" class="org.kie.internal.io.ResourceFactory">
    <constructor-arg>
      <value>jbpm/processes/AddTaskAfterActive-v1.bpmn2</value>
    </constructor-arg>
  </bean>

  <bean id="addTaskAfterActiveV2" factory-method="newClassPathResource" class="org.kie.internal.io.ResourceFactory">
    <constructor-arg>
      <value>jbpm/processes/AddTaskAfterActive-v2.bpmn2</value>
    </constructor-arg>
  </bean>

  <!-- Map contains list of all assets used in tests. -->
  <util:map id="assets" key-type="org.kie.api.io.Resource" value-type="org.kie.api.io.ResourceType">
    <entry key-ref="sample">
      <util:constant static-field="org.kie.api.io.ResourceType.BPMN2"/>
    </entry>
    <entry key-ref="sample1">
      <util:constant static-field="org.kie.api.io.ResourceType.BPMN2"/>
    </entry>
    <entry key-ref="expense">
      <util:constant static-field="org.kie.api.io.ResourceType.BPMN2"/>
    </entry>
    <entry key-ref="humanTask">
      <util:constant static-field="org.kie.api.io.ResourceType.BPMN2"/>
    </entry>
    <entry key-ref="scriptTask">
      <util:constant static-field="org.kie.api.io.ResourceType.BPMN2"/>
    </entry>
    <entry key-ref="addTaskAfterActiveV1">
      <util:constant static-field="org.kie.api.io.ResourceType.BPMN2"/>
    </entry>
    <entry key-ref="addTaskAfterActiveV2">
      <util:constant static-field="org.kie.api.io.ResourceType.BPMN2"/>
    </entry>
  </util:map>
</beans>
