Skip to content

Commit

Permalink
Merge pull request #175 from orkes-io/add_join_status
Browse files Browse the repository at this point in the history
add join status
  • Loading branch information
v1r3n authored May 1, 2023
2 parents 08c6566 + 5427959 commit c4b7ab3
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ public void setTasks(List<WorkflowTask> tasks) {

@ProtoField(id = 28)
private String expression;

@ProtoField(id = 29)
private String joinStatus;

/*
Map of events to be emitted when the task status changed.
key can be comma separated values of the status changes prefixed with "on"<STATUS>
Expand Down Expand Up @@ -545,6 +549,14 @@ public void setExpression(String expression) {
this.expression = expression;
}

public String getJoinStatus() {
return joinStatus;
}

public void setJoinStatus(String joinStatus) {
this.joinStatus = joinStatus;
}

private Collection<List<WorkflowTask>> children() {
Collection<List<WorkflowTask>> workflowTaskLists = new LinkedList<>();

Expand Down Expand Up @@ -737,6 +749,7 @@ && isOptional() == that.isOptional()
&& Objects.equals(getForkTasks(), that.getForkTasks())
&& Objects.equals(getSubWorkflowParam(), that.getSubWorkflowParam())
&& Objects.equals(getJoinOn(), that.getJoinOn())
&& Objects.equals(getJoinStatus(), that.getJoinStatus())
&& Objects.equals(getSink(), that.getSink())
&& Objects.equals(isAsyncComplete(), that.isAsyncComplete())
&& Objects.equals(getDefaultExclusiveJoinTask(), that.getDefaultExclusiveJoinTask())
Expand Down Expand Up @@ -767,6 +780,7 @@ public int hashCode() {
getStartDelay(),
getSubWorkflowParam(),
getJoinOn(),
getJoinStatus(),
getSink(),
isAsyncComplete(),
isOptional(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1393,6 +1393,9 @@ public WorkflowTaskPb.WorkflowTask toProto(WorkflowTask from) {
if (from.getExpression() != null) {
to.setExpression( from.getExpression() );
}
if (from.getJoinStatus() != null) {
to.setJoinStatus( from.getJoinStatus() );
}
return to.build();
}

Expand Down Expand Up @@ -1438,6 +1441,7 @@ public WorkflowTask fromProto(WorkflowTaskPb.WorkflowTask from) {
to.setRetryCount( from.getRetryCount() );
to.setEvaluatorType( from.getEvaluatorType() );
to.setExpression( from.getExpression() );
to.setJoinStatus( from.getJoinStatus() );
return to;
}

Expand Down
1 change: 1 addition & 0 deletions grpc/src/main/proto/model/workflowtask.proto
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,5 @@ message WorkflowTask {
int32 retry_count = 26;
string evaluator_type = 27;
string expression = 28;
string join_status = 29;
}

0 comments on commit c4b7ab3

Please sign in to comment.