You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and I adapted the job/step definition, but it didn't work. I got an exception saying that the method requires a bean of the type String that wasn't found. Then I defined a bean:
@Bean
public String stepName() {
return new String();
}
and the exception is gone. But I don't think that might be a solution.
Could you please advise ?
Many thanks in advance.
The text was updated successfully, but these errors were encountered:
Thought to also share my attempt (and thanks for raising an issue as I was about to do same thing)
I did pass the partitionhandler creation portion (at least it did not error out, and when adding a debugger message, it did get the step name). But faced a null pointer exception within the launchworker (like within your other issue #793)
@Bean
@StepScope
public PartitionHandler partitionHandler(TaskLauncher taskLauncher,
JobExplorer jobExplorer,
@Value("#{stepExecution}") StepExecution stepExecution) throws Exception {
// Then can reference name like
if(stepExecution.getStepName().equalsIgnoreCase("partitionReaderStep"))
{
...
}
Hello,
In the partitioned-batch-job project, the partitioned handler is created as follows:
How could I pass the step name, here "workerStep", as an input argument. I tried to modify the method like below:
and I adapted the job/step definition, but it didn't work. I got an exception saying that the method requires a bean of the type String that wasn't found. Then I defined a bean:
and the exception is gone. But I don't think that might be a solution.
Could you please advise ?
Many thanks in advance.
The text was updated successfully, but these errors were encountered: