Commit 5a592be2 authored by Christian Müller's avatar Christian Müller

cut off too long invariants

parent 06c44ac5
...@@ -221,8 +221,11 @@ object Encoding extends LazyLogging { ...@@ -221,8 +221,11 @@ object Encoding extends LazyLogging {
} }
} }
} }
def nodeTransformer(innerNode: WorkflowGraph#NodeT): Option[(DotGraph, DotNodeStmt)] = def nodeTransformer(innerNode: WorkflowGraph#NodeT): Option[(DotGraph, DotNodeStmt)] = {
Some((root, DotNodeStmt(innerNode.toString, List(DotAttr("label", "Node " + innerNode + ":\n" + labels(innerNode)))))) val str = labels(innerNode)
val label = if (str.length() > 1000) str.substring(0, 600) + "..." else str
Some((root, DotNodeStmt(innerNode.toString, List(DotAttr("label", "Node " + innerNode + ":\n" + label)))))
}
g.toDot(root, edgeTransformer, None, Some(nodeTransformer)) g.toDot(root, edgeTransformer, None, Some(nodeTransformer))
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment