Date Value defined as "Now" (current date) makes the submit button not working

Hi all,

I have a very silly problem. When I try to initialize my date widget with the current Date (I tried Now in the Value field as well as creating a scripting variable returning new Date()), the form stops working when executing.

The field is not filled, when I click in the calendar, the current day is selected, I click on it and the field is then filled. But when I try to continue, an error occurs:

The error is the following:

INFO: unable to parse '0' to type java.util.Date org.apache.commons.beanutils.ConversionException: Error converting 'Integer' to 'Date' using patterns 'yyyy-MM-dd, yyyy-MM-dd'T'HH:mm:ss, yyyy-MM-dd'T'HH:mm:ss'Z', yyyy-MM-dd'T'HH:mm:ss.SSS'Z''

I suppose that the problem comes from the JSON form initialisation wich is by default: date : 0. It seems that bonita does not make the matching the initialized current date and the JSON field. But why does the error is not reproduced when I put in the Value field : formInput.trayInput.dateCreation?

I’m using Bonita BPM 7.1

Thank you in advance,

Mario

EDIT: The problem I mentionned seems to be bug that has been resolved in version Bonita BPM 7.3.1

try this
create new variable named
var name = now
var type = javascript expression
var value = return new Date();

its all