Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Christian Müller
NIWO
Commits
5a592be2
Commit
5a592be2
authored
Nov 20, 2017
by
Christian Müller
Browse files
cut off too long invariants
parent
06c44ac5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/scala/de/tum/workflows/Encoding.scala
View file @
5a592be2
...
...
@@ -221,8 +221,11 @@ object Encoding extends LazyLogging {
}
}
}
def
nodeTransformer
(
innerNode
:
WorkflowGraph
#
NodeT
)
:
Option
[(
DotGraph
,
DotNodeStmt
)]
=
Some
((
root
,
DotNodeStmt
(
innerNode
.
toString
,
List
(
DotAttr
(
"label"
,
"Node "
+
innerNode
+
":\n"
+
labels
(
innerNode
))))))
def
nodeTransformer
(
innerNode
:
WorkflowGraph
#
NodeT
)
:
Option
[(
DotGraph
,
DotNodeStmt
)]
=
{
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
))
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment