[jboss-jira] [JBoss JIRA] (DROOLS-5517) Enhance DMNResult/DMNContext to be able to return strongly typed OutputSet

Toshiya Kobayashi (Jira) issues at jboss.org
Sun Jul 19 22:22:00 EDT 2020


    [ https://issues.redhat.com/browse/DROOLS-5517?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14259591#comment-14259591 ] 

Toshiya Kobayashi edited comment on DROOLS-5517 at 7/19/20 10:21 PM:
---------------------------------------------------------------------

Ideas:
- Add a method to get OutputSet from DMNContext
- Option A)
-- Share DMNContextFPAImpl for both InputSet and OutputSet for clone() consistency
-- DMNContextFPAImpl.clone() will return DMNContextFPAImpl instance
-- DMNContextFPAImpl will delegate operations to DMNContextImpl in order to avoid complexity
- Option B)
-- Map and Recreate DMNContext right before returning evaluateXXX().
https://github.com/kiegroup/drools/blob/7.40.0.Final/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNRuntimeImpl.java#L116


was (Author: tkobayashi):
Ideas:
- Add a method to get OutputSet from DMNContext
Option A)
- Share DMNContextFPAImpl for both InputSet and OutputSet for clone() consistency
- DMNContextFPAImpl.clone() will return DMNContextFPAImpl instance
- DMNContextFPAImpl will delegate operations to DMNContextImpl in order to avoid complexity
Option B)
- Map and Recreate DMNContext right before returning evaluateXXX().
https://github.com/kiegroup/drools/blob/7.40.0.Final/kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/impl/DMNRuntimeImpl.java#L116

> Enhance DMNResult/DMNContext to be able to return strongly typed OutputSet
> --------------------------------------------------------------------------
>
>                 Key: DROOLS-5517
>                 URL: https://issues.redhat.com/browse/DROOLS-5517
>             Project: Drools
>          Issue Type: Enhancement
>          Components: dmn engine
>    Affects Versions: 7.40.0.Final
>            Reporter: Toshiya Kobayashi
>            Assignee: Toshiya Kobayashi
>            Priority: Major
>
> DROOLS-5502 was to generate OutputSet class and convert DMNResult.getContext().getAll() to the OutputSet externally. This JIRA aims to convert it inside DMNRuntime so that we can get the OutputSet from DMNResult.getContext() directly.
> https://github.com/kiegroup/drools/pull/2993#pullrequestreview-451150317



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the jboss-jira mailing list