Hi,
I need to change value of system property drools.dateformat dynamically. If
I change the property, I still get error while executing rule
15:49:21,828 ERROR [STDERR] Unable to create a Field value of type
'ValueType = 'Date'' and value '"01-11-2011"' : [Rule
name='EFP_14']
java.lang.IllegalArgumentException: Invalid date input format: [01-11-2011]
it should follow: [dd-MMM-yyyy]
15:49:21,831 ERROR [WorkplaceController]
904C7394BB64620F6B0738EA27C6B08B[runNestedRuleFromLayout] Error evaluating
ruleset "asfsd" of type "DRL" with resource 16306 (type 104).
Could not parse knowledge.
I tried to look into the source-code & found that class
org.drools.core.util.DateUtils does not make use of changed value of
property "drools.dateformat". Also, looking at code it is clear that once
the class is loaded by classloader, any change in system property will not
be reflected.
Anyone any comments before I raise a bug?
--
View this message in context:
http://drools.46999.n3.nabble.com/Bug-in-org-drools-core-util-DateUtils-a...
Sent from the Drools: User forum mailing list archive at
Nabble.com.