/// <summary> /// Initializes a new instance of the <see cref="PerformWorkflowActionInput" /> class. /// </summary> /// <param name="Action">Action (required).</param> public PerformWorkflowActionInput(WorkflowActionRecord Action = null) { // to ensure "Action" is required (not null) if (Action == null) { throw new InvalidDataException("Action is a required property for PerformWorkflowActionInput and cannot be null"); } else { this.Action = Action; } }
/// <summary> /// Initializes a new instance of the <see cref="WorkflowStateRecord" /> class. /// </summary> /// <param name="StepKey">Key of current step, if available..</param> /// <param name="UstateTally">Tally of user states. Each user state applicable to the step has an entry to indicate the number of logical users in that state..</param> /// <param name="LastAction">LastAction.</param> /// <param name="StepState">State of step..</param> /// <param name="Active">Whether workflow is active. This is a boolean flag based on whether {@link $step} is an active step..</param> /// <param name="Step">Name of current step, if any..</param> /// <param name="StepPrev">Name of previous step, if any..</param> public WorkflowStateRecord(string StepKey = null, List <IntegerAttrRecord> UstateTally = null, WorkflowActionRecord LastAction = null, string StepState = null, bool?Active = null, string Step = null, string StepPrev = null) { this.StepKey = StepKey; this.UstateTally = UstateTally; this.LastAction = LastAction; this.StepState = StepState; this.Active = Active; this.Step = Step; this.StepPrev = StepPrev; }