Java Doc for FlowExecutionImpl.java in  » Workflow-Engines » spring-webflow-1.0.4 » org » springframework » webflow » engine » impl » 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.engine.impl 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.springframework.webflow.engine.impl.FlowExecutionImpl

FlowExecutionImpl
public class FlowExecutionImpl implements FlowExecution,Externalizable(Code)
Default implementation of FlowExecution that uses a stack-based data structure to manage spawned flow sessions. This class is closely coupled with package-private FlowSessionImpl and RequestControlContextImpl. The three classes work together to form a complete flow execution implementation based on a finite state machine.

This implementation of FlowExecution is serializable so it can be safely stored in an HTTP session or other persistent store such as a file, database, or client-side form field. Once deserialized, the FlowExecutionImplStateRestorer strategy is expected to be used to restore the execution to a usable state.
See Also:   FlowExecutionImplFactory
See Also:   FlowExecutionImplStateRestorer
author:
   Keith Donald
author:
   Erwin Vervaet
author:
   Ben Hale




Constructor Summary
public  FlowExecutionImpl()
     Default constructor required for externalizable serialization.
public  FlowExecutionImpl(Flow flow)
     Create a new flow execution executing the provided flow.
public  FlowExecutionImpl(Flow flow, FlowExecutionListener[] listeners, AttributeMap attributes)
     Create a new flow execution executing the provided flow.

Method Summary
protected  FlowSessionactivateSession(Flow flow)
     Activate a new FlowSession for the flow definition.
protected  RequestControlContextcreateControlContext(ExternalContext externalContext)
     Create a flow execution control context.
 FlowSessionImplcreateFlowSession(Flow flow, FlowSessionImpl parent)
     Create a new flow session object.
public  FlowSessionendActiveFlowSession()
     End the active flow session, popping it of the stack.
public  FlowSessiongetActiveSession()
    
 FlowSessionImplgetActiveSessionInternal()
     Returns the currently active flow session.
public  AttributeMapgetAttributes()
    
public  StringgetCaption()
    
public  MutableAttributeMapgetConversationScope()
    
public  FlowDefinitiongetDefinition()
    
 StringgetFlowId()
     Returns the flow definition id of this flow execution.
 LinkedListgetFlowSessions()
     Returns the list of flow session maintained by this flow execution.
 FlowExecutionListenersgetListeners()
     Returns the listener list.
 FlowSessionImplgetRootSession()
     Returns the flow session for the root flow of this flow execution.
 ListIteratorgetSubflowSessionIterator()
     Returns an iterator looping over the subflow sessions in this flow execution.
protected  ViewSelectionhandleException(FlowExecutionException exception, RequestControlContext context)
     Handles an exception that occured performing an operation on this flow execution.
 booleanhasSessions()
    
 booleanhasSubflowSessions()
    
public  booleanisActive()
    
protected  ViewSelectionpause(RequestControlContext context, ViewSelection selectedView)
     Pause this flow execution.
public  voidreadExternal(ObjectInput in)
    
public  ViewSelectionrefresh(ExternalContext externalContext)
    
protected  voidresume(RequestControlContext context)
     Resume this flow execution.
 voidsetAttributes(AttributeMap attributes)
     Restore the execution attributes of this flow execution.
 voidsetConversationScope(MutableAttributeMap conversationScope)
     Restore conversation scope for this flow execution.
protected  voidsetCurrentState(State newState)
     Set the state that is currently active in this flow execution.
 voidsetFlow(Flow flow)
     Restore the flow definition of this flow execution.
 voidsetListeners(FlowExecutionListeners listeners)
     Restore the listeners of this flow execution.
public  ViewSelectionsignalEvent(String eventId, ExternalContext externalContext)
    
public  ViewSelectionstart(MutableAttributeMap input, ExternalContext externalContext)
    
public  StringtoString()
    
public  voidwriteExternal(ObjectOutput out)
    


Constructor Detail
FlowExecutionImpl
public FlowExecutionImpl()(Code)
Default constructor required for externalizable serialization. Should NOT be called programmatically.



FlowExecutionImpl
public FlowExecutionImpl(Flow flow)(Code)
Create a new flow execution executing the provided flow. This constructor is mainly used for testing.
Parameters:
  flow - the root flow of this flow execution



