spring-cloud-dataflow
spring-cloud-dataflow copied to clipboard
Problem while define composed task with one condition
I would like to define flow as below:
- Run first task task-cal
- If task-cal end with exitMessage PERMIT then run task-permit
- If task-cal end with any other status end CTR with task-cal status
And I when I launch this composed task, I have 2 scenario:
- 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
- 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:
So I add second state with no condition to END but SCDF create non existing task with name $END:
and after launch I've got error that task $END not exists.
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.