Skip to content

Commit b64103b

Browse files
Merge branch 'master' into master
2 parents 106283b + 07243cd commit b64103b

File tree

395 files changed

+340
-1123
lines changed

Some content is hidden

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

395 files changed

+340
-1123
lines changed

src/WorkflowCore.DSL/Models/DefinitionSource.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
using System;
2-
using System.Collections.Generic;
3-
using System.Text;
42

53
namespace WorkflowCore.Models.DefinitionStorage
64
{

src/WorkflowCore.DSL/Models/Envelope.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
using System;
2-
using System.Collections.Generic;
3-
using System.Text;
42

53
namespace WorkflowCore.Models.DefinitionStorage
64
{

src/WorkflowCore.DSL/Models/v1/MappingSourceV1.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
using System;
2-
using System.Collections.Generic;
3-
using System.Text;
42

53
namespace WorkflowCore.Models.DefinitionStorage.v1
64
{

src/WorkflowCore.DSL/Models/v1/StepSourceV1.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using System;
22
using System.Collections.Generic;
33
using System.Dynamic;
4-
using System.Text;
54

65
namespace WorkflowCore.Models.DefinitionStorage.v1
76
{

src/WorkflowCore.DSL/ServiceCollectionExtensions.cs

-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
using System;
2-
using System.Collections.Generic;
32
using System.Linq;
4-
using System.Threading.Tasks;
5-
using Microsoft.Extensions.DependencyInjection;
63
using WorkflowCore.Interface;
74
using WorkflowCore.Services.DefinitionStorage;
85

src/WorkflowCore.DSL/Services/DefinitionLoader.cs

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
1-
using Newtonsoft.Json;
2-
using System;
1+
using System;
32
using System.Collections;
43
using System.Collections.Generic;
54
using System.Linq;
65
using System.Linq.Dynamic.Core;
76
using System.Linq.Expressions;
87
using System.Reflection;
9-
using System.Text;
108
using Newtonsoft.Json.Linq;
119
using WorkflowCore.Interface;
1210
using WorkflowCore.Models;
1311
using WorkflowCore.Primitives;
14-
using WorkflowCore.Models.DefinitionStorage;
1512
using WorkflowCore.Models.DefinitionStorage.v1;
1613
using WorkflowCore.Exceptions;
1714

@@ -250,7 +247,7 @@ private void AttachOutputs(StepSourceV1 source, Type dataType, Type stepType, Wo
250247
private void AttachOutcomes(StepSourceV1 source, Type dataType, WorkflowStep step)
251248
{
252249
if (!string.IsNullOrEmpty(source.NextStepId))
253-
step.Outcomes.Add(new ValueOutcome() { ExternalNextStepId = $"{source.NextStepId}" });
250+
step.Outcomes.Add(new ValueOutcome { ExternalNextStepId = $"{source.NextStepId}" });
254251

255252
var dataParameter = Expression.Parameter(dataType, "data");
256253
var outcomeParameter = Expression.Parameter(typeof(object), "outcome");

src/WorkflowCore/Exceptions/WorkflowDefinitionLoadException.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
using System;
2-
using System.Collections.Generic;
3-
using System.Text;
42

53
namespace WorkflowCore.Exceptions
64
{

src/WorkflowCore/Interface/IActivityController.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
using System;
2-
using System.Collections.Generic;
3-
using System.Text;
42
using System.Threading.Tasks;
53

64
namespace WorkflowCore.Interface

src/WorkflowCore/Interface/ICancellationProcessor.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
using System;
2-
using System.Collections.Generic;
3-
using System.Text;
42
using WorkflowCore.Models;
53

64
namespace WorkflowCore.Interface

src/WorkflowCore/Interface/ILifeCycleEventHub.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
using System;
2-
using System.Collections.Generic;
3-
using System.Text;
42
using System.Threading.Tasks;
53
using WorkflowCore.Models.LifeCycleEvents;
64

src/WorkflowCore/Interface/ILifeCycleEventPublisher.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
using System;
2-
using System.Collections.Generic;
3-
using System.Text;
42
using WorkflowCore.Models.LifeCycleEvents;
53

64
namespace WorkflowCore.Interface

src/WorkflowCore/Interface/ISearchIndex.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
using System;
2-
using System.Collections.Generic;
3-
using System.Text;
42
using System.Threading.Tasks;
53
using WorkflowCore.Models;
64
using WorkflowCore.Models.Search;

src/WorkflowCore/Interface/ISearchable.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System;
22
using System.Collections.Generic;
3-
using System.Text;
43

54
namespace WorkflowCore.Interface
65
{

src/WorkflowCore/Interface/IStepBuilder.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
using System;
2-
using System.Collections;
32
using System.Linq.Expressions;
43
using WorkflowCore.Models;
5-
using WorkflowCore.Primitives;
64

75
namespace WorkflowCore.Interface
86
{

src/WorkflowCore/Interface/IStepParameter.cs

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
using WorkflowCore.Interface;
2-
using WorkflowCore.Models;
3-
4-
namespace WorkflowCore.Interface
1+
namespace WorkflowCore.Interface
52
{
63
public interface IStepParameter
74
{

src/WorkflowCore/Interface/IWorkflowController.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
using System;
2-
using System.Collections.Generic;
3-
using System.Text;
42
using System.Threading.Tasks;
53

64
namespace WorkflowCore.Interface

src/WorkflowCore/Interface/IWorkflowErrorHandler.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System;
22
using System.Collections.Generic;
3-
using System.Text;
43
using WorkflowCore.Models;
54

65
namespace WorkflowCore.Interface

src/WorkflowCore/Models/ActionParameter.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
using System;
22
using System.Linq;
3-
using System.Linq.Expressions;
4-
using System.Reflection;
53
using WorkflowCore.Interface;
64

75
namespace WorkflowCore.Models

src/WorkflowCore/Models/ActivityResult.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
using System;
2-
using System.Collections.Generic;
3-
using System.Text;
42

53
namespace WorkflowCore.Models
64
{

src/WorkflowCore/Models/ExecutionPointerCollection.cs

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
using System.Collections;
33
using System.Collections.Generic;
44
using System.Linq;
5-
using System.Text;
65

76
namespace WorkflowCore.Models
87
{

src/WorkflowCore/Models/ExecutionResult.cs

+7-7
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public ExecutionResult(object outcome)
3535

3636
public static ExecutionResult Outcome(object value)
3737
{
38-
return new ExecutionResult()
38+
return new ExecutionResult
3939
{
4040
Proceed = true,
4141
OutcomeValue = value
@@ -44,7 +44,7 @@ public static ExecutionResult Outcome(object value)
4444

4545
public static ExecutionResult Next()
4646
{
47-
return new ExecutionResult()
47+
return new ExecutionResult
4848
{
4949
Proceed = true,
5050
OutcomeValue = null
@@ -53,7 +53,7 @@ public static ExecutionResult Next()
5353

5454
public static ExecutionResult Persist(object persistenceData)
5555
{
56-
return new ExecutionResult()
56+
return new ExecutionResult
5757
{
5858
Proceed = false,
5959
PersistenceData = persistenceData
@@ -62,7 +62,7 @@ public static ExecutionResult Persist(object persistenceData)
6262

6363
public static ExecutionResult Branch(List<object> branches, object persistenceData)
6464
{
65-
return new ExecutionResult()
65+
return new ExecutionResult
6666
{
6767
Proceed = false,
6868
PersistenceData = persistenceData,
@@ -72,7 +72,7 @@ public static ExecutionResult Branch(List<object> branches, object persistenceDa
7272

7373
public static ExecutionResult Sleep(TimeSpan duration, object persistenceData)
7474
{
75-
return new ExecutionResult()
75+
return new ExecutionResult
7676
{
7777
Proceed = false,
7878
SleepFor = duration,
@@ -82,7 +82,7 @@ public static ExecutionResult Sleep(TimeSpan duration, object persistenceData)
8282

8383
public static ExecutionResult WaitForEvent(string eventName, string eventKey, DateTime effectiveDate)
8484
{
85-
return new ExecutionResult()
85+
return new ExecutionResult
8686
{
8787
Proceed = false,
8888
EventName = eventName,
@@ -93,7 +93,7 @@ public static ExecutionResult WaitForEvent(string eventName, string eventKey, Da
9393

9494
public static ExecutionResult WaitForActivity(string activityName, object subscriptionData, DateTime effectiveDate)
9595
{
96-
return new ExecutionResult()
96+
return new ExecutionResult
9797
{
9898
Proceed = false,
9999
EventName = Event.EventTypeActivity,

src/WorkflowCore/Models/LifeCycleEvents/LifeCycleEvent.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
using System;
2-
using System.Collections.Generic;
3-
using System.Text;
42

53
namespace WorkflowCore.Models.LifeCycleEvents
64
{

src/WorkflowCore/Models/LifeCycleEvents/StepCompleted.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
using System;
2-
using System.Collections.Generic;
3-
using System.Text;
42

53
namespace WorkflowCore.Models.LifeCycleEvents
64
{

src/WorkflowCore/Models/LifeCycleEvents/StepStarted.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
using System;
2-
using System.Collections.Generic;
3-
using System.Text;
42

53
namespace WorkflowCore.Models.LifeCycleEvents
64
{

src/WorkflowCore/Models/LifeCycleEvents/WorkflowCompleted.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
using System;
2-
using System.Collections.Generic;
3-
using System.Text;
42

53
namespace WorkflowCore.Models.LifeCycleEvents
64
{

src/WorkflowCore/Models/LifeCycleEvents/WorkflowError.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
using System;
2-
using System.Collections.Generic;
3-
using System.Text;
42

53
namespace WorkflowCore.Models.LifeCycleEvents
64
{

src/WorkflowCore/Models/LifeCycleEvents/WorkflowResumed.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
using System;
2-
using System.Collections.Generic;
3-
using System.Text;
42

53
namespace WorkflowCore.Models.LifeCycleEvents
64
{

src/WorkflowCore/Models/LifeCycleEvents/WorkflowStarted.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
using System;
2-
using System.Collections.Generic;
3-
using System.Text;
42

53
namespace WorkflowCore.Models.LifeCycleEvents
64
{

src/WorkflowCore/Models/LifeCycleEvents/WorkflowSuspended.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
using System;
2-
using System.Collections.Generic;
3-
using System.Text;
42

53
namespace WorkflowCore.Models.LifeCycleEvents
64
{

src/WorkflowCore/Models/LifeCycleEvents/WorkflowTerminated.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
using System;
2-
using System.Collections.Generic;
3-
using System.Text;
42

53
namespace WorkflowCore.Models.LifeCycleEvents
64
{

src/WorkflowCore/Models/MemberMapParameter.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using System;
22
using System.Linq;
33
using System.Linq.Expressions;
4-
using System.Reflection;
54
using WorkflowCore.Interface;
65

76
namespace WorkflowCore.Models

src/WorkflowCore/Models/Search/Page.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System;
22
using System.Collections.Generic;
3-
using System.Text;
43

54
namespace WorkflowCore.Models.Search
65
{

0 commit comments

Comments
 (0)