Skip to content

Commit

Permalink
WFE 14.1.0 (autocommit)
Browse files Browse the repository at this point in the history
  • Loading branch information
optimajet committed Sep 20, 2024
1 parent 83a44e2 commit dc9cc64
Show file tree
Hide file tree
Showing 131 changed files with 827 additions and 311 deletions.
2 changes: 1 addition & 1 deletion Designer/workflowdesigner.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<Project>
<!-- Version -->
<PropertyGroup>
<Version>13.3.1</Version>
<AssemblyVersion>13.3.0</AssemblyVersion>
<FileVersion>13.3.0</FileVersion>
<Version>14.1.0</Version>
<AssemblyVersion>14.1.0</AssemblyVersion>
<FileVersion>14.1.0</FileVersion>
</PropertyGroup>
<!-- Build -->
<PropertyGroup>
Expand Down
4 changes: 2 additions & 2 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<ItemGroup>
<PackageVersion Include="ConfigureAwait.Fody" Version="3.3.1" />
<PackageVersion Include="Fody" Version="6.6.3" />
<PackageVersion Include="WorkflowEngine.NETCore-Core" Version="13.3.1" />
<PackageVersion Include="WorkflowEngine.NETCore-Migrator" Version="13.3.1" />
<PackageVersion Include="WorkflowEngine.NETCore-Core" Version="14.1.0" />
<PackageVersion Include="WorkflowEngine.NETCore-Migrator" Version="14.1.0" />
</ItemGroup>
<!-- Plugins -->
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
"targets": {
".NETStandard,Version=v2.0": {},
".NETStandard,Version=v2.0/": {
"OptimaJet.Workflow.MSSQL/13.3.1": {
"OptimaJet.Workflow.MSSQL/14.1.0": {
"dependencies": {
"Microsoft.Data.SqlClient": "5.2.0",
"NETStandard.Library": "2.0.3",
"WorkflowEngine.NETCore-Core": "13.3.1",
"WorkflowEngine.NETCore-Migrator": "13.3.1",
"OptimaJet.Workflow.Core": "13.3.0.0",
"OptimaJet.Workflow.Migrator": "13.3.0.0"
"WorkflowEngine.NETCore-Core": "14.1.0",
"WorkflowEngine.NETCore-Migrator": "14.1.0",
"OptimaJet.Workflow.Core": "14.1.0.0",
"OptimaJet.Workflow.Migrator": "14.1.0.0"
},
"runtime": {
"OptimaJet.Workflow.MSSQL.dll": {}
Expand Down Expand Up @@ -1683,7 +1683,7 @@
}
}
},
"WorkflowEngine.NETCore-Core/13.3.1": {
"WorkflowEngine.NETCore-Core/14.1.0": {
"dependencies": {
"Microsoft.CodeAnalysis.CSharp": "4.1.0",
"Microsoft.CodeAnalysis.CSharp.Scripting": "4.1.0",
Expand All @@ -1698,37 +1698,37 @@
"OptimaJet.Workflow.Core.dll": {}
}
},
"WorkflowEngine.NETCore-Migrator/13.3.1": {
"WorkflowEngine.NETCore-Migrator/14.1.0": {
"dependencies": {
"FluentMigrator": "5.2.0",
"FluentMigrator.Runner": "5.2.0",
"Microsoft.Extensions.DependencyInjection": "8.0.0",
"WorkflowEngine.NETCore-Core": "13.3.1"
"WorkflowEngine.NETCore-Core": "14.1.0"
},
"runtime": {
"OptimaJet.Workflow.Migrator.dll": {}
}
},
"OptimaJet.Workflow.Core/13.3.0.0": {
"OptimaJet.Workflow.Core/14.1.0.0": {
"runtime": {
"OptimaJet.Workflow.Core.dll": {
"assemblyVersion": "13.3.0.0",
"fileVersion": "13.3.0.0"
"assemblyVersion": "14.1.0.0",
"fileVersion": "14.1.0.0"
}
}
},
"OptimaJet.Workflow.Migrator/13.3.0.0": {
"OptimaJet.Workflow.Migrator/14.1.0.0": {
"runtime": {
"OptimaJet.Workflow.Migrator.dll": {
"assemblyVersion": "13.3.0.0",
"fileVersion": "13.3.0.0"
"assemblyVersion": "14.1.0.0",
"fileVersion": "14.1.0.0"
}
}
}
}
},
"libraries": {
"OptimaJet.Workflow.MSSQL/13.3.1": {
"OptimaJet.Workflow.MSSQL/14.1.0": {
"type": "project",
"serviceable": false,
"sha512": ""
Expand Down Expand Up @@ -2671,22 +2671,22 @@
"path": "thomaslevesque.weakevent/4.1.0",
"hashPath": "thomaslevesque.weakevent.4.1.0.nupkg.sha512"
},
"WorkflowEngine.NETCore-Core/13.3.1": {
"WorkflowEngine.NETCore-Core/14.1.0": {
"type": "project",
"serviceable": false,
"sha512": ""
},
"WorkflowEngine.NETCore-Migrator/13.3.1": {
"WorkflowEngine.NETCore-Migrator/14.1.0": {
"type": "project",
"serviceable": false,
"sha512": ""
},
"OptimaJet.Workflow.Core/13.3.0.0": {
"OptimaJet.Workflow.Core/14.1.0.0": {
"type": "reference",
"serviceable": false,
"sha512": ""
},
"OptimaJet.Workflow.Migrator/13.3.0.0": {
"OptimaJet.Workflow.Migrator/14.1.0.0": {
"type": "reference",
"serviceable": false,
"sha512": ""
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
Company: OptimaJet
Project: WorkflowEngine.NET Provider for MSSQL and Azure SQL
Version: 13.3
Version: 14.1
File: CreatePersistenceObjects.sql
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
IF NOT EXISTS(SELECT DISTINCT 1
FROM WorkflowProcessInstancePersistence
WHERE LEN(ParameterName) > 900)
BEGIN
IF NOT EXISTS(SELECT DISTINCT 1 FROM WorkflowProcessTimer WHERE LEN(Name) > 900)
BEGIN
PRINT 'OK: No breaking changes detected'
END
ELSE
BEGIN
RAISERROR ('BREAKING CHANGES DETECTED: Some rows in the Name column in WorkflowProcessTimer table is too long. Please contact support [email protected].', 16, 1)
END
END
ELSE
BEGIN
RAISERROR ('BREAKING CHANGES DETECTED: Some rows in the ParameterName column in WorkflowProcessInstancePersistence table is too long. Please contact support [email protected].', 16, 1)
END

IF NOT EXISTS(SELECT max_length
FROM sys.columns
WHERE columns.object_id = OBJECT_ID('WorkflowProcessInstancePersistence')
AND columns.name = 'ParameterName'
AND columns.max_length = 1800)
BEGIN
ALTER TABLE WorkflowProcessInstancePersistence
ALTER COLUMN ParameterName NVARCHAR(900) NOT NULL;
END

IF NOT EXISTS(SELECT *
FROM sys.indexes
WHERE name = 'IX_ProcessId_ParameterName'
AND object_id = OBJECT_ID('WorkflowProcessInstancePersistence'))
BEGIN
CREATE UNIQUE INDEX IX_ProcessId_ParameterName ON WorkflowProcessInstancePersistence (ProcessId, ParameterName);
END

IF NOT EXISTS(SELECT *
FROM sys.indexes
WHERE name = 'IX_ProcessId_IdentityId'
AND object_id = OBJECT_ID('WorkflowInbox'))
BEGIN
CREATE UNIQUE INDEX IX_ProcessId_IdentityId ON WorkflowInbox (ProcessId, IdentityId);
END

IF NOT EXISTS(SELECT max_length
FROM sys.columns
WHERE columns.object_id = OBJECT_ID('WorkflowProcessTimer')
AND columns.name = 'Name'
AND columns.max_length = 1800)
BEGIN
ALTER TABLE WorkflowProcessTimer
ALTER COLUMN Name NVARCHAR(900) NOT NULL;
END

IF NOT EXISTS(SELECT *
FROM sys.indexes
WHERE name = 'IX_ProcessId_Name'
AND object_id = OBJECT_ID('WorkflowProcessTimer'))
BEGIN
CREATE UNIQUE INDEX IX_ProcessId_Name ON WorkflowProcessTimer (ProcessId, Name);
END
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
Company: OptimaJet
Project: WorkflowEngine.NET Provider for MSSQL
Version: 13.3
Version: 14.1
File: DropPersistenceObjects.sql
*/

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
Company: OptimaJet
Project: WorkflowEngine.NET Provider for MSSQL and Azure SQL
Version: 13.3
Version: 14.1
File: CreatePersistenceObjects.sql
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ public async Task<List<SchemeItem>> GetSchemesAsync(List<(string parameterName,S
Scheme = sc.Scheme,
CanBeInlined = sc.CanBeInlined,
InlinedSchemes = sc.GetInlinedSchemes(),
Tags = TagHelper.FromTagString(sc.Tags),
Tags = TagHelper.FromTagStringForDatabase(sc.Tags)
}).ToList();
}

Expand Down Expand Up @@ -1062,6 +1062,11 @@ public virtual async Task<int> SetTimerIgnoreAsync(Guid timerId)

public virtual async Task<List<Core.Model.WorkflowTimer>> GetTopTimersToExecuteAsync(int top)
{
if (top <= 0)
{
throw new ArgumentException(ArgumentExceptionMessages.ArgumentMustBePositive(nameof(top), top));
}

DateTime now = _runtime.RuntimeDateTimeNow;

using var connection = OpenConnection();
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using FluentMigrator;
using OptimaJet.Workflow.Migrator;

namespace OptimaJet.Workflow.MSSQL.Migrations;

[Migration(20)]
[WorkflowEngineMigration("OptimaJet.Workflow.MSSQL.Scripts.CreateUniqueIndexes.sql")]
public class Migration20CreateUniqueIndexes : Migration
{
public override void Up()
{
this.EmbeddedScript();
}

public override void Down()
{
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,7 @@
<ItemGroup>
<None Remove="Scripts\InitialWorkflowEngineSchema.sql" />
<EmbeddedResource Include="Scripts\InitialWorkflowEngineSchema.sql" />
<None Remove="Scripts\CreateUniqueIndexes.sql" />
<EmbeddedResource Include="Scripts\CreateUniqueIndexes.sql" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
Company: OptimaJet
Project: WorkflowEngine.NET Provider for MSSQL and Azure SQL
Version: 13.3
Version: 14.1
File: CreatePersistenceObjects.sql
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
IF NOT EXISTS(SELECT DISTINCT 1
FROM WorkflowProcessInstancePersistence
WHERE LEN(ParameterName) > 900)
BEGIN
IF NOT EXISTS(SELECT DISTINCT 1 FROM WorkflowProcessTimer WHERE LEN(Name) > 900)
BEGIN
PRINT 'OK: No breaking changes detected'
END
ELSE
BEGIN
RAISERROR ('BREAKING CHANGES DETECTED: Some rows in the Name column in WorkflowProcessTimer table is too long. Please contact support [email protected].', 16, 1)
END
END
ELSE
BEGIN
RAISERROR ('BREAKING CHANGES DETECTED: Some rows in the ParameterName column in WorkflowProcessInstancePersistence table is too long. Please contact support [email protected].', 16, 1)
END

IF NOT EXISTS(SELECT max_length
FROM sys.columns
WHERE columns.object_id = OBJECT_ID('WorkflowProcessInstancePersistence')
AND columns.name = 'ParameterName'
AND columns.max_length = 1800)
BEGIN
ALTER TABLE WorkflowProcessInstancePersistence
ALTER COLUMN ParameterName NVARCHAR(900) NOT NULL;
END

IF NOT EXISTS(SELECT *
FROM sys.indexes
WHERE name = 'IX_ProcessId_ParameterName'
AND object_id = OBJECT_ID('WorkflowProcessInstancePersistence'))
BEGIN
CREATE UNIQUE INDEX IX_ProcessId_ParameterName ON WorkflowProcessInstancePersistence (ProcessId, ParameterName);
END

IF NOT EXISTS(SELECT *
FROM sys.indexes
WHERE name = 'IX_ProcessId_IdentityId'
AND object_id = OBJECT_ID('WorkflowInbox'))
BEGIN
CREATE UNIQUE INDEX IX_ProcessId_IdentityId ON WorkflowInbox (ProcessId, IdentityId);
END

IF NOT EXISTS(SELECT max_length
FROM sys.columns
WHERE columns.object_id = OBJECT_ID('WorkflowProcessTimer')
AND columns.name = 'Name'
AND columns.max_length = 1800)
BEGIN
ALTER TABLE WorkflowProcessTimer
ALTER COLUMN Name NVARCHAR(900) NOT NULL;
END

IF NOT EXISTS(SELECT *
FROM sys.indexes
WHERE name = 'IX_ProcessId_Name'
AND object_id = OBJECT_ID('WorkflowProcessTimer'))
BEGIN
CREATE UNIQUE INDEX IX_ProcessId_Name ON WorkflowProcessTimer (ProcessId, Name);
END
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
Company: OptimaJet
Project: WorkflowEngine.NET Provider for MSSQL
Version: 13.3
Version: 14.1
File: DropPersistenceObjects.sql
*/

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
Company: OptimaJet
Project: WorkflowEngine.NET Provider for MSSQL and Azure SQL
Version: 13.3
Version: 14.1
File: CreatePersistenceObjects.sql
*/

Expand Down
Loading

0 comments on commit dc9cc64

Please sign in to comment.