Java Doc for FlowExecutionListener.java in  » Workflow-Engines » spring-webflow-1.0.4 » org » springframework » webflow » execution » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Workflow Engines » spring webflow 1.0.4 » org.springframework.webflow.execution 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.springframework.webflow.execution.FlowExecutionListener

All known Subclasses:   org.springframework.webflow.execution.FlowExecutionListenerAdapter,
FlowExecutionListener
public interface FlowExecutionListener (Code)
Interface to be implemented by objects that wish to listen and respond to the lifecycle of FlowExecution flow executions .

An 'observer' that is very aspect like, allowing you to insert 'cross cutting' behavior at well-defined points within one or more well-defined flow execution lifecycles.

For example, one custom listener may apply security checks at the flow execution level, preventing a flow from starting or a state from entering if the curent user does not have the necessary permissions. Another listener may track flow execution navigation history to support bread crumbs. Another may perform auditing, or setup and tear down connections to a transactional resource.

Note that flow execution listeners are registered with a flow execution when that execution is created by a FlowExecutionFactory factory or restored by a org.springframework.webflow.execution.repository.FlowExecutionRepository . Typically a listener will not be registered with a flow execution at runtime, when the flow execution is already active.
See Also:   FlowDefinition
See Also:   StateDefinition
See Also:   FlowExecution
See Also:   RequestContext
See Also:   Event
See Also:   ViewSelection
author:
   Keith Donald
author:
   Erwin Vervaet





Method Summary
public  voideventSignaled(RequestContext context, Event event)
     Called when an event is signaled in the current state, but prior to any state transition.
public  voidexceptionThrown(RequestContext context, FlowExecutionException exception)
     Called when an exception is thrown during a flow execution, before the exception is handled by any registered FlowExecutionExceptionHandler handler .
public  voidpaused(RequestContext context, ViewSelection selectedView)
     Called when a flow execution is paused, for instance when it is waiting for user input (after event processing).
public  voidrequestProcessed(RequestContext context)
     Called when a client request has completed processing.
public  voidrequestSubmitted(RequestContext context)
     Called when any client request is submitted to manipulate this flow execution.
public  voidresumed(RequestContext context)
     Called after a flow execution is successfully reactivated after pause (but before event processing).
public  voidsessionCreated(RequestContext context, FlowSession session)
     Called after a new flow session has been created but before it starts.
public  voidsessionEnded(RequestContext context, FlowSession session, AttributeMap output)
     Called when a flow execution session ends.
public  voidsessionEnding(RequestContext context, FlowSession session, MutableAttributeMap output)
     Called when the active flow execution session has been asked to end but before it has ended.
public  voidsessionStarted(RequestContext context, FlowSession session)
     Called after a new flow session has started.
public  voidsessionStarting(RequestContext context, FlowDefinition definition, MutableAttributeMap input)
     Called to indicate a new flow definition session is about to be created and started.
public  voidstateEntered(RequestContext context, StateDefinition previousState, StateDefinition state)
     Called when a state transitions, after the transition occured.
public  voidstateEntering(RequestContext context, StateDefinition state)
     Called when a state transitions, after the transition is matched but before the transition occurs.



Method Detail
eventSignaled
public void eventSignaled(RequestContext context, Event event)(Code)
Called when an event is signaled in the current state, but prior to any state transition.
Parameters:
  context - the source of the event
Parameters:
  event - the event that occured



exceptionThrown
public void exceptionThrown(RequestContext context, FlowExecutionException exception)(Code)
Called when an exception is thrown during a flow execution, before the exception is handled by any registered FlowExecutionExceptionHandler handler .
Parameters:
  context - the source of the exception
Parameters:
  exception - the exception that occurred



paused
public void paused(RequestContext context, ViewSelection selectedView)(Code)
Called when a flow execution is paused, for instance when it is waiting for user input (after event processing).
Parameters:
  context - the source of the event
Parameters:
  selectedView - the view that will display



requestProcessed
public void requestProcessed(RequestContext context)(Code)
Called when a client request has completed processing.
Parameters:
  context - the source of the event



requestSubmitted
public void requestSubmitted(RequestContext context)(Code)
Called when any client request is submitted to manipulate this flow execution. This call happens before request processing.
Parameters:
  context - the source of the event



resumed
public void resumed(RequestContext context)(Code)
Called after a flow execution is successfully reactivated after pause (but before event processing).
Parameters:
  context - the source of the event



sessionCreated
public void sessionCreated(RequestContext context, FlowSession session)(Code)
Called after a new flow session has been created but before it starts. Useful for setting arbitrary attributes in the session before the flow starts.
Parameters:
  context - the source of the event
Parameters:
  session - the session that was created
since:
   1.0.2



sessionEnded
public void sessionEnded(RequestContext context, FlowSession session, AttributeMap output)(Code)
Called when a flow execution session ends. If the ended session was the root session of the flow execution, the entire flow execution also ends.
Parameters:
  context - the source of the event
Parameters:
  session - ending flow session
Parameters:
  output - final, unmodifiable output returned by the ended session



sessionEnding
public void sessionEnding(RequestContext context, FlowSession session, MutableAttributeMap output)(Code)
Called when the active flow execution session has been asked to end but before it has ended.
Parameters:
  context - the source of the event
Parameters:
  session - the current active session that is ending
Parameters:
  output - the flow output produced by the ending session, this mapmay be modified by this listener to affect the output returned



sessionStarted
public void sessionStarted(RequestContext context, FlowSession session)(Code)
Called after a new flow session has started. At this point the flow's start state has been entered and any other startup behaviors have been executed.
Parameters:
  context - the source of the event
Parameters:
  session - the session that was started



sessionStarting
public void sessionStarting(RequestContext context, FlowDefinition definition, MutableAttributeMap input)(Code)
Called to indicate a new flow definition session is about to be created and started. Called before the session is created. An exception may be thrown from this method to veto the start operation. Any type of runtime exception can be used for this purpose.
Parameters:
  context - the source of the event
Parameters:
  definition - the flow for which a new session is starting
Parameters:
  input - a mutable input map - attributes placed in this map areeligible for input mapping by the flow definition at startup



stateEntered
public void stateEntered(RequestContext context, StateDefinition previousState, StateDefinition state)(Code)
Called when a state transitions, after the transition occured.
Parameters:
  context - the source of the event
Parameters:
  previousState - from state of the transition
Parameters:
  state - to state of the transition



stateEntering
public void stateEntering(RequestContext context, StateDefinition state) throws EnterStateVetoException(Code)
Called when a state transitions, after the transition is matched but before the transition occurs.
Parameters:
  context - the source of the event
Parameters:
  state - the proposed state to transition to
throws:
  EnterStateVetoException - when entering the state is not allowed



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.