Fix parameters parsing in JobOperator and MetaDataInstanceFactory
Before this commit, the parsing of job parameters in JobOperator#start and MetaDataInstanceFactory#createJobExecution was accepting the comma separated key=value pairs format, which is incompatible with the new job parameters format introduced in v5. This commit updates the contract as well as the implementation of those APIs to be compatible with v5. Resolves #4253 Resolves #4301
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2006-2021 the original author or authors.
|
||||
* Copyright 2006-2023 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -112,7 +112,7 @@ public class MetaDataInstanceFactory {
|
||||
* @param jobName the name of the job
|
||||
* @param instanceId the Id of the {@link JobInstance}
|
||||
* @param executionId the id for the {@link JobExecution}
|
||||
* @param jobParameters comma or new line separated name=value pairs
|
||||
* @param jobParameters new line separated key=value pairs
|
||||
* @return a {@link JobExecution}
|
||||
*/
|
||||
public static JobExecution createJobExecution(String jobName, Long instanceId, Long executionId,
|
||||
|
||||
Reference in New Issue
Block a user