PhaniCharan Paladugu

Patterns and Dynamic Objects

Discussion created by PhaniCharan Paladugu on Sep 3, 2009
Latest reply on Sep 18, 2009 by Andrei Palskoi

Hi All,

 

I have a pattern created using 'New Pattern' feature on Ruleset as part of Content tab.

For your reference, the same pattern in SRL as below,

'anyServer' is any ServerType in ServerCollection.

 

I am not passing any Server in the collection as input to ruleset. In the other words, this collection is empty before rule engine executes first rule in ruleset.

 

In the first rule of my ruleset i am adding new Server objects to the collection.

In the second rule condition part, I am using 'anyServer' pattern like below:

 

if (anyServer is known and true)

then

{

 print("In THEN part").

ignore(anyServer ).

}

 

ISSUE: Rule engine is not executing the second rule. [If i remove first condition

(anyServer is known) from the 'if' part, rule is getting execute.]

 

Query-1: Does Blaze Rule Engine's pattern refer to the objects added dynamically to the

collection??

 

Query-2: How to execute the second rule wherein my pattern is able to locate newly added objects in collection??

 

Please let me know if you need any clarification on my queries.

 

 

 

Outcomes