<?xml version="1.0" encoding="UTF-8"?>
<features name="karaf-features-fuse-droolsjbpm-7.2.0.Final"
          xmlns="http://karaf.apache.org/xmlns/features/v1.0.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://karaf.apache.org/xmlns/features/v1.0.0 http://karaf.apache.org/xmlns/features/v1.0.0">

  <repository>mvn:org.kie/kie-karaf-features/7.2.0.Final/xml/features-core</repository>

  <!--
   In order to install the below features into Fuse 6.2.1/6.3, target runtime needs to provide these features:
    - drools-dependencies
    - jbpm-dependencies
    - optaplanner-dependencies
    - kie-remote-dependencies
    - db-dependencies
    - hibernate-dependencies
    - hibernate-validator-dependencies
   These features are contained in some repository not referenced explicitly with <repository> (loose coupling).
   Fuse 6.2.1/6.3 specific repository is 'mvn:org.apache.karaf.assemblies.features/brms-features/VERSION/xml/features'
  -->

  <feature name="drools-common" version="7.2.0.Final" description="Drools Commons">
    <feature>drools7-dependencies</feature>
  </feature>

  <feature name="drools-decisiontable" description="Drools Decision Tables" version="7.2.0.Final">
    <feature version="7.2.0.Final">drools-module</feature>
    <feature version="7.2.0.Final">drools-templates</feature>
    <bundle>mvn:org.drools/drools-decisiontables/7.2.0.Final</bundle>
  </feature>

  <feature name="drools-wb-guided-decisiontables" description="Drools Workbench Guided Decision Tables" version="7.2.0.Final">
    <feature version="7.2.0.Final">drools-module</feature>
    <bundle>mvn:org.drools/drools-workbench-models-datamodel-api/7.2.0.Final</bundle>
    <bundle>mvn:org.drools/drools-workbench-models-commons/7.2.0.Final</bundle>
    <bundle>mvn:org.drools/drools-workbench-models-guided-dtable/7.2.0.Final</bundle>
  </feature>

  <feature name="kie-dmn" description="Kie DMN" version="7.2.0.Final">
    <feature version="7.2.0.Final">drools-module</feature>
    <bundle>mvn:org.kie/kie-dmn-model/7.2.0.Final</bundle>
    <bundle>mvn:org.kie/kie-dmn-api/7.2.0.Final</bundle>
    <bundle>mvn:org.kie/kie-dmn-backend/7.2.0.Final</bundle>
    <bundle>mvn:org.kie/kie-dmn-feel/7.2.0.Final</bundle>
    <bundle>mvn:org.kie/kie-dmn-core/7.2.0.Final</bundle>
  </feature>

  <feature name="jbpm-commons" version="7.2.0.Final" description="jBPM Commons">
    <feature>jbpm7-dependencies</feature>
    <feature version="7.2.0.Final">servlet-api-kie</feature>
  </feature>

  <feature name="jbpm-human-task" version="7.2.0.Final" description="jBPM Human Task">
    <feature version="7.2.0.Final">drools-module</feature>
    <feature version="7.2.0.Final">drools-jpa</feature>
    <feature version="7.2.0.Final">jbpm-commons</feature>
    <bundle>mvn:org.jbpm/jbpm-flow/7.2.0.Final</bundle>
    <bundle>mvn:org.jbpm/jbpm-query-jpa/7.2.0.Final</bundle>
    <bundle>mvn:org.jbpm/jbpm-audit/7.2.0.Final</bundle>
    <bundle>mvn:org.jbpm/jbpm-human-task-core/7.2.0.Final</bundle>
    <bundle>mvn:org.jbpm/jbpm-human-task-workitems/7.2.0.Final</bundle>
    <bundle>mvn:org.jbpm/jbpm-human-task-jpa/7.2.0.Final</bundle>
    <bundle>mvn:org.jbpm/jbpm-human-task-audit/7.2.0.Final</bundle>
  </feature>

  <feature name="jbpm" version="7.2.0.Final" description="jBPM Engine">
    <feature version="7.2.0.Final">drools-module</feature>
    <feature version="7.2.0.Final">drools-jpa</feature>
    <feature version="7.2.0.Final">jbpm-commons</feature>
    <feature version="7.2.0.Final">jbpm-human-task</feature>
    <bundle>mvn:org.jbpm/jbpm-flow-builder/7.2.0.Final</bundle>
    <bundle>mvn:org.jbpm/jbpm-flow/7.2.0.Final</bundle>
    <bundle>mvn:org.jbpm/jbpm-bpmn2/7.2.0.Final</bundle>
    <bundle>mvn:org.jbpm/jbpm-audit/7.2.0.Final</bundle>
    <bundle>mvn:org.jbpm/jbpm-query-jpa/7.2.0.Final</bundle>
    <bundle>mvn:org.jbpm/jbpm-persistence-api/7.2.0.Final</bundle>
    <bundle>mvn:org.jbpm/jbpm-persistence-jpa/7.2.0.Final</bundle>
    <bundle>mvn:org.jbpm/jbpm-runtime-manager/7.2.0.Final</bundle>
  </feature>

  <feature name="optaplanner-engine" version="7.2.0.Final" description="OptaPlanner Engine">
    <feature>optaplanner-dependencies</feature>
    <feature version="7.2.0.Final">drools-module</feature>
    <bundle>mvn:org.optaplanner/optaplanner-core/7.2.0.Final</bundle>
    <bundle>mvn:org.optaplanner/optaplanner-persistence-common/7.2.0.Final</bundle>
    <bundle>mvn:org.optaplanner/optaplanner-persistence-xstream/7.2.0.Final</bundle>
    <bundle>mvn:org.optaplanner/optaplanner-persistence-jaxb/7.2.0.Final</bundle>
  </feature>

  <feature name="droolsjbpm-hibernate" version="5.1.4.Final" description="Hibernate 4.2.x JPA persistence engine support">
    <details>Enable Hibernate 4.2.x as persistence engine.</details>
    <feature>transaction</feature>
    <feature>jpa</feature>
    <feature version="7.2.0.Final">servlet-api-kie</feature>
    <feature>hibernate-dependencies</feature>
  </feature>

  <feature name="hibernate-validator" version="5.3.4.Final" description="Hibernate Validator">
    <feature>hibernate-validator-dependencies</feature>
  </feature>

  <feature name="h2" version="1.4.178" description="H2 database">
    <feature>db-dependencies</feature>
    <bundle>mvn:com.h2database/h2/1.3.168</bundle>
  </feature>

  <feature name="kie-server-client" version="7.2.0.Final" description="KIE Server Client">
    <feature version="7.2.0.Final">drools-module</feature>
    <feature version="7.2.0.Final">optaplanner-engine</feature>
    <feature>kie7-remote-dependencies</feature>
    <bundle>mvn:org.kie.server/kie-server-api/7.2.0.Final</bundle>
    <bundle>mvn:org.kie.server/kie-server-common/7.2.0.Final</bundle>
    <bundle>mvn:org.kie.server/kie-server-client/7.2.0.Final</bundle>
    <bundle>mvn:org.kie/kie-dmn-model/7.2.0.Final</bundle> <!-- needed as the kie-server contains DMN client, which uses the kie-dmn-api, which needs kie-dmn-model -->
    <bundle>mvn:org.kie/kie-dmn-api/7.2.0.Final</bundle>   <!-- needed as the kie-server contains DMN client, which uses the kie-dmn-api -->
  </feature>

  <feature name="servlet-api-kie" version="7.2.0.Final">
    <feature>servlet-api-dependencies</feature>
  </feature>

</features>