Java Doc for ContextInstance.java in  » Workflow-Engines » jbpm-jpdl-3.2.2 » org » jbpm » context » exe » 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 » jbpm jpdl 3.2.2 » org.jbpm.context.exe 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jbpm.module.exe.ModuleInstance
      org.jbpm.context.exe.ContextInstance

ContextInstance
public class ContextInstance extends ModuleInstance (Code)
maintains all the key-variable pairs for a process instance. You can obtain a ContextInstance from a processInstance from a process instance like this :
 ProcessInstance processInstance = ...;
 ContextInstance contextInstance = processInstance.getContextInstance();
 
More information on context and process variableInstances can be found in the userguide, section context


Field Summary
protected  MaptokenVariableMaps
    
protected transient  MaptransientVariables
    
protected transient  ListupdatedVariableContainers
    

Constructor Summary
public  ContextInstance()
    

Method Summary
public  voidaddVariables(Map variables)
     adds all the variableInstances on the root-token (= process-instance scope).
public  voidaddVariables(Map variables, Token token)
     adds all the variableInstances to the scope of the given token.
 TokenVariableMapcreateTokenVariableMap(Token token)
    
public  voidcreateVariable(String name, Object value)
     creates a variable on the root-token (= process-instance scope) and calculates the actual VariableInstance-type from the value.
public  voidcreateVariable(String name, Object value, Token token)
     creates a variable in the scope of the given token and calculates the actual VariableInstance-type from the value.
public  voiddeleteTransientVariable(String name)
     removes the transient variable.
public  voiddeleteVariable(String name)
     deletes the given variable on the root-token (=process-instance scope).
public  voiddeleteVariable(String name, Token token)
     deletes a variable from the given token.
public  ObjectgetLocalVariable(String name, Token token)
     retrieves a variable which is local to the token. Method ContextInstance.getVariableLocally(String,Token) is the same as this method and it was added for naming consistency.
public  TokenVariableMapgetOrCreateTokenVariableMap(Token token)
     searches for the first token-variable-map for the given token and creates it on the root token if it doesn't exist.
 TokengetRootToken()
    
public  TokenVariableMapgetTokenVariableMap(Token token)
     looks for the first token-variable-map that is found up the token-parent hirarchy.
public  MapgetTokenVariableMaps()
    
public  ObjectgetTransientVariable(String name)
     retrieves the transient variable for the given name.
public  MapgetTransientVariables()
     retrieves all the transient variableInstances map.
public  ObjectgetVariable(String name)
     gets the variable with the given name on the root-token (= process-instance scope).
public  ObjectgetVariable(String name, Token token)
     retrieves a variable in the scope of the token.
public  VariableInstancegetVariableInstance(String name, Token token)
    
public  ObjectgetVariableLocally(String name, Token token)
     retrieves a variable which is local to the token. this method was added for naming consistency.
public  MapgetVariables()
     gets all the variableInstances on the root-token (= process-instance scope).
public  MapgetVariables(Token token)
     retrieves all the variableInstances in scope of the given token.
public  booleanhasTransientVariable(String name)
     tells if a transient variable with the given name is present.
public  booleanhasVariable(String name)
     checks if a variable is present with the given name on the root-token (= process-instance scope).
public  booleanhasVariable(String name, Token token)
     checks if a variable is present with the given name in the scope of the token.
public  voidsetTransientVariable(String name, Object value)
     sets the transient variable for the given name to the given value.
public  voidsetTransientVariables(Map transientVariables)
     replaces the transient variableInstances with the given map.
public  voidsetVariable(String name, Object value)
     sets a variable on the process instance scope.
public  voidsetVariable(String name, Object value, Token token)
     sets a variable.
public  voidsetVariableLocally(String name, Object value)
     sets the variable on the root token, creates the variable if necessary and calculates the actual VariableInstance-type from the value.
public  voidsetVariableLocally(String name, Object value, Token token)
     creates a variable in the scope of the given token and calculates the actual VariableInstance-type from the value.
public  voidsetVariables(Map variables)
     The method setVariables is the same as the ContextInstance.addVariables(Map,Token) , but it was added for more consistency.
public  voidsetVariables(Map variables, Token token)
     adds all the variableInstances to the scope of the given token.

Field Detail
tokenVariableMaps
protected Map tokenVariableMaps(Code)



transientVariables
protected transient Map transientVariables(Code)



updatedVariableContainers
protected transient List updatedVariableContainers(Code)




Constructor Detail
ContextInstance
public ContextInstance()(Code)




Method Detail
addVariables
public void addVariables(Map variables)(Code)
adds all the variableInstances on the root-token (= process-instance scope).



addVariables
public void addVariables(Map variables, Token token)(Code)
adds all the variableInstances to the scope of the given token. This method delegates to ContextInstance.setVariables(Map,Token) . The method setVariables was added for more consistency.



