Skip to content

Commit dc9cc64

Browse files
committed
WFE 14.1.0 (autocommit)
1 parent 83a44e2 commit dc9cc64

File tree

131 files changed

+827
-311
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

131 files changed

+827
-311
lines changed

Designer/workflowdesigner.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Directory.Build.props

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<Project>
22
<!-- Version -->
33
<PropertyGroup>
4-
<Version>13.3.1</Version>
5-
<AssemblyVersion>13.3.0</AssemblyVersion>
6-
<FileVersion>13.3.0</FileVersion>
4+
<Version>14.1.0</Version>
5+
<AssemblyVersion>14.1.0</AssemblyVersion>
6+
<FileVersion>14.1.0</FileVersion>
77
</PropertyGroup>
88
<!-- Build -->
99
<PropertyGroup>

Directory.Packages.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<ItemGroup>
77
<PackageVersion Include="ConfigureAwait.Fody" Version="3.3.1" />
88
<PackageVersion Include="Fody" Version="6.6.3" />
9-
<PackageVersion Include="WorkflowEngine.NETCore-Core" Version="13.3.1" />
10-
<PackageVersion Include="WorkflowEngine.NETCore-Migrator" Version="13.3.1" />
9+
<PackageVersion Include="WorkflowEngine.NETCore-Core" Version="14.1.0" />
10+
<PackageVersion Include="WorkflowEngine.NETCore-Migrator" Version="14.1.0" />
1111
</ItemGroup>
1212
<!-- Plugins -->
1313
<ItemGroup>

