apache / apache/hop

[Bug]: After an import from PDI, the run configuration for workflow tasks are not set in a workflow

Open
#3,814 3 comments 1 reaction 0 assignees View on GitHub
awaiting triage Import P3
Dominant language
Java
Stars
1.5k
Forks
476
Avg merge
18h 33m
Merged PRs (30d)
204

Description

### Apache Hop version?

2.6, 2.7, 2.8

### Java version?

openjdk version "17.0.8" 2023-07-18

### Operating system

Windows

### What happened?

The import process for PDI does not set the run configuration for workflow tasks in a workflow.
When running an imported workflow with workflow actions an error occurs at each workflow action, because the line "local" is missing in the task. It gives the following error:

- ERROR: Error running action 'workflow' :
- ERROR: org.apache.hop.core.exception.HopException:
- You need to specify a workflow run configuration to execute this workflow
-
- at org.apache.hop.workflow.engine.WorkflowEngineFactory.createWorkflowEngine(WorkflowEngineFactory.java:43)
- at org.apache.hop.workflow.actions.workflow.ActionWorkflow.execute(ActionWorkflow.java:445)
- at org.apache.hop.workflow.Workflow.executeFromStart(Workflow.java:655)
- at org.apache.hop.workflow.Workflow.executeFromStart(Workflow.java:798)
- at org.apache.hop.workflow.Workflow.executeFromStart(Workflow.java:798)
- at org.apache.hop.workflow.Workflow.executeFromStart(Workflow.java:798)
- at org.apache.hop.workflow.Workflow.executeFromStart(Workflow.java:798)
- at org.apache.hop.workflow.Workflow.executeFromStart(Workflow.java:456)
- at org.apache.hop.workflow.Workflow.startExecution(Workflow.java:300)
- at org.apache.hop.workflow.engines.local.LocalWorkflowEngine.startExecution(LocalWorkflowEngine.java:249)
- at org.apache.hop.ui.hopgui.file.workflow.HopGuiWorkflowGraph.lambda$start$9(HopGuiWorkflowGraph.java:3683)
- at java.base/java.lang.Thread.run(Thread.java:833)

Right now, you have to edit each task and close it with OK to truly set the run configuration for the task.

### Issue Priority

Priority: 3

### Issue Component

Component: Import

Contributor guide

Open the contributing guide

Research direction

Start by reading WorkflowEngineFactory.java and ActionWorkflow.java at the reported stack-trace locations, then trace how the PDI import process creates workflow tasks. Verify the imported workflow XML and confirm that each workflow action has a local run configuration and executes without the reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.