FlowExecutionImpl
public FlowExecutionImpl(Flow flow, FlowExecutionListener[] listeners, AttributeMap attributes)(Code)
Create a new flow execution executing the provided flow.
Parameters:
  flow - the root flow of this flow execution
Parameters:
  listeners - the listeners interested in flow execution lifecycleevents
Parameters:
  attributes - flow execution system attributes




Method Detail
activateSession
protected FlowSession activateSession(Flow flow)(Code)
Activate a new FlowSession for the flow definition. Creates the new flow session and pushes it onto the stack.
Parameters:
  flow - the flow definition the new flow session



createControlContext
protected RequestControlContext createControlContext(ExternalContext externalContext)(Code)
Create a flow execution control context.
Parameters:
  externalContext - the external context triggering this request



createFlowSession
FlowSessionImpl createFlowSession(Flow flow, FlowSessionImpl parent)(Code)
Create a new flow session object. Subclasses can override this to return a special implementation if required.
Parameters:
  flow - the flow that should be associated with the flow session
Parameters:
  parent - the flow session that should be the parent of the newlycreated flow session (may be null) the newly created flow session



endActiveFlowSession
public FlowSession endActiveFlowSession()(Code)
End the active flow session, popping it of the stack. the ended session



getActiveSession
public FlowSession getActiveSession()(Code)



getActiveSessionInternal
FlowSessionImpl getActiveSessionInternal() throws IllegalStateException(Code)
Returns the currently active flow session.
throws:
  IllegalStateException - this execution is not active



getAttributes
public AttributeMap getAttributes()(Code)



getCaption
public String getCaption()(Code)



getConversationScope
public MutableAttributeMap getConversationScope()(Code)



getDefinition
public FlowDefinition getDefinition()(Code)



getFlowId
String getFlowId()(Code)
Returns the flow definition id of this flow execution.



getFlowSessions
LinkedList getFlowSessions()(Code)
Returns the list of flow session maintained by this flow execution.



getListeners
FlowExecutionListeners getListeners()(Code)
Returns the listener list. the attached execution listeners.



getRootSession
FlowSessionImpl getRootSession()(Code)
Returns the flow session for the root flow of this flow execution.



getSubflowSessionIterator
ListIterator getSubflowSessionIterator()(Code)
Returns an iterator looping over the subflow sessions in this flow execution.



handleException
protected ViewSelection handleException(FlowExecutionException exception, RequestControlContext context) throws FlowExecutionException(Code)
Handles an exception that occured performing an operation on this flow execution. First trys the set of exception handlers associated with the offending state, then the handlers at the flow level.
Parameters:
  exception - the exception that occured
Parameters:
  context - the request control context the exception occured in the selected error view, never null
throws:
  FlowExecutionException - rethrows the exception if it was not handledat the state or flow level



hasSessions
boolean hasSessions()(Code)
Are there any flow sessions in this flow execution?



hasSubflowSessions
boolean hasSubflowSessions()(Code)
Are there any sessions for sub flows in this flow execution?



isActive
public boolean isActive()(Code)



pause
protected ViewSelection pause(RequestControlContext context, ViewSelection selectedView)(Code)
Pause this flow execution.
Parameters:
  context - the request control context
Parameters:
  selectedView - the initial selected view to render the selected view to render



readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException(Code)



refresh
public ViewSelection refresh(ExternalContext externalContext) throws FlowExecutionException(Code)



resume
protected void resume(RequestControlContext context)(Code)
Resume this flow execution.
Parameters:
  context - the state request context



setAttributes
void setAttributes(AttributeMap attributes)(Code)
Restore the execution attributes of this flow execution.



setConversationScope
void setConversationScope(MutableAttributeMap conversationScope)(Code)
Restore conversation scope for this flow execution.



setCurrentState
protected void setCurrentState(State newState)(Code)
Set the state that is currently active in this flow execution.
Parameters:
  newState - the new current state



setFlow
void setFlow(Flow flow)(Code)
Restore the flow definition of this flow execution.



setListeners
void setListeners(FlowExecutionListeners listeners)(Code)
Restore the listeners of this flow execution.



signalEvent
public ViewSelection signalEvent(String eventId, ExternalContext externalContext) throws FlowExecutionException(Code)



start
public ViewSelection start(MutableAttributeMap input, ExternalContext externalContext) throws FlowExecutionException(Code)



toString
public String toString()(Code)



writeExternal
public void writeExternal(ObjectOutput out) throws IOException(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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