Java Doc for InteractionInstance.java in  » Web-Framework » argun » biz » hammurapi » web » interaction » 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 » Web Framework » argun » biz.hammurapi.web.interaction 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


biz.hammurapi.web.interaction.InteractionInstance

InteractionInstance
public class InteractionInstance extends InteractionInstanceImpl implements DataAccessObject,Visitable(Code)
Represents interaction instance.
author:
   Pavel Vlasov

Inner Class :public class StepInstance extends InteractionStepInstanceImpl implements Visitable,Comparable
Inner Class :public class TransitionInstance extends InteractionTransitionInstanceImpl


Constructor Summary
public  InteractionInstance()
    
public  InteractionInstance(boolean force)
    
public  InteractionInstance(ResultSet rs)
    

Method Summary
public  booleanaccept(Visitor visitor)
    
public  voidafter(Map context)
     Executes after code.
public  voidcompleted(Integer stepId, Map context, String userId)
     Marks step as completed, evaluates transitions from it and new step instances.
Parameters:
  stepId - Control step Id.
public  voiddelete()
    
public  InteractionFactory.InteractionDefinitiongetDefinition()
    
public  InteractionFactorygetFactory()
    
public  intgetNextSeqId()
    
public  StepInstancegetOwnerStep()
    
public synchronized  PropertySetgetProperties()
     Creates property set or retrieves it from the database.
public  ObjectgetProperty(String name)
     Convenience method to retrieve interaction instance properties.
public  StepInstancegetStep(String[] status)
     Traverses steps tree.
public  StepInstancegetStep(int id)
    
public  StepInstancegetStepByDefinitionName(String defName)
     Returns single step with given step definition name.
public  StepInstancegetStepByStatus(String status)
    
public  CollectiongetStepsByDefinitionName(String defName)
     Returns single step with given step definition name.
public  CollectiongetStepsByDefinitionNameAndStatus(String defName, String status)
     Returns steps with given step definition name and status. This method can be used in guards of transitions which shall navigate from multiple instances of one step to a single instance of another.
public  TransitionInstancegetTransition(int id)
    
public  voidinvalidate()
     Indicates that steps and transitions information shall be reloaded.
public  voidsetFactory(InteractionFactory factory)
    
public  voidsetSQLProcessor(SQLProcessor processor)
    
public  voidtoDom(Element holder)
    
public static  Collectiontokenize(Object obj)
     Converts object into collection of tokens according to the following rules: a) If object is Iterator then each next() return value becomes a token.
public  voidupdate()
    


Constructor Detail
InteractionInstance
public InteractionInstance()(Code)
Default constructor



InteractionInstance
public InteractionInstance(boolean force)(Code)



InteractionInstance
public InteractionInstance(ResultSet rs) throws SQLException(Code)




Method Detail
accept
public boolean accept(Visitor visitor)(Code)



after
public void after(Map context) throws HammurapiWebException(Code)
Executes after code.
Parameters:
  context - evaluation context. If 'false' then interaction instance does not get created.
throws:
  HammurapiWebException -



completed
public void completed(Integer stepId, Map context, String userId) throws SQLException, HammurapiWebException(Code)
Marks step as completed, evaluates transitions from it and new step instances.
Parameters:
  stepId - Control step Id. If this parameter is not equal to internal step id then interaction rewindsto this stepId if step with this ID is processed or throws exception if step with this id is not foundor is not in "completed" status.
throws:
  SQLException -



delete
public void delete() throws SQLException(Code)



getDefinition
public InteractionFactory.InteractionDefinition getDefinition() throws SQLException(Code)



getFactory
public InteractionFactory getFactory()(Code)



getNextSeqId
public int getNextSeqId()(Code)
Next sequential step id.



getOwnerStep
public StepInstance getOwnerStep() throws SQLException(Code)
Step instance of parent interaction which initiated this interaction
throws:
  SQLException -



getProperties
public synchronized PropertySet getProperties() throws SQLException(Code)
Creates property set or retrieves it from the database.
throws:
  SQLException -



getProperty
public Object getProperty(String name)(Code)
Convenience method to retrieve interaction instance properties.
Parameters:
  name -
throws:
  SQLException -



getStep
public StepInstance getStep(String[] status)(Code)
Traverses steps tree. The tree is constructed from root steps with steps activated by the root steps as children of respective steps.
Parameters:
  status - Array First available step with status equal to one of elements in the status array.



getStep
public StepInstance getStep(int id)(Code)



getStepByDefinitionName
public StepInstance getStepByDefinitionName(String defName) throws SQLException(Code)
Returns single step with given step definition name.
Parameters:
  defName -
throws:
  SQLException -



getStepByStatus
public StepInstance getStepByStatus(String status)(Code)
Returns first step in given status
Parameters:
  status -



getStepsByDefinitionName
public Collection getStepsByDefinitionName(String defName) throws SQLException(Code)
Returns single step with given step definition name.
Parameters:
  defName -
throws:
  SQLException -



getStepsByDefinitionNameAndStatus
public Collection getStepsByDefinitionNameAndStatus(String defName, String status) throws SQLException(Code)
Returns steps with given step definition name and status. This method can be used in guards of transitions which shall navigate from multiple instances of one step to a single instance of another.
Parameters:
  defName -
throws:
  SQLException -



getTransition
public TransitionInstance getTransition(int id) throws SQLException(Code)



invalidate
public void invalidate()(Code)
Indicates that steps and transitions information shall be reloaded.



setFactory
public void setFactory(InteractionFactory factory)(Code)



setSQLProcessor
public void setSQLProcessor(SQLProcessor processor) throws SQLException(Code)
Loads child objects



toDom
public void toDom(Element holder)(Code)



tokenize
public static Collection tokenize(Object obj)(Code)
Converts object into collection of tokens according to the following rules: a) If object is Iterator then each next() return value becomes a token. b) If object is Enumeration then each nextElement() return value becomes a token. c) If object is Boolean.FALSE then it is discarded d) Otherwise object per se becomes a token.
Parameters:
  obj -



update
public void update() throws SQLException(Code)
Updates step information in the database



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