[JBoss JIRA] (DROOLS-1492) DecisionTable to perform typeRef allowed values check for input and output clause
by Matteo Mortari (JIRA)
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)
9 years, 1 month
[JBoss JIRA] (WFCORE-2071) Ignore unknown roles instead of throwing exception
by Pedro Igor (JIRA)
[ https://issues.jboss.org/browse/WFCORE-2071?page=com.atlassian.jira.plugi... ]
Pedro Igor updated WFCORE-2071:
-------------------------------
Summary: Ignore unknown roles instead of throwing exception (was: Properly handle unknown roles instead of throwing exception)
> Ignore unknown roles instead of throwing exception
> --------------------------------------------------
>
> Key: WFCORE-2071
> URL: https://issues.jboss.org/browse/WFCORE-2071
> Project: WildFly Core
> Issue Type: Bug
> Components: Security
> Reporter: Pedro Igor
> Assignee: Pedro Igor
> Fix For: 3.0.0.Beta11
>
>
> When mapping roles directly from the identity:
> {code}
> <access-control provider="rbac" use-identity-roles="true"/>
> {code}
> If the identity has a role that is not known, a {{UnknowRoleException}} is thrown.
> Ideally, we should just ignore unknown roles. Or is there any reason for this check ?
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
9 years, 1 month