Don't create task instance unit the user send the request.
Hope it ca help you!
if I don't create task instance, how can I get the instance variables ?
Did anybody know? any idea?
I concur, this shoudl be fixed, because we noticed real quick that we would go to the page, not really want to start the task leave, and we would have a started, empty task, that was just taking aspot for no reason.
It doesnt look like it was that hard to fix, there is a function in ParticipantBean that starts it, and then a function in TaskBean that saves/ends it.
If we can move most of the logic from the first to the second it should work.
You dont have to worry about the variables, cause you only need them when you save, and when you save, teh first thing you can do is create the task instance.
So the only real thing to do, is make sure you can get access to the initial form.
This may have changed in in the newest version, that David is working on though.