I just upgraded to PR3 and found what seems to be an incompatibility with PR2 that wasn't mentioned in any of the posts found here so far.
In PR2 I had a line in my views that set a hidden input tag with the name of "_currentStateId" to the value of ${flowExecution.currentStateId}. In PR3 the org.apache.velocity.app.VelocityEngine was throwing a warning that ${flowExecution.currentStateId} was not a valid reference. Looking at the source HTML for the generated page, I noticed that the page had indeed been generated without a proper value for _currentStateId.
I loaded up the source code for the FlowExecution class and noticed that there was no method in FlowExecution (or its parent FlowContext) that would allow such a reference as flowExecution.currentStateId to exist (such as getCurrentStateId()). However, I noticed a method called getCurrentState() that returns a State object. The State class has a method called getId().
So I am now using ${flowExecution.currentState.id} (notice the inserted "." and the lower case "i" that follows it) with success.
Did I find something that you missed or do I not have the whole picture?![]()


Reply With Quote
