Currently WorkflowExecution state attribute is a string which means we had to add a bunch of state? methods to help ease checking state, if we change to enum as the type then those methods are automatically available and we don't need to define them.
Currently once a WorkflowExecution is sent to WES we update the state to submitted this state doesn't changed untill it errors or is completing. Instead inside of the WorkflowExecutions::StatusService we should update the state to running when the state returned from WES is RUNNING.
Acceptance Criteria
Ensure running state is set properly
Migrate all existing states from strings to appropriate enum values
Add translations for each of the enums and ensure display in UI is working as expected
Problem
Currently WorkflowExecution
state
attribute is a string which means we had to add a bunch ofstate?
methods to help ease checking state, if we change toenum
as the type then those methods are automatically available and we don't need to define them.Currently once a WorkflowExecution is sent to WES we update the state to
submitted
this state doesn't changed untill it errors or is completing. Instead inside of theWorkflowExecutions::StatusService
we should update the state torunning
when the state returned from WES isRUNNING
.Acceptance Criteria
running
state is set properly