[jboss-jira] [JBoss JIRA] (DROOLS-3688) Implement usage of ScenarioHeaderMetaData.getMetadataType

Daniele Zonca (Jira) issues at jboss.org
Thu Apr 4 05:21:00 EDT 2019


     [ https://issues.jboss.org/browse/DROOLS-3688?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniele Zonca updated DROOLS-3688:
----------------------------------
    Sprint: 2019 Week 14-16


> Implement usage of ScenarioHeaderMetaData.getMetadataType
> ---------------------------------------------------------
>
>                 Key: DROOLS-3688
>                 URL: https://issues.jboss.org/browse/DROOLS-3688
>             Project: Drools
>          Issue Type: Enhancement
>          Components: Scenario Simulation and Testing
>            Reporter: Gabriele Cardosi
>            Assignee: Anna Baker
>            Priority: Major
>              Labels: ScenarioSimulation
>
> Inside _ScenarioHeaderMetaData_ there are two flags, _instanceHeader_ and _propertyHeader_, used all over the client code to drive code execution.
> A new enum has been created, _ScenarioHeaderMetaData.MetadataType_, and a specific property/getter, _ScenarioHeaderMetaData.getMetadataType()_.
> Replace everywhere (with the exception for single line checks) the usage of _ScenarioHeaderMetaData.isInstanceHeader()_ and _ScenarioHeaderMetaData.isPropertyHeader()_ with _ScenarioHeaderMetaData.getMetadataType()_, and adapt the code to use that enum instead of the boolean.
> That should remove all the "if" with a more robust and readable "switch"



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list