-
Notifications
You must be signed in to change notification settings - Fork 15
/
Decision.graphqls
38 lines (35 loc) · 1.09 KB
/
Decision.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
# A deployed DMN decision.
type Decision {
# The unique key of the decision.
key: ID!
# The id of the decision (i.e. the technical name of the decision).
decisionId: String!
# The name of the decision (i.e. the descriptive name of the decision).
decisionName: String!
# The deployed version of the decision based on the decision id.
version: Int!
# The decision requirements graph that contains the decision.
decisionRequirements: DecisionRequirements
# The evaluations of the decision.
evaluations(
perPage: Int = 10,
page: Int = 0,
stateIn: [DecisionEvaluationState!] = [EVALUATED, FAILED]
): DecisionEvaluationConnection!
}
type DecisionConnection {
totalCount: Int!
nodes: [Decision!]!
}
extend type Query {
# Find the decision with the given key.
decision(key: ID!): Decision
# Find all decisions.
decisions(
perPage: Int = 10,
page: Int = 0,): DecisionConnection!
}
extend type Subscription {
# Subscribe to updates of decisions (i.e. new decision deployed).
decisionUpdates: Decision!
}