Hi,
I have a rule i created in Guvnor which works fine (see below)
But i can not create and import the same rule from a decision table. I can
not get the syntax to match when i upload the xls and view source.
Everything below "when" i have as a Condition
Everything below "then" is an Action
Line 7: will not import. How do you create empty brackets in excel?
Line 9: how do i write this using the pattern / constraint approach in
excel? same with
Line 11 and 12?
Any help would be greatly appreciated.
1. | rule "DecisionA_OptionsAndFutures"
2. | salience 0
3. | dialect "mvel"
4. | when
5. | SCOProduct( productBookingPointId == 1 , productTypeId in ( 4,
5, 20 ) )
6. | RuleSet( ruleSetName == "SCODecisionPointA" )
7. | taskTemplates : TaskTemplates( )
8. | then
9. | TaskTemplate TaskTemplate1 = new TaskTemplate();
10. | TaskTemplate1.setId( 12038 );
11. | insert( TaskTemplate1 );
12. | taskTemplates.addTaskTemplateIfNew( TaskTemplate1 );
13. | end
--
View this message in context:
http://drools.46999.n3.nabble.com/Excel-Syntax-in-Decision-Tables-tp40295...
Sent from the Drools: User forum mailing list archive at
Nabble.com.