Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.
This repository was archived by the owner on May 14, 2025. It is now read-only.

Step Context section is not populated on the UI #5557

@sandeepbal1989

Description

@sandeepbal1989

Description:
When Something is added to the step context, it should appear in the STEP CONTEXT section within step execution details(Used to work on 2.10.3). But after upgrading to 2.11.1, this is not happening, however the BATCH_STEP_EXECUTION_CONTEXT already holds the data. So may be something in the SCDF-UI application is broken? Are we expecting a fix for this anytime soon?

Release versions:
Spring Cloud Data Flow 2.11.1

Custom apps:

public Job job() {
    return jobBuilderFactory.get("job")
          .flow(stepBuilderFactory.get("jobStep1")
          .tasklet(new Tasklet() { 
          @Override
          public RepeatStatus execute(StepContribution contribution, 
            ChunkContext chunkContext) throws Exception {
              contribution.getStepExecution().getExecutionContext().put("akshay", "step context");
            logger.info("Job was run");
            return RepeatStatus.FINISHED;
          }
    }).listener(new StepExecutionListener() {
        
        @Override
        public void beforeStep(StepExecution stepExecution) {
            // TODO Auto-generated method stub
            
        }
        
        @Override
        public ExitStatus afterStep(StepExecution stepExecution) {
            stepExecution.getExecutionContext().put("akshay2", "exec listener");
            return stepExecution.getExitStatus();
        }
    }).build()).build().build();
}

Steps to reproduce:
Used the target jar for the attached zip to register on scdf-2.11.1.
scdf-task-app.zip

Screenshots:
No Step Execution-Context SCDF-UI

Additional context:
tried by setting the attributed to step context by using JobBuilderfactory and also using execution Listener. Both of them didn't work.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions