JESS: [EXTERNAL] Iterate over a Java List in Jess

2011-12-13 Thread Hunter McMillen
Is there anyway to iterate over a Java List object from Jess? I have a Java object that I store in a Jess variable: engine.getGlobalContext().setVariable(bwapi, new Value(bwapi)); one of the methods that can be called on bwapi returns a Java ArrayList, and I would like to be able to iterate

RE: JESS: [EXTERNAL] Iterate over a Java List in Jess

2011-12-13 Thread Friedman-Hill, Ernest
: (foreach ?u (?bwapi getMyUnits) (printout t (?u toString) crlf)) From: owner-jess-us...@sandia.gov [mailto:owner-jess-us...@sandia.gov] On Behalf Of Hunter McMillen Sent: Tuesday, December 13, 2011 8:56 PM To: jess-users Subject: JESS: [EXTERNAL] Iterate over a Java List in Jess Is there anyway