Providers/OptimaJet.Workflow.DbPersistence/OptimaJet.Workflow.MSSQL.deps.json

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
"targets": {
88
".NETStandard,Version=v2.0": {},
99
".NETStandard,Version=v2.0/": {
10-
"OptimaJet.Workflow.MSSQL/13.3.1": {
10+
"OptimaJet.Workflow.MSSQL/14.1.0": {
1111
"dependencies": {
1212
"Microsoft.Data.SqlClient": "5.2.0",
1313
"NETStandard.Library": "2.0.3",
14-
"WorkflowEngine.NETCore-Core": "13.3.1",
15-
"WorkflowEngine.NETCore-Migrator": "13.3.1",
16-
"OptimaJet.Workflow.Core": "13.3.0.0",
17-
"OptimaJet.Workflow.Migrator": "13.3.0.0"
14+
"WorkflowEngine.NETCore-Core": "14.1.0",
15+
"WorkflowEngine.NETCore-Migrator": "14.1.0",
16+
"OptimaJet.Workflow.Core": "14.1.0.0",
17+
"OptimaJet.Workflow.Migrator": "14.1.0.0"
1818
},
1919
"runtime": {
2020
"OptimaJet.Workflow.MSSQL.dll": {}
@@ -1683,7 +1683,7 @@
16831683
}
16841684
}
16851685
},
1686-
"WorkflowEngine.NETCore-Core/13.3.1": {
1686+
"WorkflowEngine.NETCore-Core/14.1.0": {
16871687
"dependencies": {
16881688
"Microsoft.CodeAnalysis.CSharp": "4.1.0",
16891689
"Microsoft.CodeAnalysis.CSharp.Scripting": "4.1.0",
@@ -1698,37 +1698,37 @@
16981698
"OptimaJet.Workflow.Core.dll": {}
16991699
}
17001700
},
1701-
"WorkflowEngine.NETCore-Migrator/13.3.1": {
1701+
"WorkflowEngine.NETCore-Migrator/14.1.0": {
17021702
"dependencies": {
17031703
"FluentMigrator": "5.2.0",
17041704
"FluentMigrator.Runner": "5.2.0",
17051705
"Microsoft.Extensions.DependencyInjection": "8.0.0",
1706-
"WorkflowEngine.NETCore-Core": "13.3.1"
1706+
"WorkflowEngine.NETCore-Core": "14.1.0"
17071707
},
17081708
"runtime": {
17091709
"OptimaJet.Workflow.Migrator.dll": {}
17101710
}
17111711
},
1712-
"OptimaJet.Workflow.Core/13.3.0.0": {
1712+
"OptimaJet.Workflow.Core/14.1.0.0": {
17131713
"runtime": {
17141714
"OptimaJet.Workflow.Core.dll": {
1715-
"assemblyVersion": "13.3.0.0",
1716-
"fileVersion": "13.3.0.0"
1715+
"assemblyVersion": "14.1.0.0",
1716+
"fileVersion": "14.1.0.0"
17171717
}
17181718
}
17191719
},
1720-
"OptimaJet.Workflow.Migrator/13.3.0.0": {
1720+
"OptimaJet.Workflow.Migrator/14.1.0.0": {
17211721
"runtime": {
17221722
"OptimaJet.Workflow.Migrator.dll": {
1723-
"assemblyVersion": "13.3.0.0",
1724-
"fileVersion": "13.3.0.0"
1723+
"assemblyVersion": "14.1.0.0",
1724+
"fileVersion": "14.1.0.0"
17251725
}
17261726
}
17271727
}
17281728
}
17291729
},
17301730
"libraries": {
1731-
"OptimaJet.Workflow.MSSQL/13.3.1": {
1731+
"OptimaJet.Workflow.MSSQL/14.1.0": {
17321732
"type": "project",
17331733
"serviceable": false,
17341734
"sha512": ""
@@ -2671,22 +2671,22 @@
26712671
"path": "thomaslevesque.weakevent/4.1.0",
26722672
"hashPath": "thomaslevesque.weakevent.4.1.0.nupkg.sha512"
26732673
},
2674-
"WorkflowEngine.NETCore-Core/13.3.1": {
2674+
"WorkflowEngine.NETCore-Core/14.1.0": {
26752675
"type": "project",
26762676
"serviceable": false,
26772677
"sha512": ""
26782678
},
2679-
"WorkflowEngine.NETCore-Migrator/13.3.1": {
2679+
"WorkflowEngine.NETCore-Migrator/14.1.0": {
26802680
"type": "project",
26812681
"serviceable": false,
26822682
"sha512": ""
26832683
},
2684-
"OptimaJet.Workflow.Core/13.3.0.0": {
2684+
"OptimaJet.Workflow.Core/14.1.0.0": {
26852685
"type": "reference",
26862686
"serviceable": false,
26872687
"sha512": ""
26882688
},
2689-
"OptimaJet.Workflow.Migrator/13.3.0.0": {
2689+
"OptimaJet.Workflow.Migrator/14.1.0.0": {
26902690
"type": "reference",
26912691
"serviceable": false,
26922692
"sha512": ""
Binary file not shown.

Providers/OptimaJet.Workflow.DbPersistence/SQL/CreatePersistenceObjects.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
Company: OptimaJet
33
Project: WorkflowEngine.NET Provider for MSSQL and Azure SQL
4-
Version: 13.3
4+
Version: 14.1
55
File: CreatePersistenceObjects.sql
66
77
*/
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
IF NOT EXISTS(SELECT DISTINCT 1
2+
FROM WorkflowProcessInstancePersistence
3+
WHERE LEN(ParameterName) > 900)
4+
BEGIN
5+
IF NOT EXISTS(SELECT DISTINCT 1 FROM WorkflowProcessTimer WHERE LEN(Name) > 900)
6+
BEGIN
7+
PRINT 'OK: No breaking changes detected'
8+
END
9+
ELSE
10+
BEGIN
11+
RAISERROR ('BREAKING CHANGES DETECTED: Some rows in the Name column in WorkflowProcessTimer table is too long. Please contact support [email protected].', 16, 1)
12+
END
13+
END
14+
ELSE
15+
BEGIN
16+
RAISERROR ('BREAKING CHANGES DETECTED: Some rows in the ParameterName column in WorkflowProcessInstancePersistence table is too long. Please contact support [email protected].', 16, 1)
17+
END
18+
19+
IF NOT EXISTS(SELECT max_length
20+
FROM sys.columns
21+
WHERE columns.object_id = OBJECT_ID('WorkflowProcessInstancePersistence')
22+
AND columns.name = 'ParameterName'
23+
AND columns.max_length = 1800)
24+
BEGIN
25+
ALTER TABLE WorkflowProcessInstancePersistence
26+
ALTER COLUMN ParameterName NVARCHAR(900) NOT NULL;
27+
END
28+
29+
IF NOT EXISTS(SELECT *
30+
FROM sys.indexes
31+
WHERE name = 'IX_ProcessId_ParameterName'
32+
AND object_id = OBJECT_ID('WorkflowProcessInstancePersistence'))
33+
BEGIN
34+
CREATE UNIQUE INDEX IX_ProcessId_ParameterName ON WorkflowProcessInstancePersistence (ProcessId, ParameterName);
35+
END
36+
37+
IF NOT EXISTS(SELECT *
38+
FROM sys.indexes
39+
WHERE name = 'IX_ProcessId_IdentityId'
40+
AND object_id = OBJECT_ID('WorkflowInbox'))
41+
BEGIN
42+
CREATE UNIQUE INDEX IX_ProcessId_IdentityId ON WorkflowInbox (ProcessId, IdentityId);
43+
END
44+
45+
IF NOT EXISTS(SELECT max_length
46+
FROM sys.columns
47+
WHERE columns.object_id = OBJECT_ID('WorkflowProcessTimer')
48+
AND columns.name = 'Name'
49+
AND columns.max_length = 1800)
50+
BEGIN
51+
ALTER TABLE WorkflowProcessTimer
52+
ALTER COLUMN Name NVARCHAR(900) NOT NULL;
53+
END
54+
55+
IF NOT EXISTS(SELECT *
56+
FROM sys.indexes
57+
WHERE name = 'IX_ProcessId_Name'
58+
AND object_id = OBJECT_ID('WorkflowProcessTimer'))
59+
BEGIN
60+
CREATE UNIQUE INDEX IX_ProcessId_Name ON WorkflowProcessTimer (ProcessId, Name);
61+
END

Providers/OptimaJet.Workflow.DbPersistence/SQL/DropPersistenceObjects.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
Company: OptimaJet
33
Project: WorkflowEngine.NET Provider for MSSQL
4-
Version: 13.3
4+
Version: 14.1
55
File: DropPersistenceObjects.sql
66
*/
77

Providers/OptimaJet.Workflow.DbPersistence/SQL/InitialWorkflowEngineSchema.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
Company: OptimaJet
33
Project: WorkflowEngine.NET Provider for MSSQL and Azure SQL
4-
Version: 13.3
4+
Version: 14.1
55
File: CreatePersistenceObjects.sql
66
*/
77

Providers/OptimaJet.Workflow.DbPersistence/Source/MSSQLProvider.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ public async Task<List<SchemeItem>> GetSchemesAsync(List<(string parameterName,S
294294
Scheme = sc.Scheme,
295295
CanBeInlined = sc.CanBeInlined,
296296
InlinedSchemes = sc.GetInlinedSchemes(),
297-
Tags = TagHelper.FromTagString(sc.Tags),
297+
Tags = TagHelper.FromTagStringForDatabase(sc.Tags)
298298
}).ToList();
299299
}
300300

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

10631063
public virtual async Task<List<Core.Model.WorkflowTimer>> GetTopTimersToExecuteAsync(int top)
10641064
{
1065+
if (top <= 0)
1066+
{
1067+
throw new ArgumentException(ArgumentExceptionMessages.ArgumentMustBePositive(nameof(top), top));
1068+
}
1069+
10651070
DateTime now = _runtime.RuntimeDateTimeNow;
10661071

10671072
using var connection = OpenConnection();

0 commit comments

Comments
 (0)