- Timestamp:
- 06/08/07 20:15:22 (18 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0-Beta2/components/server/src/ome/rules/drools/AllObjects.java
r1167 r1607 15 15 package ome.rules.drools; 16 16 17 import org.apache.commons.logging.Log; 18 import org.apache.commons.logging.LogFactory; 17 19 import org.drools.spi.KnowledgeHelper; 18 20 import org.drools.spring.metadata.annotation.java.Condition; … … 24 26 public class AllObjects { 25 27 28 private static Log log = LogFactory.getLog(AllObjects.class); 29 26 30 @Condition 27 31 public boolean objectAsserted(@Fact("object") … … 33 37 public void consequence(@Fact("object") 34 38 Object obj, KnowledgeHelper kh) { 35 System.out.println("here i am" + obj);// TODO walk the graph! 39 if (log.isDebugEnabled()) { 40 log.debug("here i am" + obj); // TODO walk the graph! 41 } 36 42 } 37 43 }
