[jboss-jira] [JBoss JIRA] (DROOLS-1492) DecisionTable to perform typeRef allowed values check for input and output clause
Matteo Mortari (JIRA)
issues at jboss.org
Wed Mar 22 11:22:00 EDT 2017
Matteo Mortari created DROOLS-1492:
--------------------------------------
Summary: DecisionTable to perform typeRef allowed values check for input and output clause
Key: DROOLS-1492
URL: https://issues.jboss.org/browse/DROOLS-1492
Project: Drools
Issue Type: Feature Request
Components: dmn engine
Reporter: Matteo Mortari
Assignee: Matteo Mortari
Example model
{code:xml}
<definitions id="definitions" ...
<itemDefinition label="MyType" name="MyType">
<typeRef>feel:string</typeRef>
<allowedValues constraintsType="enumeration">
<text>"a","b","c"</text>
</allowedValues>
</itemDefinition>
<inputData id="_3d560678-a126-4654-a686-bc6d941fe40b" name="MyInput">
<variable id="_053333df-1777-45f1-a6c7-56562fbdfdae" name="MyInput" typeRef="kie:MyType"/>
</inputData>
<decision id="_497a5306-b2e8-4945-b8b5-82af2e2b99b5" name="MyDecision">
<variable id="_514d6d8d-5329-44fa-af91-a7e7addbadd8" name="MyDecision" typeRef="feel:string"/>
<informationRequirement>
<requiredInput href="#_3d560678-a126-4654-a686-bc6d941fe40b"/>
</informationRequirement>
<decisionTable hitPolicy="UNIQUE" id="_fff2b82e-2850-4826-adc9-4b1570d6fa91" outputLabel="MyDecision">
<input id="_e0471736-9a71-40c7-b5ca-bf367c6a3af9" label="MyInput">
<inputExpression typeRef="kie:MyType">
<text>MyInput</text>
</inputExpression>
</input>
<output id="_01796218-0d50-4ebe-bd2b-b4509318e334"/>
<rule id="_fd1835b6-5fe1-4fd9-a8e4-39b4f7083b24">
<inputEntry expressionLanguage="http://www.omg.org/spec/FEEL/20140401" id="_1c8b24c7-e722-40d7-8661-f03d402688d2">
<text>-</text>
</inputEntry>
<outputEntry id="_0b9d04fe-032b-4753-84dd-9838f6cdef53">
<text>"Decision taken"</text>
</outputEntry>
</rule>
</decisionTable>
</decision>
</definitions>
{code}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jboss-jira
mailing list