diff --git a/models/workflow/workflow_mongo_accessor.go b/models/workflow/workflow_mongo_accessor.go index c3c6d78..6ff1e11 100644 --- a/models/workflow/workflow_mongo_accessor.go +++ b/models/workflow/workflow_mongo_accessor.go @@ -51,7 +51,7 @@ func (wfa *workflowMongoAccessor) execution(realData *Workflow, delete bool) (in obj := &workflow_execution.WorkflowExecution{ ExecDate: &s, EndDate: realData.Schedule.End, - State: workflow_execution.SCHEDULED.EnumIndex(), + State: 0, WorkflowID: realData.UUID, } accessor.StoreOne(obj) @@ -61,7 +61,7 @@ func (wfa *workflowMongoAccessor) execution(realData *Workflow, delete bool) (in obj := &workflow_execution.WorkflowExecution{ ExecDate: realData.Schedule.Start, EndDate: realData.Schedule.End, - State: workflow_execution.SCHEDULED.EnumIndex(), + State: 0, WorkflowID: realData.UUID, } accessor.StoreOne(obj)