Skip to content

Commit

Permalink
Merge pull request #229 from orkes-io/task_caching
Browse files Browse the repository at this point in the history
Task Execution Cache
  • Loading branch information
v1r3n authored Sep 26, 2023
2 parents b59bd2c + 3ed3d45 commit a3f53c0
Showing 1 changed file with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,12 @@ public void setTasks(List<WorkflowTask> tasks) {
@ProtoField(id = 29)
private String joinStatus;

@ProtoField(id = 30)
private Map<String, Object> cacheKey = new HashMap<>();

@ProtoField(id = 31)
private long cacheTTL;

/*
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 @@ -392,6 +398,22 @@ public void setScriptExpression(String expression) {
this.scriptExpression = expression;
}

public Map<String, Object> getCacheKey() {
return cacheKey;
}

public void setCacheKey(Map<String, Object> cacheKey) {
this.cacheKey = cacheKey;
}

public long getCacheTTL() {
return cacheTTL;
}

public void setCacheTTL(long cacheTTL) {
this.cacheTTL = cacheTTL;
}

/**
* @return the subWorkflow
*/
Expand Down

0 comments on commit a3f53c0

Please sign in to comment.