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
We'v a job that requires a creationDate as date parameter.
While JobParamUtil checks for date parameters, the issue seems to be that the properties map is never filled with date properties as the deserializer treats them as string by default.
Did I miss any way to force a date or is this feature currently not supported?
The text was updated successfully, but these errors were encountered:
as you correctly stated, Date parameters which are specified when starting a job are currently provided as String parameters to the job since they are conveyed via the Map<String, Object> field in JobConfig. We rely on Jackson's default JSON deserialization, which is to convert ISO-formatted dates to Strings if the target type is an Object.
Without changing spring-batch-rest, here are two way how you could resolve this:
Change your jobs to accept both Date and String parameters. If a String parameter is supplied, you convert it to a Date.
We'v a job that requires a creationDate as date parameter.
While JobParamUtil checks for date parameters, the issue seems to be that the properties map is never filled with date properties as the deserializer treats them as string by default.
Did I miss any way to force a date or is this feature currently not supported?
The text was updated successfully, but these errors were encountered: