Skip to content

Commit c4b7ab3

Browse files
authored
Merge pull request #175 from orkes-io/add_join_status
add join status
2 parents 08c6566 + 5427959 commit c4b7ab3

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

common/src/main/java/com/netflix/conductor/common/metadata/workflow/WorkflowTask.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,10 @@ public void setTasks(List<WorkflowTask> tasks) {
144144

145145
@ProtoField(id = 28)
146146
private String expression;
147+
148+
@ProtoField(id = 29)
149+
private String joinStatus;
150+
147151
/*
148152
Map of events to be emitted when the task status changed.
149153
key can be comma separated values of the status changes prefixed with "on"<STATUS>
@@ -545,6 +549,14 @@ public void setExpression(String expression) {
545549
this.expression = expression;
546550
}
547551

552+
public String getJoinStatus() {
553+
return joinStatus;
554+
}
555+
556+
public void setJoinStatus(String joinStatus) {
557+
this.joinStatus = joinStatus;
558+
}
559+
548560
private Collection<List<WorkflowTask>> children() {
549561
Collection<List<WorkflowTask>> workflowTaskLists = new LinkedList<>();
550562

@@ -737,6 +749,7 @@ && isOptional() == that.isOptional()
737749
&& Objects.equals(getForkTasks(), that.getForkTasks())
738750
&& Objects.equals(getSubWorkflowParam(), that.getSubWorkflowParam())
739751
&& Objects.equals(getJoinOn(), that.getJoinOn())
752+
&& Objects.equals(getJoinStatus(), that.getJoinStatus())
740753
&& Objects.equals(getSink(), that.getSink())
741754
&& Objects.equals(isAsyncComplete(), that.isAsyncComplete())
742755
&& Objects.equals(getDefaultExclusiveJoinTask(), that.getDefaultExclusiveJoinTask())
@@ -767,6 +780,7 @@ public int hashCode() {
767780
getStartDelay(),
768781
getSubWorkflowParam(),
769782
getJoinOn(),
783+
getJoinStatus(),
770784
getSink(),
771785
isAsyncComplete(),
772786
isOptional(),

grpc/src/main/java/com/netflix/conductor/grpc/AbstractProtoMapper.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1393,6 +1393,9 @@ public WorkflowTaskPb.WorkflowTask toProto(WorkflowTask from) {
13931393
if (from.getExpression() != null) {
13941394
to.setExpression( from.getExpression() );
13951395
}
1396+
if (from.getJoinStatus() != null) {
1397+
to.setJoinStatus( from.getJoinStatus() );
1398+
}
13961399
return to.build();
13971400
}
13981401

@@ -1438,6 +1441,7 @@ public WorkflowTask fromProto(WorkflowTaskPb.WorkflowTask from) {
14381441
to.setRetryCount( from.getRetryCount() );
14391442
to.setEvaluatorType( from.getEvaluatorType() );
14401443
to.setExpression( from.getExpression() );
1444+
to.setJoinStatus( from.getJoinStatus() );
14411445
return to;
14421446
}
14431447

grpc/src/main/proto/model/workflowtask.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,5 @@ message WorkflowTask {
4141
int32 retry_count = 26;
4242
string evaluator_type = 27;
4343
string expression = 28;
44+
string join_status = 29;
4445
}

0 commit comments

Comments
 (0)