Tapas Saha

Using pattern

Discussion created by Tapas Saha on May 1, 2009
Latest reply on May 7, 2009 by Jostein Ulseth

What is the correct way to use patterns ( not collection based ) ?

Say I have 10 vehicles in policy and need rule on vehicles..

 

pseudo code:

 

a) for each vehicle in policy ...insert ( it )   , // I am tyrying to insert it into working memory so that I can access it directly

 

b) ensureCollectionisLoaded( vehicleCollection )  // assuming vehicleCollection is the collection of vehicles in policy

 

c) Is there another option ? What about the performance issues in the above approaches ?

 

Appreciate suggestion.

Outcomes