Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
acs-workflow
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
acs-workflow
Commits
d5a95cde
Commit
d5a95cde
authored
Feb 11, 2011
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Changes from po40demo @ valencia
parent
7975d0fa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletion
+16
-1
graph-init.tcl
tcl/graph-init.tcl
+5
-0
case-state-graph.tcl
www/case-state-graph.tcl
+11
-1
No files found.
tcl/graph-init.tcl
View file @
d5a95cde
ns_cache create workflow_info -timeout 60
# Initialize a "semaphore" to 0 to protect the "dot" GraphWiz.
nsv_set acs_workflow dot_busy_p 0
www/case-state-graph.tcl
View file @
d5a95cde
...
...
@@ -75,8 +75,18 @@ if { [wf_graphviz_installed_p] } {
set dot_text
[
wf_generate_dot_representation -size
$size
workflow
]
set tmpfile
[
wf_graphviz_dot_exec -to_file -output gif
$dot
_text
]
# Retry getting the GIF, as graphviz is protected by a semaphore
set cnt 0
set tmpfile
""
while
{
""
==
$tmpfile
}
{
set tmpfile
[
wf_graphviz_dot_exec -to_file -output gif
$dot
_text
]
incr cnt
if
{
$cnt
> 10
}
{
ad_return_complaint 1
"case-state-graph.tcl: Too many tries to get 'wf_graphviz_dot_exec'"
}
}
ns_log Notice
"wf_graphviz_dot_exec: tmpfile=
$tmpfile
, exists=
[
file
exists
$tmpfile
]
"
set width_and_height
""
if
{
!
[
catch
{
set image_size
[
ns_gifsize
$tmpfile
]
}
error
]
}
{
if
{
!
[
empty_string_p
$image
_size
]
}
{
...
...
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