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
81d8b296
Commit
81d8b296
authored
May 22, 2014
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- beautified
parent
83aceebf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
16 deletions
+35
-16
workflow-procs.tcl
tcl/workflow-procs.tcl
+35
-16
No files found.
tcl/workflow-procs.tcl
View file @
81d8b296
...
...
@@ -1783,6 +1783,40 @@ ad_proc wf_sweep_time_events {} {
ad_proc -public wf_new_journal
{
-case_id:required
-action:required
-action_pretty:required
-message:required
}
{
Creates a new journal entry that can be passed to PL/SQL routines
}
{
set user_id 0
set peer_ip
"0.0.0.0"
catch
{
set user_id
[
ad_get_user_id
]
set peer_ip
[
ad_conn peeraddr
]
}
set jid
[
db_string new_journal
"
select journal_entry__new (
null,
:case_id,
:action,
:action_pretty,
now(),
:user_id,
:peer_ip,
:message
)
"
]
return
$jid
}
ad_proc wf_sweep_message_transition_tcl
{}
{
Sweep those message transitions that have a TCL callback
...
...
@@ -1826,21 +1860,6 @@ ad_proc wf_sweep_message_transition_tcl {} {
and tr.trigger_type = 'message'
"
# Add an entry to the journal
set journal_sql
"
select journal_entry__new (
null,
:case_id,
'task ' || :task_id || ' tcl enable',
'Enable TCL task' || :task_id || ': ' || :tcl_call,
now(),
:user_id,
:ip_address,
:error_msg
)
"
set found_transition_p 1
while
{
$found
_transition_p
}
{
...
...
@@ -1864,7 +1883,7 @@ ad_proc wf_sweep_message_transition_tcl {} {
ns_log Notice
"wf_sweep_message_transition_tcl: ... error:
$errmsg
"
set error_msg
$errmsg
}
db_exec_plsql journal_entry
$journal
_sql
wf_new_journal -case_id
$case
_id -action
"task
$task
_id tcl enable"
-action_pretty
"Enable TCL task
$task
_id: '
$tcl
_call'"
-message
"TCL call '
$tcl
_call' returned: '
$errmsg
'"
}
}
...
...
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