|
24 | 24 | import org.opensearch.core.xcontent.NamedXContentRegistry;
|
25 | 25 | import org.opensearch.env.Environment;
|
26 | 26 | import org.opensearch.env.NodeEnvironment;
|
27 |
| -import org.opensearch.flowframework.indices.GlobalContextHandler; |
| 27 | +import org.opensearch.flowframework.indices.FlowFrameworkIndicesHandler; |
28 | 28 | import org.opensearch.flowframework.rest.RestCreateWorkflowAction;
|
29 | 29 | import org.opensearch.flowframework.rest.RestProvisionWorkflowAction;
|
30 | 30 | import org.opensearch.flowframework.transport.CreateWorkflowAction;
|
31 | 31 | import org.opensearch.flowframework.transport.CreateWorkflowTransportAction;
|
32 | 32 | import org.opensearch.flowframework.transport.ProvisionWorkflowAction;
|
33 | 33 | import org.opensearch.flowframework.transport.ProvisionWorkflowTransportAction;
|
34 |
| -import org.opensearch.flowframework.workflow.CreateIndexStep; |
35 | 34 | import org.opensearch.flowframework.workflow.WorkflowProcessSorter;
|
36 | 35 | import org.opensearch.flowframework.workflow.WorkflowStepFactory;
|
37 | 36 | import org.opensearch.plugins.ActionPlugin;
|
@@ -79,10 +78,9 @@ public Collection<Object> createComponents(
|
79 | 78 | WorkflowStepFactory workflowStepFactory = new WorkflowStepFactory(clusterService, client);
|
80 | 79 | WorkflowProcessSorter workflowProcessSorter = new WorkflowProcessSorter(workflowStepFactory, threadPool);
|
81 | 80 |
|
82 |
| - // TODO : Refactor, move system index creation/associated methods outside of the CreateIndexStep |
83 |
| - GlobalContextHandler globalContextHandler = new GlobalContextHandler(client, new CreateIndexStep(clusterService, client)); |
| 81 | + FlowFrameworkIndicesHandler flowFrameworkIndicesHandler = new FlowFrameworkIndicesHandler(client, clusterService); |
84 | 82 |
|
85 |
| - return ImmutableList.of(workflowStepFactory, workflowProcessSorter, globalContextHandler); |
| 83 | + return ImmutableList.of(workflowStepFactory, workflowProcessSorter, flowFrameworkIndicesHandler); |
86 | 84 | }
|
87 | 85 |
|
88 | 86 | @Override
|
|
0 commit comments