spring-cloud-dataflow icon indicating copy to clipboard operation
spring-cloud-dataflow copied to clipboard

Problem while define composed task with one condition

Open szopal opened this issue 2 years ago • 1 comments

I would like to define flow as below:

  1. Run first task task-cal
  2. If task-cal end with exitMessage PERMIT then run task-permit
  3. If task-cal end with any other status end CTR with task-cal status

image

And I when I launch this composed task, I have 2 scenario:

  1. If task-cal end with exitMessage PERMIT, then task-permit is launched and CTR end with status
  • if task-permit end with COMPLETED then CTR end as COMPLETED
  • if task-permit end with any other status (i.e. WARNING or something else than FAILED) CTR is always set FAILED status
  1. If task-cal end with exitMessage COMPLETED, then CTR end with status FAILED - I supposed that all composed task should end with task-permit exitMessage but composed task always end as FAILED.

I tried to create flow with conditional END state but SCDF show it as error:

image

So I add second state with no condition to END but SCDF create non existing task with name $END: image

and after launch I've got error that task $END not exists.

szopal avatar May 27 '22 12:05 szopal

The only workaround we can think of is to use a 'no-op' task, say something like the sample timestamp task. This will require a fair amount of changes to fix this bug, will schedule for a 2.10.x release.

markpollack avatar Jul 20 '22 16:07 markpollack