Skip to content

Commit edf39c9

Browse files
committed
ref field
1 parent 1a7d9a9 commit edf39c9

File tree

21 files changed

+808
-206
lines changed

21 files changed

+808
-206
lines changed

ReleaseNotes/1.3.0.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Workflow Core 1.3.0
2+
3+
* Added support for async steps
4+
5+
Simply inherit from `StepBodyAsync` instead of `StepBody`
6+
7+
```c#
8+
public class DoSomething : StepBodyAsync
9+
{
10+
public override async Task<ExecutionResult> RunAsync(IStepExecutionContext context)
11+
{
12+
await Task.Delay(2000);
13+
return ExecutionResult.Next();
14+
}
15+
}
16+
```
17+
18+
* Migrated from managing own thread pool to TPL datablocks for queue consumers
19+
20+
* After executing a workflow, will determine if it is scheduled to run before the next poll, if so, will delay queue it

WorkflowCore.sln

Lines changed: 41 additions & 40 deletions
Large diffs are not rendered by default.

src/WorkflowCore/Models/WorkflowInstance.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ public class WorkflowInstance
1616

1717
public string Description { get; set; }
1818

19+
public string Reference { get; set; }
20+
1921
public List<ExecutionPointer> ExecutionPointers { get; set; } = new List<ExecutionPointer>();
2022

2123
public long? NextExecution { get; set; }

src/extensions/WorkflowCore.WebAPI/WorkflowCore.WebAPI.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
</ItemGroup>
2727

2828
<ItemGroup>
29-
<PackageReference Include="Microsoft.AspNetCore.Mvc.Abstractions" Version="1.1.2" />
30-
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="1.1.2" />
29+
<PackageReference Include="Microsoft.AspNetCore.Mvc.Abstractions" Version="1.1.3" />
30+
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="1.1.3" />
3131
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="1.1.1" />
3232
</ItemGroup>
3333

src/providers/WorkflowCore.Persistence.EntityFramework/ExtensionMethods.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ internal static PersistedWorkflow ToPersistable(this WorkflowInstance instance,
1919

2020
persistable.Data = JsonConvert.SerializeObject(instance.Data, SerializerSettings);
2121
persistable.Description = instance.Description;
22+
persistable.Reference = instance.Reference;
2223
persistable.InstanceId = new Guid(instance.Id);
2324
persistable.NextExecution = instance.NextExecution;
2425
persistable.Version = instance.Version;
@@ -118,6 +119,7 @@ internal static WorkflowInstance ToWorkflowInstance(this PersistedWorkflow insta
118119
WorkflowInstance result = new WorkflowInstance();
119120
result.Data = JsonConvert.DeserializeObject(instance.Data, SerializerSettings);
120121
result.Description = instance.Description;
122+
result.Reference = instance.Reference;
121123
result.Id = instance.InstanceId.ToString();
122124
result.NextExecution = instance.NextExecution;
123125
result.Version = instance.Version;

src/providers/WorkflowCore.Persistence.EntityFramework/Models/PersistedWorkflow.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ public class PersistedWorkflow
2424
[MaxLength(500)]
2525
public string Description { get; set; }
2626

27+
[MaxLength(200)]
28+
public string Reference { get; set; }
29+
2730
public virtual List<PersistedExecutionPointer> ExecutionPointers { get; set; } = new List<PersistedExecutionPointer>();
2831

2932
//[Index]

src/providers/WorkflowCore.Persistence.EntityFramework/WorkflowCore.Persistence.EntityFramework.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
</ItemGroup>
2929

3030
<ItemGroup>
31-
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="1.1.1" />
32-
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="1.1.1" />
33-
<PackageReference Include="Newtonsoft.Json" Version="9.0.1" />
31+
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="1.1.2" />
32+
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="1.1.2" />
33+
<PackageReference Include="Newtonsoft.Json" Version="10.0.3" />
3434
</ItemGroup>
3535

3636
</Project>

src/providers/WorkflowCore.Persistence.MongoDB/Services/MongoPersistenceProvider.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ static MongoPersistenceProvider()
3737
x.MapProperty(y => y.Data)
3838
.SetSerializer(new DataObjectSerializer());
3939
x.MapProperty(y => y.Description);
40+
x.MapProperty(y => y.Reference);
4041
x.MapProperty(y => y.WorkflowDefinitionId);
4142
x.MapProperty(y => y.Version);
4243
x.MapProperty(y => y.NextExecution);

src/providers/WorkflowCore.Persistence.MongoDB/WorkflowCore.Persistence.MongoDB.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
</ItemGroup>
2929

3030
<ItemGroup>
31-
<PackageReference Include="MongoDB.Driver" Version="2.4.3" />
32-
<PackageReference Include="Newtonsoft.Json" Version="9.0.1" />
31+
<PackageReference Include="MongoDB.Driver" Version="2.4.4" />
32+
<PackageReference Include="Newtonsoft.Json" Version="10.0.3" />
3333
<PackageReference Include="System.Linq.Dynamic.Core" Version="1.0.6.10" />
3434
</ItemGroup>
3535

src/providers/WorkflowCore.Persistence.PostgreSQL/Migrations/20170722200412_WfReference.Designer.cs

Lines changed: 259 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)