/// <summary>
 /// Initializes a new instance of the <see cref="FlowRuntimeExecution" /> class.
 /// </summary>
 /// <param name="Id">The flow execution ID.</param>
 /// <param name="Name">The flow execution name..</param>
 /// <param name="FlowVersion">The Version of the flow definition of the flow execution. (required).</param>
 /// <param name="DateLaunched">The time the flow was launched. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z (required).</param>
 /// <param name="Status">The flow's running status, which indicates whether the flow is running normally or completed, etc. (required).</param>
 /// <param name="DateCompleted">The time the flow completed, if applicable. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss[.mmm]Z.</param>
 /// <param name="CompletionReason">The completion reason set at the flow completion time, if applicable..</param>
 /// <param name="FlowErrorInfo">Additional information if the flow is in error.</param>
 /// <param name="OutputData">List of the flow's output variables, if any. Output variables are only supplied for Completed flows..</param>
 /// <param name="Conversation">The conversation to which this Flow execution is related.</param>
 public FlowRuntimeExecution(string Id = null, string Name = null, FlowVersion FlowVersion = null, DateTime?DateLaunched = null, StatusEnum?Status = null, DateTime?DateCompleted = null, string CompletionReason = null, ErrorBody FlowErrorInfo = null, Dictionary <string, Object> OutputData = null, DomainEntityRef Conversation = null)
 {
     this.Id               = Id;
     this.Name             = Name;
     this.FlowVersion      = FlowVersion;
     this.DateLaunched     = DateLaunched;
     this.Status           = Status;
     this.DateCompleted    = DateCompleted;
     this.CompletionReason = CompletionReason;
     this.FlowErrorInfo    = FlowErrorInfo;
     this.OutputData       = OutputData;
     this.Conversation     = Conversation;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="Flow" /> class.
        /// </summary>



        /// <param name="Name">The flow name (required).</param>



        /// <param name="Description">Description.</param>



        /// <param name="Division">Division.</param>



        /// <param name="Type">Type.</param>



        /// <param name="LockedUser">LockedUser.</param>



        /// <param name="Active">Active.</param>



        /// <param name="System">System.</param>



        /// <param name="Deleted">Deleted.</param>



        /// <param name="PublishedVersion">PublishedVersion.</param>



        /// <param name="SavedVersion">SavedVersion.</param>



        /// <param name="InputSchema">json schema describing the inputs for the flow.</param>



        /// <param name="OutputSchema">json schema describing the outputs for the flow.</param>



        /// <param name="CheckedInVersion">CheckedInVersion.</param>



        /// <param name="PublishedBy">PublishedBy.</param>



        /// <param name="CurrentOperation">CurrentOperation.</param>



        public Flow(string Name = null, string Description = null, AuthzDivision Division = null, TypeEnum?Type = null, User LockedUser = null, bool?Active = null, bool?System = null, bool?Deleted = null, FlowVersion PublishedVersion = null, FlowVersion SavedVersion = null, Object InputSchema = null, Object OutputSchema = null, FlowVersion CheckedInVersion = null, User PublishedBy = null, Operation CurrentOperation = null)
        {
            // to ensure "Name" is required (not null)
            if (Name == null)
            {
                throw new InvalidDataException("Name is a required property for Flow and cannot be null");
            }
            else
            {
                this.Name = Name;
            }



            this.Description = Description;



            this.Division = Division;



            this.Type = Type;



            this.LockedUser = LockedUser;



            this.Active = Active;



            this.System = System;



            this.Deleted = Deleted;



            this.PublishedVersion = PublishedVersion;



            this.SavedVersion = SavedVersion;



            this.InputSchema = InputSchema;



            this.OutputSchema = OutputSchema;



            this.CheckedInVersion = CheckedInVersion;



            this.PublishedBy = PublishedBy;



            this.CurrentOperation = CurrentOperation;
        }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Flow" /> class.
 /// </summary>
 /// <param name="Id">The flow identifier.</param>
 /// <param name="Name">The flow name (required).</param>
 /// <param name="Division">The division to which this entity belongs..</param>
 /// <param name="Description">Description.</param>
 /// <param name="Type">Type.</param>
 /// <param name="LockedUser">User that has the flow locked..</param>
 /// <param name="LockedClient">OAuth client that has the flow locked..</param>
 /// <param name="Active">Active.</param>
 /// <param name="System">System.</param>
 /// <param name="Deleted">Deleted.</param>
 /// <param name="PublishedVersion">PublishedVersion.</param>
 /// <param name="SavedVersion">SavedVersion.</param>
 /// <param name="InputSchema">json schema describing the inputs for the flow.</param>
 /// <param name="OutputSchema">json schema describing the outputs for the flow.</param>
 /// <param name="CheckedInVersion">CheckedInVersion.</param>
 /// <param name="PublishedBy">PublishedBy.</param>
 /// <param name="CurrentOperation">CurrentOperation.</param>
 public Flow(string Id = null, string Name = null, WritableDivision Division = null, string Description = null, TypeEnum?Type = null, User LockedUser = null, DomainEntityRef LockedClient = null, bool?Active = null, bool?System = null, bool?Deleted = null, FlowVersion PublishedVersion = null, FlowVersion SavedVersion = null, Object InputSchema = null, Object OutputSchema = null, FlowVersion CheckedInVersion = null, User PublishedBy = null, Operation CurrentOperation = null)
 {
     this.Id               = Id;
     this.Name             = Name;
     this.Division         = Division;
     this.Description      = Description;
     this.Type             = Type;
     this.LockedUser       = LockedUser;
     this.LockedClient     = LockedClient;
     this.Active           = Active;
     this.System           = System;
     this.Deleted          = Deleted;
     this.PublishedVersion = PublishedVersion;
     this.SavedVersion     = SavedVersion;
     this.InputSchema      = InputSchema;
     this.OutputSchema     = OutputSchema;
     this.CheckedInVersion = CheckedInVersion;
     this.PublishedBy      = PublishedBy;
     this.CurrentOperation = CurrentOperation;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="FlowDivisionView" /> class.
 /// </summary>
 /// <param name="Id">The flow identifier.</param>
 /// <param name="Name">The flow name (required).</param>
 /// <param name="Division">The division to which this entity belongs..</param>
 /// <param name="Type">Type.</param>
 /// <param name="Description">the flow description.</param>
 /// <param name="InputSchema">json schema describing the inputs for the flow.</param>
 /// <param name="OutputSchema">json schema describing the outputs for the flow.</param>
 /// <param name="PublishedVersion">published version information if there is a published version.</param>
 /// <param name="DebugVersion">debug version information if there is a debug version.</param>
 public FlowDivisionView(string Id = null, string Name = null, WritableDivision Division = null, TypeEnum?Type = null, string Description = null, JsonSchemaDocument InputSchema = null, JsonSchemaDocument OutputSchema = null, FlowVersion PublishedVersion = null, FlowVersion DebugVersion = null)
 {
     this.Id               = Id;
     this.Name             = Name;
     this.Division         = Division;
     this.Type             = Type;
     this.Description      = Description;
     this.InputSchema      = InputSchema;
     this.OutputSchema     = OutputSchema;
     this.PublishedVersion = PublishedVersion;
     this.DebugVersion     = DebugVersion;
 }