Skip to content

Commit

Permalink
Merge pull request #251 from manan164/start_workflow
Browse files Browse the repository at this point in the history
Start workflow with idempotency
  • Loading branch information
manan164 authored Dec 5, 2023
2 parents 8aa4253 + e80ac08 commit cab9bb1
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,26 @@ public class SubWorkflowParams {
@ProtoField(id = 4)
private Object workflowDefinition;

private String idempotencyKey;

private IdempotencyStrategy idempotencyStrategy;

public String getIdempotencyKey() {
return idempotencyKey;
}

public void setIdempotencyKey(String idempotencyKey) {
this.idempotencyKey = idempotencyKey;
}

public IdempotencyStrategy getIdempotencyStrategy() {
return idempotencyStrategy;
}

public void setIdempotencyStrategy(IdempotencyStrategy idempotencyStrategy) {
this.idempotencyStrategy = idempotencyStrategy;
}

/**
* @return the name
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2155,4 +2155,37 @@ public WorkflowModel jumpWorkflowExecutionToTask(

public void upgradeRunningWorkflowToVersion(
String workflowId, UpgradeWorkflowRequest upgradeWorkflowRequest) {}

public String startWorkflow(
String name,
Integer version,
Map<String, Object> workflowInput,
String externalInputPayloadStoragePath,
String correlationId,
Integer priority,
String parentWorkflowId,
String parentWorkflowTaskId,
String event,
Map<String, String> taskToDomain,
String createdBy,
String idempotencyKey,
IdempotencyStrategy idempotencyStrategy) {
return null;
}

public String startWorkflow(
WorkflowDef workflowDefinition,
Map<String, Object> workflowInput,
String externalInputPayloadStoragePath,
String correlationId,
Integer priority,
String parentWorkflowId,
String parentWorkflowTaskId,
String event,
Map<String, String> taskToDomain,
String createdBy,
String idempotencyKey,
IdempotencyStrategy idempotencyStrategy) {
return null;
}
}

0 comments on commit cab9bb1

Please sign in to comment.