Edson,
I'm using yEd for the graph viewer and tgf as the format for the graph. Here
is the mvel template to produce the tgf file. I left the topten name the
same for now. Did I miss any nodes or edges?
@declare{"topten"}
@code{
buffer = new StringBuilder();
for (ni : session.nodeInfos) {
buffer.append( ni.id);
buffer.append( " ");
buffer.append( ni.node);
buffer.append( "\r\n");
}
buffer.append( "#\r\n");
for (node : session.nodeInfos) {
for (child : node.sinkList) {
buffer.append( node.id);
buffer.append( " ");
buffer.append( child.id);
buffer.append( "\r\n");
}
}
}
@{buffer.toString()}
@end{}
I would like to change the toString representations for all of the classes
used in the graph.
I there a better structure than a bunch of instanceof tests? (Would they
even work?)
if (ni.node instanceof AlphaNode) {
buffer.append("A: ");
if (ni.node.constraint instanceof ...) {
Thanks again for your help.
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/Memory-usage-tied-to-...
Sent from the Drools - User mailing list archive at
Nabble.com.