Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7080857
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:50:48+00:00 2026-05-28T06:50:48+00:00

I have a issue regarding the exit code of the JobExecutionDecider when end on

  • 0

I have a issue regarding the exit code of the JobExecutionDecider when “end on” is invoked. I’m using the CommandLineJobRunner inside of a shell script where I get the exit code via $? which indicates the exit status of the called program. Problem is, whenever the JobExecutionDecider “end on” is invoked, the exit status is invariably set to 1 (failed). This is not the case when “end on” is invoked via a normal “step”. In those cases, the exit code is set appropriately (i.e. 0). I’ve tried manually setting the end on exit code to “COMPLETED” with the same results as show below.

Note that the decision is actually a “pre-step” and is the first thing executed by the job. In the case where the decision is made to end processing, there are no actual “steps” executed.

from the spring-config:

< job id="jobOne" />
 < decision id="myDecision" decider="myDecider">
  < end on="ABORT" exit-code="COMPLETED"/>
  < next on="CONTINUE" to="nextStep" />
 < /decision>

 < step id="stepOne" />
  < tasklet ref="myTasklet">
  ...

from the decider:

public FlowExecutionStatus decide(JobExecution jobEx, StepExecution arg1) {
   if (abortExecution()) 
     return new FlowExecutionStatus("ABORT");

 return new FlowExecutionStatus("CONTINUE");
}

Hope I’ve provided enough info. Any help would be appreciated. Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T06:50:49+00:00Added an answer on May 28, 2026 at 6:50 am

    the CommandLineJobRunner uses a SimpleJvmExitCodeMapper which in turn understands only

    • completed
    • failed
    • job not found

    and i’m almost sure the above configuration leaves the job with status UNKNOWN, this will be handled from the exitCodeMapper with a “don’t know this, i will return 1” (see .intValue() method)

    but you can provide your own CommandLineJobrunner (just extend the original one) and set an own implementation for the exitCodeMapper

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have issue regarding Paging using filterexpression. here's the piece of code for filtering
I have a strange issue, relating to running a BASH script via cron (invoked
I have an issue regarding sending form values to a script. I have a
I have some issue regarding display name of property in result of get request
I have an issue regarding conversion from float to c++ string using ostringstream. Here
I have an issue regarding an recursive count which works well in SQL server,
I have an issue regarding to auto populating a select dropdown from jQuery/JSON data
I have recently run into a particularly sticky issue regarding committing the result of
I have seen a few posts regarding this issue but not one specific to
Please help regarding the following issue. I have enabled the Block popup option in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.