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


org.springframework.webflow.engine.RequestControlContext

All known Subclasses:   org.springframework.webflow.engine.impl.RequestControlContextImpl,  org.springframework.webflow.test.MockRequestControlContext,
RequestControlContext
public interface RequestControlContext extends RequestContext(Code)
Mutable control interface used to manipulate an ongoing flow execution in the context of one client request. Primarily used internally by the various flow artifacts when they are invoked.

This interface acts as a facade for core definition constructs such as the central Flow and State classes, abstracting away details about the runtime execution machine defined in the org.springframework.webflow.engine.impl execution engine implementation package.

Note this type is not the same as the FlowExecutionContext . Objects of this type are request specific: they provide a control interface for manipulating exactly one flow execution locally from exactly one request. A FlowExecutionContext provides information about a single flow execution (conversation), and it's scope is not local to a specific request (or thread).
See Also:   org.springframework.webflow.engine.Flow
See Also:   org.springframework.webflow.engine.State
See Also:   org.springframework.webflow.execution.FlowExecution
See Also:   FlowExecutionContext
author:
   Keith Donald
author:
   Erwin Vervaet





Method Summary
public  FlowSessionendActiveFlowSession(MutableAttributeMap output)
     End the active flow session of the current flow execution.
public  ViewSelectionexecute(Transition transition)
     Execute this transition out of the current source state.
public  voidsetCurrentState(State state)
     Record the current state that has entered in the executing flow.
public  voidsetLastEvent(Event lastEvent)
     Record the last event signaled in the executing flow.
public  voidsetLastTransition(Transition lastTransition)
     Record the last transition that executed in the executing flow.
public  ViewSelectionsignalEvent(Event event)
     Signals the occurence of an event in the current state of this flow execution request context.
public  ViewSelectionstart(Flow flow, MutableAttributeMap input)
     Spawn a new flow session and activate it in the currently executing flow. Also transitions the spawned flow to its start state.



Method Detail
endActiveFlowSession
public FlowSession endActiveFlowSession(MutableAttributeMap output) throws IllegalStateException(Code)
End the active flow session of the current flow execution. This method should be called by clients that terminate flows, such as end states. The end() method of the flow involved in the flow execution will be called.
Parameters:
  output - output produced by the session that is eligible for mappingby a resuming parent flow the ended session
throws:
  IllegalStateException - when the flow execution is not active
See Also:   Flow.end(RequestControlContextMutableAttributeMap)



execute
public ViewSelection execute(Transition transition)(Code)
Execute this transition out of the current source state. Allows for privileged execution of an arbitrary transition.
Parameters:
  transition - the transition a new view selection
See Also:   Transition.execute(StateRequestControlContext)



setCurrentState
public void setCurrentState(State state)(Code)
Record the current state that has entered in the executing flow. This method will be called as part of entering a new state by the State type itself.
Parameters:
  state - the current state
See Also:   State.enter(RequestControlContext)



setLastEvent
public void setLastEvent(Event lastEvent)(Code)
Record the last event signaled in the executing flow. This method will be called as part of signaling an event in a flow to indicate the 'lastEvent' that was signaled.
Parameters:
  lastEvent - the last event signaled
See Also:   Flow.onEvent(RequestControlContext)



setLastTransition
public void setLastTransition(Transition lastTransition)(Code)
Record the last transition that executed in the executing flow. This method will be called as part of executing a transition from one state to another.
Parameters:
  lastTransition - the last transition that executed
See Also:   Transition.execute(StateRequestControlContext)



signalEvent
public ViewSelection signalEvent(Event event) throws FlowExecutionException(Code)
Signals the occurence of an event in the current state of this flow execution request context. This method should be called by clients that report internal event occurences, such as action states. The onEvent() method of the flow involved in the flow execution will be called.
Parameters:
  event - the event that occured the next selected view, which returns control to the client andrequests that a view be rendered with model data
throws:
  FlowExecutionException - if an exception was thrown within a stateof the flow during execution of this signalEvent operation
See Also:   Flow.onEvent(RequestControlContext)



start
public ViewSelection start(Flow flow, MutableAttributeMap input) throws FlowExecutionException(Code)
Spawn a new flow session and activate it in the currently executing flow. Also transitions the spawned flow to its start state. This method should be called by clients that wish to spawn new flows, such as subflow states.

This will start a new flow session in the current flow execution, which is already active.
Parameters:
  flow - the flow to start, its start() method will becalled
Parameters:
  input - initial contents of the newly created flow session (may benull, e.g. empty) the selected starting view, which returns control to the clientand requests that a view be rendered with model data
throws:
  FlowExecutionException - if an exception was thrown within a stateof the flow during execution of this start operation
See Also:   Flow.start(RequestControlContextMutableAttributeMap)




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