Details
-
Type:
New Feature
-
Status: Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 2.0.5
-
Fix Version/s: None
-
Component/s: Core: Flow Executor
-
Labels:None
-
Reference URL:
Description
While it is possible to set the maxConversations property on the FlowExecutor bean (which sets a property of the SessionBindingConversationManager) it is not possible to set the timeoutSeconds which configures the seconds it takes before the LockTimeoutException is thrown. So it would be nice to see something like below:
<webflow:flow-executor id="flowExecutor">
<webflow:flow-execution-repository max-executions="1" max-execution-snapshots="25" lock-timeout-seconds="15" />
</webflow:flow-executor>
The setting of the lock-timeout-seconds attribute will call the setter on the SessionBindingConversationManager in the createConversationManager-method of the FlowExecutorFactoryBean.
With the current build it is only possible to do this programmatically.
Thusly:
SessionBindingConversationManager sbcm=(SessionBindingConversationManager)ExternalContextHolder.getExternalContext().getSessionMap().getAttribute("webflowConversationContainer");
sbcm.setLockTimeoutSeconds(15);