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
56c9c5f7
Commit
56c9c5f7
authored
Feb 08, 2016
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fixed PostgreSQL 9.x issues
parent
08a60071
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
42 deletions
+38
-42
wf-core-drop.sql
sql/postgresql/wf-core-drop.sql
+36
-39
workflow-case-package-body.sql
sql/postgresql/workflow-case-package-body.sql
+2
-3
No files found.
sql/postgresql/wf-core-drop.sql
View file @
56c9c5f7
...
...
@@ -15,16 +15,15 @@ create function inline_0 () returns integer as $$
declare
workflow_rec
record
;
begin
for
workflow_rec
in
select
w
.
workflow_key
,
t
.
table_name
from
wf_workflows
w
,
acs_object_types
t
where
t
.
object_type
=
w
.
workflow_key
for
workflow_rec
in
select
w
.
workflow_key
,
t
.
table_name
from
wf_workflows
w
,
acs_object_types
t
where
t
.
object_type
=
w
.
workflow_key
LOOP
PERFORM
workflow__delete_cases
(
workflow_rec
.
workflow_key
);
execute
'drop table '
||
workflow_rec
.
table_name
;
execute
'drop table if exists '
||
workflow_rec
.
table_name
;
PERFORM
workflow__drop_workflow
(
workflow_rec
.
workflow_key
);
end
loop
;
return
null
;
end
;
$$
language
'plpgsql'
;
...
...
@@ -33,50 +32,48 @@ drop function inline_0 ();
/* Sequences */
drop
sequence
t_wf_task_id_seq
;
drop
sequence
t_wf_token_id_seq
;
drop
sequence
if
exists
t_wf_task_id_seq
;
drop
sequence
if
exists
t_wf_token_id_seq
;
/* Views */
drop
view
wf_task_id_seq
;
drop
view
wf_token_id_seq
;
drop
view
wf_user_tasks
;
drop
view
wf_enabled_transitions
;
drop
view
wf_transition_places
;
drop
view
wf_role_info
;
drop
view
wf_transition_info
;
drop
view
wf_transition_contexts
;
drop
view
if
exists
wf_task_id_seq
;
drop
view
if
exists
wf_token_id_seq
;
drop
view
if
exists
wf_user_tasks
;
drop
view
if
exists
wf_enabled_transitions
;
drop
view
if
exists
wf_transition_places
;
drop
view
if
exists
wf_role_info
;
drop
view
if
exists
wf_transition_info
;
drop
view
if
exists
wf_transition_contexts
;
/* Operational level */
drop
table
wf_attribute_value_audit
;
drop
table
wf_tokens
;
drop
table
wf_task_assignments
;
drop
table
wf_tasks
;
drop
table
wf_case_assignments
;
drop
table
wf_case_deadlines
;
drop
table
wf_cases
;
drop
table
if
exists
wf_attribute_value_audit
;
drop
table
if
exists
wf_tokens
;
drop
table
if
exists
wf_task_assignments
;
drop
table
if
exists
wf_tasks
;
drop
table
if
exists
wf_case_assignments
;
drop
table
if
exists
wf_case_deadlines
;
drop
table
if
exists
wf_cases
;
/* Context level */
drop
table
wf_context_assignments
;
drop
table
wf_context_task_panels
;
drop
table
wf_context_role_info
;
drop
table
wf_context_transition_info
;
drop
table
wf_context_workflow_info
;
drop
table
wf_contexts
;
drop
table
if
exists
wf_context_assignments
;
drop
table
if
exists
wf_context_task_panels
;
drop
table
if
exists
wf_context_role_info
;
drop
table
if
exists
wf_context_transition_info
;
drop
table
if
exists
wf_context_workflow_info
;
drop
table
if
exists
wf_contexts
;
/* Knowledge Level */
drop
table
wf_transition_role_assign_map
;
drop
table
wf_transition_attribute_map
;
drop
table
wf_arcs
;
drop
table
wf_transitions
;
drop
table
wf_roles
;
drop
table
wf_places
;
drop
table
wf_workflows
;
drop
table
if
exists
wf_transition_role_assign_map
;
drop
table
if
exists
wf_transition_attribute_map
;
drop
table
if
exists
wf_arcs
;
drop
table
if
exists
wf_transitions
;
drop
table
if
exists
wf_roles
;
drop
table
if
exists
wf_places
;
drop
table
if
exists
wf_workflows
;
/* acs_object_type */
select
acs_object_type__drop_type
(
'workflow'
,
't'
);
);
sql/postgresql/workflow-case-package-body.sql
View file @
56c9c5f7
...
...
@@ -1000,7 +1000,7 @@ begin
if
execute_time_callback__callback
=
''
or
execute_time_callback__callback
is
null
then
return
null
;
end
if
;
v_str
:
=
'select '
||
execute_time_callback__callback
||
'('
||
execute_time_callback__case_id
||
','
||
quote_literal
(
execute_time_callback__transition_key
)
||
','
||
...
...
@@ -1214,8 +1214,7 @@ begin
insert
into
wf_tokens
(
token_id
,
case_id
,
workflow_key
,
place_key
,
state
,
produced_journal_id
)
values
(
v_token_id
,
add_token__case_id
,
v_workflow_key
,
add_token__place_key
,
values
(
v_token_id
,
add_token__case_id
,
v_workflow_key
,
add_token__place_key
,
'free'
,
add_token__journal_id
);
return
0
;
...
...
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