]
Daniele Zonca updated DROOLS-3688:
----------------------------------
Labels: ScenarioSimulation (was: )
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"