This section explores flow-executor configuration options.
Use the flow-execution-listeners
element to register listeners that observe the lifecycle of flow executions:
<flow-execution-listeners> <listener ref="securityListener"/> <listener ref="persistenceListener"/> </flow-execution-listeners>
You may also configure a listener to observe only certain flows:
<listener ref="securityListener" criteria="securedFlow1,securedFlow2"/>
Use the flow-execution-repository
element to tune flow execution persistence settings:
<flow-execution-repository max-executions="5" max-execution-snapshots="30" />
Tune the max-executions
attribute to place a cap on the number of flow executions that can be created per user session.