Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcopperbeard authored Mar 29, 2021
2 parents 106283b + 07243cd commit b64103b
Show file tree
Hide file tree
Showing 395 changed files with 340 additions and 1,123 deletions.
2 changes: 0 additions & 2 deletions src/WorkflowCore.DSL/Models/DefinitionSource.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace WorkflowCore.Models.DefinitionStorage
{
Expand Down
2 changes: 0 additions & 2 deletions src/WorkflowCore.DSL/Models/Envelope.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace WorkflowCore.Models.DefinitionStorage
{
Expand Down
2 changes: 0 additions & 2 deletions src/WorkflowCore.DSL/Models/v1/MappingSourceV1.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace WorkflowCore.Models.DefinitionStorage.v1
{
Expand Down
1 change: 0 additions & 1 deletion src/WorkflowCore.DSL/Models/v1/StepSourceV1.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System;
using System.Collections.Generic;
using System.Dynamic;
using System.Text;

namespace WorkflowCore.Models.DefinitionStorage.v1
{
Expand Down
3 changes: 0 additions & 3 deletions src/WorkflowCore.DSL/ServiceCollectionExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
using WorkflowCore.Interface;
using WorkflowCore.Services.DefinitionStorage;

Expand Down
7 changes: 2 additions & 5 deletions src/WorkflowCore.DSL/Services/DefinitionLoader.cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
using Newtonsoft.Json;
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Dynamic.Core;
using System.Linq.Expressions;
using System.Reflection;
using System.Text;
using Newtonsoft.Json.Linq;
using WorkflowCore.Interface;
using WorkflowCore.Models;
using WorkflowCore.Primitives;
using WorkflowCore.Models.DefinitionStorage;
using WorkflowCore.Models.DefinitionStorage.v1;
using WorkflowCore.Exceptions;

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

var dataParameter = Expression.Parameter(dataType, "data");
var outcomeParameter = Expression.Parameter(typeof(object), "outcome");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace WorkflowCore.Exceptions
{
Expand Down
2 changes: 0 additions & 2 deletions src/WorkflowCore/Interface/IActivityController.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace WorkflowCore.Interface
Expand Down
2 changes: 0 additions & 2 deletions src/WorkflowCore/Interface/ICancellationProcessor.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;
using WorkflowCore.Models;

namespace WorkflowCore.Interface
Expand Down
2 changes: 0 additions & 2 deletions src/WorkflowCore/Interface/ILifeCycleEventHub.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using WorkflowCore.Models.LifeCycleEvents;

Expand Down
2 changes: 0 additions & 2 deletions src/WorkflowCore/Interface/ILifeCycleEventPublisher.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;
using WorkflowCore.Models.LifeCycleEvents;

namespace WorkflowCore.Interface
Expand Down
2 changes: 0 additions & 2 deletions src/WorkflowCore/Interface/ISearchIndex.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using WorkflowCore.Models;
using WorkflowCore.Models.Search;
Expand Down
1 change: 0 additions & 1 deletion src/WorkflowCore/Interface/ISearchable.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace WorkflowCore.Interface
{
Expand Down
2 changes: 0 additions & 2 deletions src/WorkflowCore/Interface/IStepBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using System;
using System.Collections;
using System.Linq.Expressions;
using WorkflowCore.Models;
using WorkflowCore.Primitives;

namespace WorkflowCore.Interface
{
Expand Down
5 changes: 1 addition & 4 deletions src/WorkflowCore/Interface/IStepParameter.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using WorkflowCore.Interface;
using WorkflowCore.Models;

namespace WorkflowCore.Interface
namespace WorkflowCore.Interface
{
public interface IStepParameter
{
Expand Down
2 changes: 0 additions & 2 deletions src/WorkflowCore/Interface/IWorkflowController.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace WorkflowCore.Interface
Expand Down
1 change: 0 additions & 1 deletion src/WorkflowCore/Interface/IWorkflowErrorHandler.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System;
using System.Collections.Generic;
using System.Text;
using WorkflowCore.Models;

namespace WorkflowCore.Interface
Expand Down
2 changes: 0 additions & 2 deletions src/WorkflowCore/Models/ActionParameter.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using System;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
using WorkflowCore.Interface;

namespace WorkflowCore.Models
Expand Down
2 changes: 0 additions & 2 deletions src/WorkflowCore/Models/ActivityResult.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace WorkflowCore.Models
{
Expand Down
1 change: 0 additions & 1 deletion src/WorkflowCore/Models/ExecutionPointerCollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WorkflowCore.Models
{
Expand Down
14 changes: 7 additions & 7 deletions src/WorkflowCore/Models/ExecutionResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public ExecutionResult(object outcome)

public static ExecutionResult Outcome(object value)
{
return new ExecutionResult()
return new ExecutionResult
{
Proceed = true,
OutcomeValue = value
Expand All @@ -44,7 +44,7 @@ public static ExecutionResult Outcome(object value)

public static ExecutionResult Next()
{
return new ExecutionResult()
return new ExecutionResult
{
Proceed = true,
OutcomeValue = null
Expand All @@ -53,7 +53,7 @@ public static ExecutionResult Next()

public static ExecutionResult Persist(object persistenceData)
{
return new ExecutionResult()
return new ExecutionResult
{
Proceed = false,
PersistenceData = persistenceData
Expand All @@ -62,7 +62,7 @@ public static ExecutionResult Persist(object persistenceData)

public static ExecutionResult Branch(List<object> branches, object persistenceData)
{
return new ExecutionResult()
return new ExecutionResult
{
Proceed = false,
PersistenceData = persistenceData,
Expand All @@ -72,7 +72,7 @@ public static ExecutionResult Branch(List<object> branches, object persistenceDa

public static ExecutionResult Sleep(TimeSpan duration, object persistenceData)
{
return new ExecutionResult()
return new ExecutionResult
{
Proceed = false,
SleepFor = duration,
Expand All @@ -82,7 +82,7 @@ public static ExecutionResult Sleep(TimeSpan duration, object persistenceData)

public static ExecutionResult WaitForEvent(string eventName, string eventKey, DateTime effectiveDate)
{
return new ExecutionResult()
return new ExecutionResult
{
Proceed = false,
EventName = eventName,
Expand All @@ -93,7 +93,7 @@ public static ExecutionResult WaitForEvent(string eventName, string eventKey, Da

public static ExecutionResult WaitForActivity(string activityName, object subscriptionData, DateTime effectiveDate)
{
return new ExecutionResult()
return new ExecutionResult
{
Proceed = false,
EventName = Event.EventTypeActivity,
Expand Down
2 changes: 0 additions & 2 deletions src/WorkflowCore/Models/LifeCycleEvents/LifeCycleEvent.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace WorkflowCore.Models.LifeCycleEvents
{
Expand Down
2 changes: 0 additions & 2 deletions src/WorkflowCore/Models/LifeCycleEvents/StepCompleted.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace WorkflowCore.Models.LifeCycleEvents
{
Expand Down
2 changes: 0 additions & 2 deletions src/WorkflowCore/Models/LifeCycleEvents/StepStarted.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace WorkflowCore.Models.LifeCycleEvents
{
Expand Down
2 changes: 0 additions & 2 deletions src/WorkflowCore/Models/LifeCycleEvents/WorkflowCompleted.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace WorkflowCore.Models.LifeCycleEvents
{
Expand Down
2 changes: 0 additions & 2 deletions src/WorkflowCore/Models/LifeCycleEvents/WorkflowError.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace WorkflowCore.Models.LifeCycleEvents
{
Expand Down
2 changes: 0 additions & 2 deletions src/WorkflowCore/Models/LifeCycleEvents/WorkflowResumed.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace WorkflowCore.Models.LifeCycleEvents
{
Expand Down
2 changes: 0 additions & 2 deletions src/WorkflowCore/Models/LifeCycleEvents/WorkflowStarted.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace WorkflowCore.Models.LifeCycleEvents
{
Expand Down
2 changes: 0 additions & 2 deletions src/WorkflowCore/Models/LifeCycleEvents/WorkflowSuspended.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace WorkflowCore.Models.LifeCycleEvents
{
Expand Down
2 changes: 0 additions & 2 deletions src/WorkflowCore/Models/LifeCycleEvents/WorkflowTerminated.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace WorkflowCore.Models.LifeCycleEvents
{
Expand Down
1 change: 0 additions & 1 deletion src/WorkflowCore/Models/MemberMapParameter.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
using WorkflowCore.Interface;

namespace WorkflowCore.Models
Expand Down
1 change: 0 additions & 1 deletion src/WorkflowCore/Models/Search/Page.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace WorkflowCore.Models.Search
{
Expand Down
Loading

0 comments on commit b64103b

Please sign in to comment.