public ModelEntity GetModel() { var model = new WorkflowActivityModel() { WorkflowActivity = this.ToLite(), Workflow = this.Lane.Pool.Workflow }; model.MainEntityType = model.Workflow.MainEntityType; model.Name = this.Name; model.Type = this.Type; model.RequiresOpen = this.RequiresOpen; model.BoundaryTimers.AssignMList(this.BoundaryTimers.Select(we => new WorkflowEventModel { Name = we.Name, MainEntityType = we.Lane.Pool.Workflow.MainEntityType, Type = we.Type, Timer = we.Timer, BpmnElementId = we.BpmnElementId }).ToMList()); model.DecisionOptions.AssignMList(this.DecisionOptions); model.CustomNextButton = this.CustomNextButton; model.EstimatedDuration = this.EstimatedDuration; model.Script = this.Script; model.ViewName = this.ViewName; model.ViewNameProps.AssignMList(this.ViewNameProps); model.UserHelp = this.UserHelp; model.SubWorkflow = this.SubWorkflow; model.Comments = this.Comments; model.CopyMixinsFrom(this); return(model); }
public ModelEntity GetModel() { var model = new WorkflowActivityModel() { WorkflowActivity = this.ToLite(), Workflow = this.Lane.Pool.Workflow }; model.MainEntityType = model.Workflow.MainEntityType; model.Name = this.Name; model.Type = this.Type; model.RequiresOpen = this.RequiresOpen; model.Reject = this.Reject; model.Timeout = this.Timeout; model.EstimatedDuration = this.EstimatedDuration; model.Jumps.AssignMList(this.Jumps); model.Script = this.Script; model.ViewName = this.ViewName; model.UserHelp = this.UserHelp; model.SubWorkflow = this.SubWorkflow; model.Comments = this.Comments; return(model); }