use of org.apache.hop.ui.workflow.dialog.WorkflowExecutionConfigurationDialog in project hop by apache.
the class HopGuiWorkflowRunDelegate method executeWorkflow.
public void executeWorkflow(IVariables variables, WorkflowMeta workflowMeta, String startActionName) throws HopException {
if (workflowMeta == null) {
return;
}
WorkflowExecutionConfiguration executionConfiguration = getWorkflowExecutionConfiguration();
// Remember the variables set previously
//
Map<String, String> variableMap = new HashMap<>();
// the default
variableMap.putAll(executionConfiguration.getVariablesMap());
executionConfiguration.setVariablesMap(variableMap);
executionConfiguration.getUsedVariables(workflowMeta, variables);
executionConfiguration.setStartActionName(startActionName);
executionConfiguration.setLogLevel(DefaultLogLevel.getLogLevel());
WorkflowExecutionConfigurationDialog dialog = newWorkflowExecutionConfigurationDialog(executionConfiguration, workflowMeta);
if (!workflowMeta.isShowDialog() || dialog.open()) {
workflowGraph.workflowLogDelegate.addWorkflowLog();
ExtensionPointHandler.callExtensionPoint(LogChannel.UI, workflowGraph.getVariables(), HopExtensionPoint.HopGuiWorkflowExecutionConfiguration.id, executionConfiguration);
workflowGraph.start(executionConfiguration);
}
}
Aggregations