AnsweredAssumed Answered

REST - Store a date

Question asked by krigu on Nov 27, 2011
Latest reply on Nov 28, 2011 by trademak
I have a formitem with a date type and I want to submit the date-value via the REST interface.. What I wonder now is how can i do that? I have checked the source and it seems that the REST-server stores every value different than "true" or "false" as a string. If I want to reuse the value after as a Date (use as Value for another date-formproperty in the next task) I get the following error :

java.lang.IllegalArgumentException: Cannot format given Object as a Date
   at java.text.DateFormat.format(
   at java.text.Format.format(
   at org.activiti.engine.impl.form.DateFormType.convertModelValueToFormValue(
   at org.activiti.engine.impl.form.FormPropertyHandler.createFormProperty(
   at org.activiti.engine.impl.form.DefaultFormHandler.initializeFormProperties(
   at org.activiti.engine.impl.form.DefaultTaskFormHandler.createTaskForm(
   at org.activiti.engine.impl.cmd.GetTaskFormCmd.execute(
   at org.activiti.engine.impl.cmd.GetTaskFormCmd.execute(
   at org.activiti.engine.impl.interceptor.CommandExecutorImpl.execute(
   at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(
   at org.activiti.engine.impl.interceptor.LogInterceptor.execute(
   at org.activiti.engine.impl.FormServiceImpl.getTaskFormData(
   at ch.ultrasoft.process.sanktion.Process.main(