diff --git a/models/workflow/workflow_schedule.go b/models/workflow/workflow_schedule.go index 0d12a26..3204c31 100644 --- a/models/workflow/workflow_schedule.go +++ b/models/workflow/workflow_schedule.go @@ -2,8 +2,17 @@ package oclib import "time" +// WorkflowSchedule is a struct that contains the scheduling information of a workflow +type ScheduleMode int + +const ( + TASK ScheduleMode = iota + SERVICE +) + type WorkflowSchedule struct { Id string `json:"id"` + Mode int64 `json:"mode" bson:"mode" validate:"required"` Name string `json:"name" bson:"name" validate:"required"` Start *time.Time `json:"start" bson:"start" validate:"required,ltfield=End"` End *time.Time `json:"end,omitempty" bson:"end,omitempty"`