Skip to content

Use ExitStatus as parameter for Flowbuilder.on() method #5306

@chrc

Description

@chrc

Hello,

Expected Behavior

In this code

new JobBuilder("MY_JOB_NAME", jobRepository)
  ...
  .on(ExitStatus.COMPLETED.getExitCode()).to(myNextStep)
  ...
  .build(); 

add the possibility to use directly a ExitStatus type, to have:

new JobBuilder("MY_JOB_NAME", jobRepository)
  ...
  .on(ExitStatus.COMPLETED).to(myNextStep)
  ...
  .build(); 

Context

This is just a simply to use this Spring Batch class in a way that is consistent with the class Flowbuilder.

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions