-
Notifications
You must be signed in to change notification settings - Fork 0
/
workflow.cql
57 lines (57 loc) · 1.71 KB
/
workflow.cql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
CREATE TABLE taskListByNameAndProcessDefinition
(
assignee uuid,
name text,
process_definition_name text,
id uuid,
assigned_at timestamp,
completed boolean,
completed_at timestamp,
process_instance_id uuid,
PRIMARY KEY ((assignee), name, process_definition_name)
);
CREATE TABLE taskListByProcessDefinition
(
assignee uuid,
process_definition_name text,
id uuid,
name text,
assigned_at timestamp,
completed boolean,
completed_at timestamp,
process_instance_id uuid,
PRIMARY KEY ((assignee), process_definition_name)
);
CREATE TABLE queryProcessInstanceByInitiatorAndStatus
(
initiator_id uuid,
status text,
id uuid,
completed boolean,
name text,
initiator_name text,
initiator_display_name text,
initiator_created_at timestamp,
PRIMARY KEY ((initiator_id), status)
);
CREATE TABLE queryProcessInstanceByName
(
name text,
id uuid,
completed boolean,
initiator_id uuid,
initiator_name text,
initiator_display_name text,
initiator_created_at timestamp,
PRIMARY KEY ((name))
);
CREATE TABLE queryCommentsByProcessInstanceId
(
process_instance_id uuid,
author_id uuid,
id uuid,
text text,
added_at timestamp,
author_display_name text,
PRIMARY KEY ((process_instance_id), author_id)
);