Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-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
intranet-workflow
Commits
a0ffaa84
Commit
a0ffaa84
authored
Apr 09, 2021
by
Project Open
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Added a case_assignee_id to skip_modify_transition in order to
allow blocking email alerts
parent
62459b43
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
intranet-workflow-procs.tcl
tcl/intranet-workflow-procs.tcl
+7
-4
No files found.
tcl/intranet-workflow-procs.tcl
View file @
a0ffaa84
...
...
@@ -93,7 +93,7 @@ ad_proc -public im_workflow_start_wf {
# Determine the first task in the case to be executed and start+finisch the task.
if
{
1 ==
$skip
_first_transition_p
}
{
im_workflow_skip_first_transition -case_id
$case
_id
im_workflow_skip_first_transition -case_id
$case
_id
-case_assignment_id 0
}
}
return
$case
_id
...
...
@@ -1507,6 +1507,7 @@ ad_proc -public im_workflow_home_inbox_component {
# This is useful for the very first transition of an approval WF
ad_proc -public im_workflow_skip_first_transition
{
{
-case_assignment_id
""
}
-case_id:required
}
{
Skip the first tasks of the workflow.
...
...
@@ -1515,6 +1516,11 @@ ad_proc -public im_workflow_skip_first_transition {
}
{
set user_id
[
ad_conn user_id
]
# Assign the first task to the user himself and start the task
# Fraber 151102: Assign to anonymous user in order to suppress email alerts
set wf_modify_assignee
$user
_id
if
{
""
ne
$case
_assignment_id
}
{
set user_id
$case
_assignment_id
}
# Get the first
"enabled"
task of the new case_id:
set enabled_tasks
[
db_list enabled_tasks
"
select task_id
...
...
@@ -1526,9 +1532,6 @@ ad_proc -public im_workflow_skip_first_transition {
ns_log Notice
"im_workflow_skip_first_transition: enabled_tasks=
$enabled
_tasks"
foreach task_id
$enabled
_tasks
{
# Assign the first task to the user himself and start the task
# Fraber 151102: Assign to anonymous user in order to suppress email alerts
set wf_modify_assignee
$user
_id
set wf_case_assig
[
db_string wf_assig
"select workflow_case__add_task_assignment (:task_id, :wf_modify_assignee, 'f')"
]
# Start the task. Saves the user the work to press the
"Start Task"
button.
...
...
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