drools-legacy

.rfm file is not getting generated in Drools 5.0.0 M4, where as it is getting generated in Drools 4.0.7

Details

  • Type: Task Task
  • Status: Resolved Resolved
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    Drools 5.0.0 M4,Windows XP
  • Number of attachments :
    0

Description

For Drools 4.0.7 : When .rf file is created(with properties) and saved then .rfm file is generated automatically in eclipse with plugins for 4.0.7.
For Drools 5.0.0.M4 : When .rf file is created(with properties) and saved then .rfm file is not at all generated in eclipse with plugins for 5.0.0.M .
Is there any plugin missing for eclipse.. or anyother reason?

Any help is highly appreciated.

Regards,
Samiu

Activity

Hide
samadhan shimpi added a comment -

I have resolved the issue.
In drools 5 we need not to use .rfm file for rule flow instead .rf file is used.
But then the syntax slightly changes....

old syntax:
builder.addRuleFlow(new InputStreamReader(EvalDTAndRF.class.getResourceAsStream("/PremiumCalculationRF.rfm")));

new syntax:
builder.addProcessFromXml(new InputStreamReader(EvalDTAndRF.class.getResourceAsStream("/PremiumCalculationRF.rf")));

Show
samadhan shimpi added a comment - I have resolved the issue. In drools 5 we need not to use .rfm file for rule flow instead .rf file is used. But then the syntax slightly changes.... old syntax: builder.addRuleFlow(new InputStreamReader(EvalDTAndRF.class.getResourceAsStream("/PremiumCalculationRF.rfm"))); new syntax: builder.addProcessFromXml(new InputStreamReader(EvalDTAndRF.class.getResourceAsStream("/PremiumCalculationRF.rf")));

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: