<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Copyright 2016 Red Hat, Inc. and/or its affiliates.
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~       http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->
<semantic:definitions xmlns="https://www.drools.org/kie-dmn"
                      xmlns:dc="http://www.omg.org/spec/DMN/20180521/DC/"
                      xmlns:di="http://www.omg.org/spec/DMN/20180521/DI/"
                      xmlns:dmndi="http://www.omg.org/spec/DMN/20180521/DMNDI/"
                      xmlns:feel="http://www.omg.org/spec/DMN/20180521/FEEL/"
                      xmlns:kie="https://www.drools.org/kie-dmn"
                      xmlns:semantic="http://www.omg.org/spec/DMN/20180521/MODEL/"
                      id="_function-definition"
                      name="function-definition"
                      namespace="https://www.drools.org/kie-dmn">
   <semantic:decision id="_b459d12a-f00f-4846-a12e-2883455f7d7b" name="Math">
      <semantic:variable id="_e2be00de-3280-4ca8-a6e6-6804876c045b" name="Math"/>
      <semantic:informationRequirement>
         <semantic:requiredInput href="#_38863c23-d5e1-4af3-aeef-fc84706ee46b"/>
      </semantic:informationRequirement>
      <semantic:informationRequirement>
         <semantic:requiredInput href="#_29fb05e4-387f-4180-aad7-8680787bb45a"/>
      </semantic:informationRequirement>
      <semantic:context>
         <semantic:contextEntry>
            <semantic:variable id="_d6970f58-cacc-4028-a04d-5fc38b9846b2"
                               name="SumFunction"
                               typeRef="function"/>
            <semantic:functionDefinition>
               <semantic:formalParameter name="v1" typeRef="number"/>
               <semantic:formalParameter name="v2" typeRef="number"/>
               <semantic:literalExpression typeRef="number">
                  <semantic:text>v1+v2</semantic:text>
               </semantic:literalExpression>
            </semantic:functionDefinition>
         </semantic:contextEntry>
         <semantic:contextEntry>
            <semantic:variable id="_f2392e71-805f-4404-98ee-c510b229fccd"
                               name="Sum"
                               typeRef="number"/>
            <semantic:invocation>
               <semantic:literalExpression>
                  <semantic:text>SumFunction</semantic:text>
               </semantic:literalExpression>
               <semantic:binding>
                  <semantic:parameter name="v1"/>
                  <semantic:literalExpression>
                     <semantic:text>a</semantic:text>
                  </semantic:literalExpression>
               </semantic:binding>
               <semantic:binding>
                  <semantic:parameter name="v2"/>
                  <semantic:literalExpression>
                     <semantic:text>b</semantic:text>
                  </semantic:literalExpression>
               </semantic:binding>
            </semantic:invocation>
         </semantic:contextEntry>
      </semantic:context>
   </semantic:decision>
   <semantic:inputData id="_38863c23-d5e1-4af3-aeef-fc84706ee46b" name="a">
      <semantic:variable id="_102502ce-b714-4d1b-ad8f-82635b9fd2f1"
                         name="a"
                         typeRef="number"/>
   </semantic:inputData>
   <semantic:inputData id="_29fb05e4-387f-4180-aad7-8680787bb45a" name="b">
      <semantic:variable id="_e876cfa3-f9dc-4f59-b3fe-bbab5b8a450e"
                         name="b"
                         typeRef="number"/>
   </semantic:inputData>
</semantic:definitions>
