Skip to content

Commit

Permalink
Merge pull request #217 from conductor-oss/workflow_ops
Browse files Browse the repository at this point in the history
Refactor WorkflowExecutor
  • Loading branch information
v1r3n authored Jul 22, 2024
2 parents 55a31af + 3b85d6c commit 4df0e80
Show file tree
Hide file tree
Showing 24 changed files with 2,108 additions and 2,226 deletions.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
import com.netflix.conductor.common.utils.TaskUtils;
import com.netflix.conductor.core.execution.StartWorkflowInput;
import com.netflix.conductor.core.execution.WorkflowExecutor;
import com.netflix.conductor.core.operation.StartWorkflowOperation;
import com.netflix.conductor.core.utils.JsonUtils;
import com.netflix.conductor.core.utils.ParametersUtils;
import com.netflix.conductor.metrics.Monitors;
Expand All @@ -46,17 +45,14 @@ public class SimpleActionProcessor implements ActionProcessor {
private final WorkflowExecutor workflowExecutor;
private final ParametersUtils parametersUtils;
private final JsonUtils jsonUtils;
private final StartWorkflowOperation startWorkflowOperation;

public SimpleActionProcessor(
WorkflowExecutor workflowExecutor,
ParametersUtils parametersUtils,
JsonUtils jsonUtils,
StartWorkflowOperation startWorkflowOperation) {
JsonUtils jsonUtils) {
this.workflowExecutor = workflowExecutor;
this.parametersUtils = parametersUtils;
this.jsonUtils = jsonUtils;
this.startWorkflowOperation = startWorkflowOperation;
}

public Map<String, Object> execute(
Expand Down Expand Up @@ -218,7 +214,7 @@ private Map<String, Object> startWorkflow(
startWorkflowInput.setEvent(event);
startWorkflowInput.setTaskToDomain(params.getTaskToDomain());

String workflowId = startWorkflowOperation.execute(startWorkflowInput);
String workflowId = workflowExecutor.startWorkflow(startWorkflowInput);

output.put("workflowId", workflowId);
LOGGER.debug(
Expand Down
Loading

0 comments on commit 4df0e80

Please sign in to comment.