With Boot 2 and Batch 4 the default serializer was updated and thus if SCDF 2.x tries to read a Batch Execution Context from Pre Spring Batch 4.0 will fail. SCDF may need to be able to read both Jackson and XStream serialized contexts.
We were using XStreamExecutionContextStringSerializer for Pre Batch 4.0 apps for(SCDF 1.7.x and before) . Now that we are on Batch 4.0+ we use Jackson2ExecutionContextStringSerializer, which will not work for Pre Batch 4.0. We need to be able to read both.
With Boot 2 and Batch 4 the default serializer was updated and thus if SCDF 2.x tries to read a Batch Execution Context from Pre Spring Batch 4.0 will fail. SCDF may need to be able to read both Jackson and XStream serialized contexts.
Looking at lines: https://github.com/spring-cloud/spring-cloud-dataflow/blob/master/spring-cloud-dataflow-server-core/src/main/java/org/springframework/cloud/dataflow/server/batch/SimpleJobServiceFactoryBean.java#L218-L224
We were using XStreamExecutionContextStringSerializer for Pre Batch 4.0 apps for(SCDF 1.7.x and before) . Now that we are on Batch 4.0+ we use Jackson2ExecutionContextStringSerializer, which will not work for Pre Batch 4.0. We need to be able to read both.