-
Notifications
You must be signed in to change notification settings - Fork 15
/
Process.graphqls
49 lines (46 loc) · 1.62 KB
/
Process.graphqls
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
type Process {
# the unique key of the process
key: ID!
# the BPMN process id (i.e. the technical name of the process)
bpmnProcessId: String!
# the deployed version of the process based on the BPMN process id
version: Int!
# the time when the process was deployed
deployTime(zoneId: String = "Z"): String!
# the BPMN XML of the process
bpmnXML: String!
# the created instances of the process
processInstances(
perPage: Int = 10,
page: Int = 0,
stateIn: [ProcessInstanceState!] = [ACTIVATED, COMPLETED, TERMINATED]): ProcessInstanceConnection!
# the scheduled timers of the timer start events of the process
timers: [Timer!]
# the opened message subscriptions of the message start events of the process
messageSubscriptions: [MessageSubscription!]
# The subscriptions of the signal start events of the process.
signalSubscriptions: [SignalSubscription!]
# all BPMN elements of the process
elements(
# Filter the BPMN elements by the given types. If empty, return all elements.
elementTypeIn: [BpmnElementType!] = []
): [BpmnElement!]
# BPMN element of the process by its id
element(elementId: String): BpmnElement
}
type ProcessConnection {
totalCount: Int!
nodes: [Process!]!
}
extend type Query {
# find the process with the given key
process(key: ID!): Process
# find all processes
processes(
perPage: Int = 10,
page: Int = 0,): ProcessConnection!
}
extend type Subscription {
# Subscribe to updates of processes (i.e. new process deployed).
processUpdates: Process!
}