createTokenVariableMap
TokenVariableMap createTokenVariableMap(Token token)(Code)



createVariable
public void createVariable(String name, Object value)(Code)
creates a variable on the root-token (= process-instance scope) and calculates the actual VariableInstance-type from the value.



createVariable
public void createVariable(String name, Object value, Token token)(Code)
creates a variable in the scope of the given token and calculates the actual VariableInstance-type from the value.



deleteTransientVariable
public void deleteTransientVariable(String name)(Code)
removes the transient variable.



deleteVariable
public void deleteVariable(String name)(Code)
deletes the given variable on the root-token (=process-instance scope).



deleteVariable
public void deleteVariable(String name, Token token)(Code)
deletes a variable from the given token. For safety reasons, this method does not propagate the deletion to parent tokens in case the given token does not contain the variable.



getLocalVariable
public Object getLocalVariable(String name, Token token)(Code)
retrieves a variable which is local to the token. Method ContextInstance.getVariableLocally(String,Token) is the same as this method and it was added for naming consistency.



getOrCreateTokenVariableMap
public TokenVariableMap getOrCreateTokenVariableMap(Token token)(Code)
searches for the first token-variable-map for the given token and creates it on the root token if it doesn't exist.



getRootToken
Token getRootToken()(Code)



getTokenVariableMap
public TokenVariableMap getTokenVariableMap(Token token)(Code)
looks for the first token-variable-map that is found up the token-parent hirarchy.



getTokenVariableMaps
public Map getTokenVariableMaps()(Code)



getTransientVariable
public Object getTransientVariable(String name)(Code)
retrieves the transient variable for the given name.



getTransientVariables
public Map getTransientVariables()(Code)
retrieves all the transient variableInstances map. note that no deep copy is performed, changing the map leads to changes in the transient variableInstances of this context instance.



getVariable
public Object getVariable(String name)(Code)
gets the variable with the given name on the root-token (= process-instance scope).



getVariable
public Object getVariable(String name, Token token)(Code)
retrieves a variable in the scope of the token. If the given token does not have a variable for the given name, the variable is searched for up the token hierarchy.



getVariableInstance
public VariableInstance getVariableInstance(String name, Token token)(Code)



getVariableLocally
public Object getVariableLocally(String name, Token token)(Code)
retrieves a variable which is local to the token. this method was added for naming consistency. it is the same as ContextInstance.getLocalVariable(String,Token) .



getVariables
public Map getVariables()(Code)
gets all the variableInstances on the root-token (= process-instance scope).



getVariables
public Map getVariables(Token token)(Code)
retrieves all the variableInstances in scope of the given token.



hasTransientVariable
public boolean hasTransientVariable(String name)(Code)
tells if a transient variable with the given name is present.



hasVariable
public boolean hasVariable(String name)(Code)
checks if a variable is present with the given name on the root-token (= process-instance scope).



hasVariable
public boolean hasVariable(String name, Token token)(Code)
checks if a variable is present with the given name in the scope of the token.



setTransientVariable
public void setTransientVariable(String name, Object value)(Code)
sets the transient variable for the given name to the given value.



setTransientVariables
public void setTransientVariables(Map transientVariables)(Code)
replaces the transient variableInstances with the given map.



setVariable
public void setVariable(String name, Object value)(Code)
sets a variable on the process instance scope.



setVariable
public void setVariable(String name, Object value, Token token)(Code)
sets a variable. If a variable exists in the scope given by the token, that variable is updated. Otherwise, the variable is created on the root token (=process instance scope).



setVariableLocally
public void setVariableLocally(String name, Object value)(Code)
sets the variable on the root token, creates the variable if necessary and calculates the actual VariableInstance-type from the value.



setVariableLocally
public void setVariableLocally(String name, Object value, Token token)(Code)
creates a variable in the scope of the given token and calculates the actual VariableInstance-type from the value.



setVariables
public void setVariables(Map variables)(Code)
The method setVariables is the same as the ContextInstance.addVariables(Map,Token) , but it was added for more consistency.



setVariables
public void setVariables(Map variables, Token token)(Code)
adds all the variableInstances to the scope of the given token. The method setVariables is the same as the ContextInstance.addVariables(Map,Token) , but it was added for more consistency.



Fields inherited from org.jbpm.module.exe.ModuleInstance
protected ProcessInstance processInstance(Code)(Java Doc)

Methods inherited from org.jbpm.module.exe.ModuleInstance
public boolean equals(Object o)(Code)(Java Doc)
public long getId()(Code)(Java Doc)
public ProcessInstance getProcessInstance()(Code)(Java Doc)
protected Service getService(String serviceName)(Code)(Java Doc)
public void setProcessInstance(ProcessInstance processInstance)(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.