-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #61 from jxnkwlp/feature/workflow-group
⚡️ add group for definition
- Loading branch information
Showing
62 changed files
with
4,335 additions
and
235 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
2,645 changes: 2,645 additions & 0 deletions
2,645
....WorkflowApp.EntityFrameworkCore/Migrations/20230916070726_Add_WorkflowGroup2.Designer.cs
Large diffs are not rendered by default.
Oops, something went wrong.
75 changes: 75 additions & 0 deletions
75
...ssingwind.WorkflowApp.EntityFrameworkCore/Migrations/20230916070726_Add_WorkflowGroup2.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
using System; | ||
using Microsoft.EntityFrameworkCore.Migrations; | ||
|
||
#nullable disable | ||
|
||
namespace Demo.Migrations; | ||
|
||
/// <inheritdoc /> | ||
public partial class Add_WorkflowGroup2 : Migration | ||
{ | ||
/// <inheritdoc /> | ||
protected override void Up(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.AddColumn<Guid>( | ||
name: "GroupId", | ||
table: "ElsaWorkflowInstances", | ||
type: "uniqueidentifier", | ||
nullable: true); | ||
|
||
migrationBuilder.AddColumn<Guid>( | ||
name: "GroupId", | ||
table: "ElsaWorkflowDefinitions", | ||
type: "uniqueidentifier", | ||
nullable: true); | ||
|
||
migrationBuilder.AddColumn<string>( | ||
name: "GroupName", | ||
table: "ElsaWorkflowDefinitions", | ||
type: "nvarchar(64)", | ||
maxLength: 64, | ||
nullable: true); | ||
|
||
migrationBuilder.CreateTable( | ||
name: "ElsaWorkflowGroups", | ||
columns: table => new | ||
{ | ||
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), | ||
Name = table.Column<string>(type: "nvarchar(64)", maxLength: 64, nullable: false), | ||
Description = table.Column<string>(type: "nvarchar(256)", maxLength: 256, nullable: true), | ||
TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), | ||
ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true), | ||
ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true), | ||
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), | ||
CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), | ||
LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true), | ||
LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), | ||
IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), | ||
DeleterId = table.Column<Guid>(type: "uniqueidentifier", nullable: true), | ||
DeletionTime = table.Column<DateTime>(type: "datetime2", nullable: true) | ||
}, | ||
constraints: table => | ||
{ | ||
table.PrimaryKey("PK_ElsaWorkflowGroups", x => x.Id); | ||
}); | ||
} | ||
|
||
/// <inheritdoc /> | ||
protected override void Down(MigrationBuilder migrationBuilder) | ||
{ | ||
migrationBuilder.DropTable( | ||
name: "ElsaWorkflowGroups"); | ||
|
||
migrationBuilder.DropColumn( | ||
name: "GroupId", | ||
table: "ElsaWorkflowInstances"); | ||
|
||
migrationBuilder.DropColumn( | ||
name: "GroupId", | ||
table: "ElsaWorkflowDefinitions"); | ||
|
||
migrationBuilder.DropColumn( | ||
name: "GroupName", | ||
table: "ElsaWorkflowDefinitions"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
src/Passingwind.Abp.ElsaModule.Application.Contracts/Groups/IWorkflowGroupAppService.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using System; | ||
using System.Threading.Tasks; | ||
using Volo.Abp.Application.Dtos; | ||
using Volo.Abp.Application.Services; | ||
|
||
namespace Passingwind.Abp.ElsaModule.Groups; | ||
|
||
public interface IWorkflowGroupAppService : IApplicationService | ||
{ | ||
Task<PagedResultDto<WorkflowGroupDto>> GetListAsync(WorkflowGroupListRequestDto input); | ||
|
||
Task<WorkflowGroupDto> GetAsync(Guid id); | ||
|
||
Task<WorkflowGroupDto> CreateAsync(WorkflowGroupCreateOrUpdateDto input); | ||
|
||
Task<WorkflowGroupDto> UpdateAsync(Guid id, WorkflowGroupCreateOrUpdateDto input); | ||
|
||
Task DeleteAsync(Guid id); | ||
|
||
} |
15 changes: 15 additions & 0 deletions
15
...Passingwind.Abp.ElsaModule.Application.Contracts/Groups/WorkflowGroupCreateOrUpdateDto.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using System.ComponentModel.DataAnnotations; | ||
using Volo.Abp.Application.Dtos; | ||
|
||
namespace Passingwind.Abp.ElsaModule.Groups; | ||
|
||
public class WorkflowGroupCreateOrUpdateDto : ExtensibleEntityDto | ||
{ | ||
[Required] | ||
[MaxLength(64)] | ||
public virtual string Name { get; set; } | ||
|
||
[MaxLength(128)] | ||
public virtual string Description { get; set; } | ||
|
||
} |
11 changes: 11 additions & 0 deletions
11
src/Passingwind.Abp.ElsaModule.Application.Contracts/Groups/WorkflowGroupDto.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using System; | ||
using Volo.Abp.Application.Dtos; | ||
|
||
namespace Passingwind.Abp.ElsaModule.Groups; | ||
|
||
public class WorkflowGroupDto : ExtensibleAuditedEntityDto<Guid> | ||
{ | ||
public virtual string Name { get; set; } | ||
public virtual string Description { get; set; } | ||
public virtual Guid? TenantId { get; set; } | ||
} |
8 changes: 8 additions & 0 deletions
8
src/Passingwind.Abp.ElsaModule.Application.Contracts/Groups/WorkflowGroupListRequestDto.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
using Volo.Abp.Application.Dtos; | ||
|
||
namespace Passingwind.Abp.ElsaModule.Groups; | ||
|
||
public class WorkflowGroupListRequestDto : PagedResultRequestDto | ||
{ | ||
public string Filter { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 15 additions & 3 deletions
18
....ElsaModule.Application.Contracts/WorkflowDefinitions/WorkflowDefinitionListRequestDto.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,22 @@ | ||
using System; | ||
using Elsa.Models; | ||
using Volo.Abp.Application.Dtos; | ||
|
||
namespace Passingwind.Abp.ElsaModule.WorkflowDefinitions; | ||
|
||
public class WorkflowDefinitionListRequestDto : PagedResultRequestDto | ||
public class WorkflowDefinitionListRequestDto : PagedAndSortedResultRequestDto | ||
{ | ||
public string Filter { get; set; } | ||
public bool? IsSingleton { get; set; } | ||
public string Sorting { get; set; } | ||
|
||
public bool IsSingleton { get; set; } | ||
|
||
public bool DeleteCompletedInstances { get; set; } | ||
|
||
public string Channel { get; set; } | ||
|
||
public string Tag { get; set; } | ||
|
||
public Guid? GroupId { get; set; } | ||
|
||
public WorkflowPersistenceBehavior? PersistenceBehavior { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.