Skip to content
Snippets Groups Projects
Commit 70646dab authored by Nathan Hertz's avatar Nathan Hertz
Browse files

Added CapabilityEventType enum that keeps track of the type a capability

event can have; its values correspond to the capability step that would
await that event
parent 5ac100b1
No related branches found
No related tags found
No related merge requests found
......@@ -67,11 +67,11 @@ class CapabilityStepType(Enum):
Enum that specifies the types of CapabilitySteps that are possible
"""
PrepareAndRunWorkflow = 0
AwaitQA = auto()
AwaitWorkflow = auto()
AwaitProduct = auto()
AwaitParameter = auto()
AwaitLargeAllocApproval = auto()
AwaitQA = 1
AwaitWorkflow = 2
AwaitProduct = 3
AwaitParameter = 4
AwaitLargeAllocApproval = 5
@classmethod
def from_string(cls, string: str) -> CapabilityStepType:
......@@ -86,6 +86,20 @@ class CapabilityStepType(Enum):
return strings[string]
class CapabilityEventType(Enum):
"""
Enum that specifies the type of CapabilityEvents possible to send
"""
WorkflowComplete = 0
QaApproval = 1
QaDenial = 1
WorkflowReady = 2
ProductReady = 3
ParameterReady = 4
LargeAllocApproval = 5
LargeAllocDenial = 5
class RequestState(Enum):
"""
Enum that specifies the states that a capability request can be in
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment