34 lines
757 B
C#
34 lines
757 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Elsa.Common.Models;
|
|
using JetBrains.Annotations;
|
|
|
|
namespace Caspian.WorkflowFramework.Models
|
|
{
|
|
[PublicAPI]
|
|
public class CreateAndExecuteWorkflowModel
|
|
{
|
|
/// <summary>
|
|
/// Workflow name
|
|
/// </summary>
|
|
[Required]
|
|
public string? Name { get; set; }
|
|
|
|
/// <summary>
|
|
/// Workflow version
|
|
/// </summary>
|
|
[Required]
|
|
public VersionOptions Version { get; set; }
|
|
|
|
/// <summary>
|
|
/// Current user's id
|
|
/// </summary>
|
|
[Required]
|
|
public long? UserId { get; set; }
|
|
}
|
|
}
|