Java Doc for Transition.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) 


java.lang.Object
   org.springframework.webflow.engine.AnnotatedObject
      org.springframework.webflow.engine.Transition

Transition
public class Transition extends AnnotatedObject implements TransitionDefinition(Code)
A path from one TransitionableState state to another State state .

When executed a transition takes a flow execution from its current state, called the source state, to another state, called the target state. A transition may become eligible for execution on the occurence of an Event from within a transitionable source state.

When an event occurs within this transition's source TransitionableState the determination of the eligibility of this transition is made by a TransitionCriteria object called the matching criteria. If the matching criteria returns true this transition is marked eligible for execution for that event.

Determination as to whether an eligible transition should be allowed to execute is made by a TransitionCriteria object called the execution criteria. If the execution criteria test fails this transition will roll back and reenter its source state. If the execution criteria test succeeds this transition will execute and take the flow to the transition's target state.

The target state of this transition is typically specified at configuration time in a static manner. If the target state of this transition needs to be calculated in a dynamic fashion at runtime configure a TargetStateResolver that supports such calculations.
See Also:   TransitionableState
See Also:   TransitionCriteria
See Also:   TargetStateResolver
author:
   Keith Donald
author:
   Erwin Vervaet



Field Summary
final protected  Loglogger
     Logger, for use in subclasses.

Constructor Summary
public  Transition(TargetStateResolver targetStateResolver)
     Create a new transition that always matches and always executes, transitioning to the target state calculated by the provided targetStateResolver.
public  Transition(TransitionCriteria matchingCriteria, TargetStateResolver targetStateResolver)
     Create a new transition that matches on the specified criteria, transitioning to the target state calculated by the provided targetStateResolver.

Method Summary
public  booleancanExecute(RequestContext context)
     Checks if this transition can complete its execution or should be rolled back, given the state of the flow execution request context.
public  ViewSelectionexecute(State sourceState, RequestControlContext context)
     Execute this state transition.
public  TransitionCriteriagetExecutionCriteria()
     Returns the criteria that determine whether or not this transition, once matched, should complete execution or should roll back.
public  StringgetId()
    
public  TransitionCriteriagetMatchingCriteria()
     Returns the criteria that determine whether or not this transition matches as eligible for execution.
public  StringgetTargetStateId()
    
public  TargetStateResolvergetTargetStateResolver()
     Returns this transition's target state resolver.
public  booleanmatches(RequestContext context)
     Checks if this transition is elligible for execution given the state of the provided flow execution request context.
public  voidsetExecutionCriteria(TransitionCriteria executionCriteria)
     Set the criteria that determine whether or not this transition, once matched, should complete execution or should roll back.
public  voidsetMatchingCriteria(TransitionCriteria matchingCriteria)
     Set the criteria that determine whether or not this transition matches as eligible for execution.
public  voidsetTargetStateResolver(TargetStateResolver targetStateResolver)
     Set this transition's target state resolver, to calculate what state to transition to when this transition is executed.
public  StringtoString()
    

Field Detail
logger
final protected Log logger(Code)
Logger, for use in subclasses.




Constructor Detail
Transition
public Transition(TargetStateResolver targetStateResolver)(Code)
Create a new transition that always matches and always executes, transitioning to the target state calculated by the provided targetStateResolver.
Parameters:
  targetStateResolver - the resolver of the target state of thistransition
See Also:   Transition.setMatchingCriteria(TransitionCriteria)
See Also:   Transition.setExecutionCriteria(TransitionCriteria)



Transition
public Transition(TransitionCriteria matchingCriteria, TargetStateResolver targetStateResolver)(Code)
Create a new transition that matches on the specified criteria, transitioning to the target state calculated by the provided targetStateResolver.
Parameters:
  matchingCriteria - the criteria for matching this transition
Parameters:
  targetStateResolver - the resolver of the target state of thistransition
See Also:   Transition.setExecutionCriteria(TransitionCriteria)




Method Detail
canExecute
public boolean canExecute(RequestContext context)(Code)
Checks if this transition can complete its execution or should be rolled back, given the state of the flow execution request context.
Parameters:
  context - the flow execution request context true if this transition can complete execution, false if itshould roll back



execute
public ViewSelection execute(State sourceState, RequestControlContext context) throws FlowExecutionException(Code)
Execute this state transition. Will only be called if the Transition.matches(RequestContext) method returns true for given context.
Parameters:
  context - the flow execution control context a view selection containing model and view information needed torender the results of the transition execution
throws:
  FlowExecutionException - when transition execution fails



getExecutionCriteria
public TransitionCriteria getExecutionCriteria()(Code)
Returns the criteria that determine whether or not this transition, once matched, should complete execution or should roll back. the transition execution criteria



getId
public String getId()(Code)



getMatchingCriteria
public TransitionCriteria getMatchingCriteria()(Code)
Returns the criteria that determine whether or not this transition matches as eligible for execution. the transition matching criteria



getTargetStateId
public String getTargetStateId()(Code)



getTargetStateResolver
public TargetStateResolver getTargetStateResolver()(Code)
Returns this transition's target state resolver.



matches
public boolean matches(RequestContext context)(Code)
Checks if this transition is elligible for execution given the state of the provided flow execution request context.
Parameters:
  context - the flow execution request context true if this transition should execute, false otherwise



setExecutionCriteria
public void setExecutionCriteria(TransitionCriteria executionCriteria)(Code)
Set the criteria that determine whether or not this transition, once matched, should complete execution or should roll back.
Parameters:
  executionCriteria - the transition execution criteria



setMatchingCriteria
public void setMatchingCriteria(TransitionCriteria matchingCriteria)(Code)
Set the criteria that determine whether or not this transition matches as eligible for execution.
Parameters:
  matchingCriteria - the transition matching criteria



setTargetStateResolver
public void setTargetStateResolver(TargetStateResolver targetStateResolver)(Code)
Set this transition's target state resolver, to calculate what state to transition to when this transition is executed.
Parameters:
  targetStateResolver - the target state resolver



toString
public String toString()(Code)



Fields inherited from org.springframework.webflow.engine.AnnotatedObject
final public static String CAPTION_PROPERTY(Code)(Java Doc)
final public static String DESCRIPTION_PROPERTY(Code)(Java Doc)

Methods inherited from org.springframework.webflow.engine.AnnotatedObject
public MutableAttributeMap getAttributeMap()(Code)(Java Doc)
public AttributeMap getAttributes()(Code)(Java Doc)
public String getCaption()(Code)(Java Doc)
public String getDescription()(Code)(Java Doc)
public void setCaption(String caption)(Code)(Java Doc)
public void setDescription(String description)(Code)(Java Doc)

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.