Source:
public Map<String, String> getResourceConfigMap() { Map<String, String> cfgMap = new HashMap<String, String>(); cfgMap.put(JobConfigProperty.WorkflowID.name(), _workflow); if (_command != null) { cfgMap.put(JobConfigProperty.Command.name(), _command); } if (_jobCommandConfigMap != null) { String serializedConfig = TaskUtil.serializeJobCommandConfigMap(_jobCommandConfigMap); if (serializedConfig != null) { cfgMap.put(JobConfigProperty.JobCommandConfig.name(), serializedConfig); } } if (_targetResource != null) { cfgMap.put(JobConfigProperty.TargetResource.name(), _targetResource); } if (_targetPartitionStates != null) { cfgMap.put(JobConfigProperty.TargetPartitionStates.name(), Joiner.on(",").join(_targetPartitionStates)); } if (_targetPartitions != null) { cfgMap .put(JobConfigProperty.TargetPartitions.name(), Joiner.on(",").join(_targetPartitions)); } if (_retryDelay > 0) { cfgMap.put(JobConfigProperty.TaskRetryDelay.name(), "" + _retryDelay); } cfgMap.put(JobConfigProperty.TimeoutPerPartition.name(), "" + _timeoutPerTask); cfgMap.put(JobConfigProperty.MaxAttemptsPerTask.name(), "" + _maxAttemptsPerTask); cfgMap.put(JobConfigProperty.FailureThreshold.name(), "" + _failureThreshold); cfgMap.put(JobConfigProperty.DisableExternalView.name(), Boolean.toString(_disableExternalView)); cfgMap.put(JobConfigProperty.ConcurrentTasksPerInstance.name(), "" + _numConcurrentTasksPerInstance); cfgMap.put(JobConfigProperty.IgnoreDependentJobFailure.name(), Boolean.toString(_ignoreDependentJobFailure)); if (_jobType != null) { cfgMap.put(JobConfigProperty.JobType.name(), _jobType); } if (_instanceGroupTag != null) { cfgMap.put(JobConfigProperty.InstanceGroupTag.name(), _instanceGroupTag); } return cfgMap; }

Target:
public Map<String, String> getResourceConfigMap() { Map<String, String> cfgMap = new HashMap<String, String>(); cfgMap.put(JobConfigProperty.WorkflowID.name(), _workflow); if (_command != null) { cfgMap.put(JobConfigProperty.Command.name(), _command); } if (_jobCommandConfigMap != null) { String serializedConfig = TaskUtil.serializeJobCommandConfigMap(_jobCommandConfigMap); if (serializedConfig != null) { cfgMap.put(JobConfigProperty.JobCommandConfig.name(), serializedConfig); } } if (_targetResource != null) { cfgMap.put(JobConfigProperty.TargetResource.name(), _targetResource); } if (_targetPartitionStates != null) { cfgMap.put(JobConfigProperty.TargetPartitionStates.name(), Joiner.on(",").join(_targetPartitionStates)); } if (_targetPartitions != null) { cfgMap .put(JobConfigProperty.TargetPartitions.name(), Joiner.on(",").join(_targetPartitions)); } if (_retryDelay > 0) { cfgMap.put(JobConfigProperty.TaskRetryDelay.name(), "" + _retryDelay); } cfgMap.put(JobConfigProperty.TimeoutPerPartition.name(), "" + _timeoutPerTask); cfgMap.put(JobConfigProperty.MaxAttemptsPerTask.name(), "" + _maxAttemptsPerTask); cfgMap.put(JobConfigProperty.MaxForcedReassignmentsPerTask.name(), "" + _maxForcedReassignmentsPerTask); cfgMap.put(JobConfigProperty.FailureThreshold.name(), "" + _failureThreshold); cfgMap.put(JobConfigProperty.DisableExternalView.name(), Boolean.toString(_disableExternalView)); cfgMap.put(JobConfigProperty.ConcurrentTasksPerInstance.name(), "" + _numConcurrentTasksPerInstance); cfgMap.put(JobConfigProperty.IgnoreDependentJobFailure.name(), Boolean.toString(_ignoreDependentJobFailure)); if (_jobType != null) { cfgMap.put(JobConfigProperty.JobType.name(), _jobType); } if (_instanceGroupTag != null) { cfgMap.put(JobConfigProperty.InstanceGroupTag.name(), _instanceGroupTag); } return cfgMap; }