diff --git a/models/workflow_execution/workflow_execution.go b/models/workflow_execution/workflow_execution.go index 601bd55..66ac01e 100644 --- a/models/workflow_execution/workflow_execution.go +++ b/models/workflow_execution/workflow_execution.go @@ -23,13 +23,14 @@ type WorkflowExecutions struct { utils.AbstractObject // AbstractObject contains the basic fields of an object (id, name) ExecDate time.Time `json:"execution_date,omitempty" bson:"execution_date,omitempty" validate:"required"` // ExecDate is the execution date of the workflow, is required EndDate *time.Time `json:"end_date,omitempty" bson:"end_date,omitempty"` // EndDate is the end date of the workflow - State enum.BookingStatus `json:"state" bson:"state" default:"1"` // TEMPORARY TODO DEFAULT 1 -> 0 State is the state of the workflow + State enum.BookingStatus `json:"state" bson:"state" default:"0"` // TEMPORARY TODO DEFAULT 1 -> 0 State is the state of the workflow WorkflowID string `json:"workflow_id" bson:"workflow_id,omitempty"` // WorkflowID is the ID of the workflow } func (r *WorkflowExecutions) StoreDraftDefault() { // r.IsDraft = true r.IsDraft = false // TODO: TEMPORARY + r.State = enum.SCHEDULED } func (r *WorkflowExecutions) CanUpdate(set utils.DBObject) (bool, utils.DBObject) {