Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-rule-engine
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-rule-engine
Commits
2782fb92
Commit
2782fb92
authored
Aug 12, 2017
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- replaced new(...) by $new(...)
- Beautified
parent
2da89a75
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
intranet-rule-engine-examples.sql
sql/postgresql/intranet-rule-engine-examples.sql
+10
-4
No files found.
sql/postgresql/intranet-rule-engine-examples.sql
View file @
2782fb92
...
...
@@ -13,8 +13,7 @@ SELECT im_rule__new(
85000
,
'[db_string task_start_notification_cond "
select count(*) from im_timesheet_tasks t, im_projects p where
t.task_id = p.project_id and
t.task_id = new(task_id) and
t.task_id = p.project_id and t.task_id = $new(task_id) and
0 == (select count(*) from im_rule_logs where rule_log_object_id = t.task_id and rule_log_error_source =
''
task_start_notification
''
) and
p.start_date <= now() and p.end_date >= now()
"]'
...
...
@@ -22,9 +21,16 @@ p.start_date <= now() and p.end_date >= now()
update
im_rules
set
rule_sort_order
=
20
,
rule_action_tcl
=
'insert into rule_logs (rule_log_object_id, rule_log_rule_id, rule_log_user_id, rule_log_ip, rule_log_error_source, rule_log_error_statement, rule_log_error_message, rule_log_error_env) values (new(task_id), new(rule_id), new(user_id),
''
0.0.0.0
''
,
''
task_start_notification
''
,
''
-
''
,
''
ok
''
,
''
-
''
)'
,
rule_action_tcl
=
'insert into rule_logs (
rule_log_object_id, rule_log_rule_id, rule_log_user_id,
rule_log_ip, rule_log_error_source, rule_log_error_statement,
rule_log_error_message, rule_log_error_env
) values (
$new(task_id), $new(rule_id), $new(user_id),
''
0.0.0.0
''
,
''
task_start_notification
''
,
''
-
''
,
''
ok
''
,
''
-
''
)'
,
rule_action_email_to_tcl
=
'db_list members "select email from parties where party_id in (select object_id_two from acs_rels where object_id_one = $new(task_id))"'
,
rule_action_email_subject
=
'Task new(project_name) starts now'
,
rule_action_email_subject
=
'Task
$
new(project_name) starts now'
,
rule_action_email_body
=
'Dear $first_names,
Your project or task: $new(project_name)
...
...
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