In an IvyScriptStep variables are auto initialized as soon as they are accessed. The following code will log "bad":
It looks like the object "date" will never be a java.util.Date, it is an IvyDate. There is also no chance to import java.util.Date because of a conflict. asked 06.11.2013 at 14:42 Adrian Imfeld Reguel Werme... ♦♦ |
IvyScript auto initialise default types like:
link
This answer is marked "community wiki".
answered 08.11.2013 at 15:43 Flavio Sadeghi ♦♦ |
A simple solution is to transfer the code to a handler class and call the methode from the IvyScript-Step. If you still want the code in a ScriptStep, you could do the following:
answered 06.11.2013 at 14:45 Adrian Imfeld |
Once you sign in you will be able to subscribe for any updates here
By RSS:Markdown Basics
Tags:
Asked: 06.11.2013 at 14:42
Seen: 5,755 times
Last updated: 08.11.2013 at 15:43