Skip to content

Commit de5701c

Browse files
committed
remove successorids, tests
1 parent 2cd5978 commit de5701c

File tree

13 files changed

+9
-49
lines changed

13 files changed

+9
-49
lines changed

src/WorkflowCore/Models/ExecutionPointer.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,7 @@ public class ExecutionPointer
4242
public object Outcome { get; set; }
4343

4444
public PointerStatus Status { get; set; } = PointerStatus.Legacy;
45-
46-
public List<string> SuccessorIds { get; set; } = new List<string>();
47-
45+
4846
public Stack<string> Scope { get; set; } = new Stack<string>();
4947
}
5048

src/WorkflowCore/Services/ExecutionPointerFactory.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ public ExecutionPointer BuildStartingPointer(WorkflowDefinition def)
2525
public ExecutionPointer BuildNextPointer(WorkflowDefinition def, ExecutionPointer pointer, StepOutcome outcomeTarget)
2626
{
2727
var nextId = GenerateId();
28-
pointer.SuccessorIds.Add(nextId);
2928
return new ExecutionPointer()
3029
{
3130
Id = nextId,
@@ -62,7 +61,6 @@ public ExecutionPointer BuildChildPointer(WorkflowDefinition def, ExecutionPoint
6261
public ExecutionPointer BuildCompensationPointer(WorkflowDefinition def, ExecutionPointer pointer, ExecutionPointer exceptionPointer, int compensationStepId)
6362
{
6463
var nextId = GenerateId();
65-
exceptionPointer.SuccessorIds.Add(nextId);
6664
return new ExecutionPointer()
6765
{
6866
Id = nextId,

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,6 @@ internal static PersistedWorkflow ToPersistable(this WorkflowInstance instance,
6161
persistedEP.Outcome = JsonConvert.SerializeObject(ep.Outcome, SerializerSettings);
6262
persistedEP.Status = ep.Status;
6363

64-
persistedEP.SuccessorIds = string.Empty;
65-
foreach (var item in ep.SuccessorIds)
66-
persistedEP.SuccessorIds += item + ";";
67-
6864
persistedEP.Scope = string.Empty;
6965
foreach (var item in ep.Scope)
7066
persistedEP.Scope += item + ";";
@@ -174,9 +170,6 @@ internal static WorkflowInstance ToWorkflowInstance(this PersistedWorkflow insta
174170
pointer.Outcome = JsonConvert.DeserializeObject(ep.Outcome ?? string.Empty, SerializerSettings);
175171
pointer.Status = ep.Status;
176172

177-
if (!string.IsNullOrEmpty(ep.SuccessorIds))
178-
pointer.SuccessorIds = ep.SuccessorIds.Split(new[] { ';' }, StringSplitOptions.RemoveEmptyEntries).ToList();
179-
180173
if (!string.IsNullOrEmpty(ep.Scope))
181174
pointer.Scope = new Stack<string>(ep.Scope.Split(new[] { ';' }, StringSplitOptions.RemoveEmptyEntries));
182175

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,6 @@ public class PersistedExecutionPointer
6161

6262
public PointerStatus Status { get; set; } = PointerStatus.Legacy;
6363

64-
public string SuccessorIds { get; set; }
65-
6664
public string Scope { get; set; }
6765
}
6866
}

src/providers/WorkflowCore.Persistence.PostgreSQL/Migrations/20171223020844_StepScope.Designer.cs

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

src/providers/WorkflowCore.Persistence.PostgreSQL/Migrations/20171223020844_StepScope.cs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,7 @@ protected override void Up(MigrationBuilder migrationBuilder)
1919
schema: "wfc",
2020
table: "ExecutionPointer",
2121
nullable: false,
22-
defaultValue: 0);
23-
24-
migrationBuilder.AddColumn<string>(
25-
name: "SuccessorIds",
26-
schema: "wfc",
27-
table: "ExecutionPointer",
28-
nullable: true);
22+
defaultValue: 0);
2923
}
3024

3125
protected override void Down(MigrationBuilder migrationBuilder)
@@ -39,11 +33,7 @@ protected override void Down(MigrationBuilder migrationBuilder)
3933
name: "Status",
4034
schema: "wfc",
4135
table: "ExecutionPointer");
42-
43-
migrationBuilder.DropColumn(
44-
name: "SuccessorIds",
45-
schema: "wfc",
46-
table: "ExecutionPointer");
36+
4737
}
4838
}
4939
}

src/providers/WorkflowCore.Persistence.PostgreSQL/Migrations/PostgresPersistenceProviderModelSnapshot.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,6 @@ protected override void BuildModel(ModelBuilder modelBuilder)
122122
b.Property<string>("StepName")
123123
.HasMaxLength(100);
124124

125-
b.Property<string>("SuccessorIds");
126-
127125
b.Property<long>("WorkflowId");
128126

129127
b.HasKey("PersistenceId");

src/providers/WorkflowCore.Persistence.SqlServer/Migrations/20171223020645_StepScope.Designer.cs

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

src/providers/WorkflowCore.Persistence.SqlServer/Migrations/20171223020645_StepScope.cs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,7 @@ protected override void Up(MigrationBuilder migrationBuilder)
1919
schema: "wfc",
2020
table: "ExecutionPointer",
2121
nullable: false,
22-
defaultValue: 0);
23-
24-
migrationBuilder.AddColumn<string>(
25-
name: "SuccessorIds",
26-
schema: "wfc",
27-
table: "ExecutionPointer",
28-
nullable: true);
22+
defaultValue: 0);
2923
}
3024

3125
protected override void Down(MigrationBuilder migrationBuilder)
@@ -39,11 +33,7 @@ protected override void Down(MigrationBuilder migrationBuilder)
3933
name: "Status",
4034
schema: "wfc",
4135
table: "ExecutionPointer");
42-
43-
migrationBuilder.DropColumn(
44-
name: "SuccessorIds",
45-
schema: "wfc",
46-
table: "ExecutionPointer");
36+
4737
}
4838
}
4939
}

src/providers/WorkflowCore.Persistence.SqlServer/Migrations/SqlServerPersistenceProviderModelSnapshot.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,6 @@ protected override void BuildModel(ModelBuilder modelBuilder)
125125
b.Property<string>("StepName")
126126
.HasMaxLength(100);
127127

128-
b.Property<string>("SuccessorIds");
129-
130128
b.Property<long>("WorkflowId");
131129

132130
b.HasKey("PersistenceId");

0 commit comments

Comments
 (0)