]
Michael Anstis reassigned DROOLS-758:
-------------------------------------
Assignee: Michael Anstis (was: Mark Proctor)
GuidedDecisionTreeModelUnmarshallingVisitor doesn't support
unmarshalling of oneline rules
------------------------------------------------------------------------------------------
Key: DROOLS-758
URL:
https://issues.jboss.org/browse/DROOLS-758
Project: Drools
Issue Type: Bug
Reporter: Tibor Zimányi
Assignee: Michael Anstis
Priority: Minor
Method visit() from GuidedDecisionTreeModelUnmarshallingVisitor doesn't support
rules, that are written in one line (so it doesn't unmarshall them correctly).
According to documentation [1] (Block 7.1.2), rule can be written without line separators.
Also depending on line separators introduce problems with rules from DRL files that are
written on operating systems with different line separator that is on a system where
drools engine runs (this can be seen running
GuidedDecisionTreeDRLPersistenceUnmarshallingMessagesTest in Windows environment).
The problematic part of the code: [2]
But there are also other places, where there is parsing line by line used. I.e. [3].
Rules should be parsed by keywords without depending on line separator or generally on
lines.
[1]
https://docs.jboss.org/drools/release/6.1.0.Final/drools-docs/html_single...
[2]
https://github.com/droolsjbpm/drools/blob/007148f6e910a4706f6a20862abc002...
[3]
https://github.com/droolsjbpm/drools/blob/9019854d3427a6079eeea19f548a102...