03-08-2012 07:23 PM
I have the following code to create a value in the due date field of a create task automation element.
@{CurrentDate.seconds(expr:@{Timeout}).format("yyyy-MM-dd'T'kk:mm:ss'Z'")}
Timeout is a context variable initialized, with an environment property, in the line above the create task.
I get the following error:
Caused by: [Error: [Error: reference to undefined interceptor: {Timeout}] [Near : {... at("yyyy-MM-dd'T'kk:mm:ss'Z'" ....}]
I've also tried:
@{CurrentDate.seconds(@{Timeout}).format("yyyy-MM-dd'T'kk:mm:ss'Z'")}
and
@{CurrentDate.seconds(@{Env["my.environment.property"]).format("yyyy-MM-dd'T'kk:mm:ss'Z'")}
using no context variable and obtain the same result.
If I use:
@{CurrentDate.seconds(600).format("yyyy-MM-dd'T'kk:mm:ss'Z'")}
it works and if I place
@{Env["my.environment.property"]}
in the comment field of the create task I get my timeout value from the nuxeo.conf file in the task listing.
Are my problems syntax? Something else?
03-12-2012 02:48 PM
Can you try this ?
@{CurrentDate.seconds(new java.lang.Integer(Env["my.environment.property"])).format("yyyy-MM-dd'T'kk:mm:ss'Z'")}
I'm not sure but I think this is your problem.
You give a string and the seconds methods waiting an integer. But sorry if doesn't work.
03-12-2012 02:48 PM
Can you try this ?
@{CurrentDate.seconds(new java.lang.Integer(Env["my.environment.property"])).format("yyyy-MM-dd'T'kk:mm:ss'Z'")}
I'm not sure but I think this is your problem.
You give a string and the seconds methods waiting an integer. But sorry if doesn't work.
03-12-2012 04:05 PM
It works!
03-14-2012 07:21 AM
Can you think to validate your answers, like that this easier for the community to answer and know which question are not answered.
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.