Hi,
I'm currently Migrating our application from SWF 1.0 to 2.0.5. And I'm now facing difficulty to accessing a flow execution from outside Spring Web Flow in 2.0.
Basically, I wish to add the data in flowMap into FlowExecution active session scope so that it can be carried by flow.
This is the sample code for SWF 1.0.
private final Map<String, Object> flowMap;
...
...
protected final String triggerEvent(final String pEventId) {
final FacesContext faces = FacesContext.getCurrentInstance();
final FlowExecutionHolder holder = FlowExecutionHolderUtils.getFlowExecutionHolder(fa ces);
for (final String k : this.flowMap.keySet()) {
holder.getFlowExecution().getActiveSession().getSc ope().put(k,this.flowMap.ge(k));
}
return pEventId;
}
However, in SWF 2.0.5, FlowExecutionHolderUtils has been removed.
Is there any other way that I can get the current FlowExecution via a standalone class?
Best Regards,
Jianhua


Reply With Quote
If you find yourselves looking for some bizarre crafty solution to a seemingly simple problem, don't blame the framework. Chances are, your design is a mess...
