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


java.lang.Object
   org.jbpm.graph.exe.Token

Token
public class Token implements Serializable(Code)
represents one path of execution and maintains a pointer to a node in the org.jbpm.graph.def.ProcessDefinition . Most common way to get a hold of the token objects is with ProcessInstance.getRootToken or org.jbpm.graph.exe.ProcessInstance.findToken(String) .


Field Summary
protected  Mapchildren
    
protected  Listcomments
    
protected  Dateend
    
 longid
    
 booleanisAbleToReactivateParent
    
 booleanisSuspended
    
 booleanisTerminationImplicit
    
 Stringlock
    
protected  Stringname
    
protected  intnextLogIndex
    
protected  Nodenode
    
protected  DatenodeEnter
    
protected  Tokenparent
    
protected  ProcessInstanceprocessInstance
    
protected  Datestart
    
protected  ProcessInstancesubProcessInstance
    
 intversion
    

Constructor Summary
public  Token()
    
public  Token(ProcessInstance processInstance)
     creates a root token.
public  Token(Token parent, String name)
     creates a child token.

Method Summary
 voidaddChild(Token token)
    
public  voidaddComment(String message)
    
public  voidaddComment(Comment comment)
    
public  voidaddLog(ProcessLog processLog)
     convenience method for adding a process log.
public  voidcheckImplicitTermination()
    
public  voidcollectChildrenRecursively(List tokens)
    
public  ProcessInstancecreateSubProcessInstance(ProcessDefinition subProcessDefinition)
    
public  voidend()
     ends this token and all of its children (if any).
public  voidend(boolean verifyParentTermination)
     ends this token with optional parent ending verification.
public  voidendCompositeLog()
     convenience method for ending a composite log.
public  booleanequals(Object o)
    
public  TokenfindToken(String relativeTokenPath)
    
public  MapgetActiveChildren()
    
public  SetgetAvailableTransitions()
     a set of all the leaving transitions on the current node for which the condition expression resolves to true.
public  TokengetChild(String name)
    
public  MapgetChildren()
    
public  ListgetChildrenAtNode(Node aNode)
    
 voidgetChildrenAtNode(Node aNode, List foundTokens)
    
public  ListgetComments()
    
public  DategetEnd()
    
public  StringgetFullName()
    
public  longgetId()
    
public  StringgetName()
    
public  NodegetNode()
    
public  DategetNodeEnter()
    
public  TokengetParent()
    
public  ProcessInstancegetProcessInstance()
    
public  DategetStart()
    
public  ProcessInstancegetSubProcessInstance()
    
public  booleanhasActiveChildren()
     tells if this token has child tokens that have not yet ended.
public  booleanhasChild(String name)
    
public  booleanhasEnded()
    
public  booleanhasParent()
    
public  booleanisAbleToReactivateParent()
    
public  booleanisLocked()
    
public  booleanisRoot()
    
public  booleanisSuspended()
    
public  booleanisTerminatedImplicitly()
    
public  booleanisTerminationImplicit()
    
public  voidlock(String lockOwnerId)
     locks a process instance for further execution.
public  intnextLogIndex()
    
 voidnotifyParentOfTokenEnd()
     notifies a parent that one of its nodeMap has ended.
public  voidresume()
     resumes a process execution.
 voidresumeJobs()
    
 voidresumeTaskInstances()
    
public  voidsetAbleToReactivateParent(boolean isAbleToReactivateParent)
    
public  voidsetNode(Node node)
    
public  voidsetNodeEnter(Date nodeEnter)
    
public  voidsetParent(Token parent)
    
public  voidsetProcessInstance(ProcessInstance processInstance)
    
public  voidsetSubProcessInstance(ProcessInstance subProcessInstance)
    
public  voidsetTerminationImplicit(boolean isTerminationImplicit)
    
public  voidsignal()
     provides a signal to the token.
public  voidsignal(String transitionName)
     provides a signal to the token.
public  voidsignal(Transition transition)
     provides a signal to the token.
 voidsignal(ExecutionContext executionContext)
    
 voidsignal(Transition transition, ExecutionContext executionContext)
    
public  voidstartCompositeLog(CompositeLog compositeLog)
     convenience method for starting a composite log.
public  voidsuspend()
     suspends a process execution.
 voidsuspendJobs()
    
 voidsuspendTaskInstances()
    
public  StringtoString()
    
public  voidunlock(String lockOwnerId)
    

Field Detail
children
protected Map children(Code)



comments
protected List comments(Code)



end
protected Date end(Code)



id
long id(Code)



isAbleToReactivateParent
boolean isAbleToReactivateParent(Code)



isSuspended
boolean isSuspended(Code)



isTerminationImplicit
boolean isTerminationImplicit(Code)



lock
String lock(Code)



name
protected String name(Code)



nextLogIndex
protected int nextLogIndex(Code)



node
protected Node node(Code)



nodeEnter
protected Date nodeEnter(Code)



parent
protected Token parent(Code)



processInstance
protected ProcessInstance processInstance(Code)



start
protected Date start(Code)



subProcessInstance
protected ProcessInstance subProcessInstance(Code)



version
int version(Code)




Constructor Detail
Token
public Token()(Code)



Token
public Token(ProcessInstance processInstance)(Code)
creates a root token.



Token
public Token(Token parent, String name)(Code)
creates a child token.




Method Detail
addChild
void addChild(Token token)(Code)



addComment
public void addComment(String message)(Code)



addComment
public void addComment(Comment comment)(Code)



addLog
public void addLog(ProcessLog processLog)(Code)
convenience method for adding a process log.



checkImplicitTermination
public void checkImplicitTermination()(Code)



collectChildrenRecursively
public void collectChildrenRecursively(List tokens)(Code)



createSubProcessInstance
public ProcessInstance createSubProcessInstance(ProcessDefinition subProcessDefinition)(Code)



end
public void end()(Code)
ends this token and all of its children (if any). this is the last active (=not-ended) child of a parent token, the parent token will be ended as well and that verification will continue to propagate.



end
public void end(boolean verifyParentTermination)(Code)
ends this token with optional parent ending verification.
Parameters:
  verifyParentTermination - specifies if the parent token should be checked for termination.if verifyParentTermination is set to true and this is the last non-ended child of a parent token, the parent token will be ended as well and the verification will continue to propagate.



endCompositeLog
public void endCompositeLog()(Code)
convenience method for ending a composite log. Make sure you put this in a finally block.



equals
public boolean equals(Object o)(Code)



findToken
public Token findToken(String relativeTokenPath)(Code)



getActiveChildren
public Map getActiveChildren()(Code)



getAvailableTransitions
public Set getAvailableTransitions()(Code)
a set of all the leaving transitions on the current node for which the condition expression resolves to true.



getChild
public Token getChild(String name)(Code)



getChildren
public Map getChildren()(Code)



getChildrenAtNode
public List getChildrenAtNode(Node aNode)(Code)



getChildrenAtNode
void getChildrenAtNode(Node aNode, List foundTokens)(Code)



getComments
public List getComments()(Code)



getEnd
public Date getEnd()(Code)



getFullName
public String getFullName()(Code)



getId
public long getId()(Code)



getName
public String getName()(Code)



getNode
public Node getNode()(Code)



getNodeEnter
public Date getNodeEnter()(Code)



getParent
public Token getParent()(Code)



getProcessInstance
public ProcessInstance getProcessInstance()(Code)



getStart
public Date getStart()(Code)



getSubProcessInstance
public ProcessInstance getSubProcessInstance()(Code)



hasActiveChildren
public boolean hasActiveChildren()(Code)
tells if this token has child tokens that have not yet ended.



hasChild
public boolean hasChild(String name)(Code)



hasEnded
public boolean hasEnded()(Code)



hasParent
public boolean hasParent()(Code)



isAbleToReactivateParent
public boolean isAbleToReactivateParent()(Code)



isLocked
public boolean isLocked()(Code)



isRoot
public boolean isRoot()(Code)



isSuspended
public boolean isSuspended()(Code)



isTerminatedImplicitly
public boolean isTerminatedImplicitly()(Code)



isTerminationImplicit
public boolean isTerminationImplicit()(Code)



lock
public void lock(String lockOwnerId)(Code)
locks a process instance for further execution. A locked token cannot continue execution. This is a non-persistent operation. This is used to prevent tokens being propagated during the execution of actions.
See Also:   Token.unlock(String)
See Also:   



nextLogIndex
public int nextLogIndex()(Code)



notifyParentOfTokenEnd
void notifyParentOfTokenEnd()(Code)
notifies a parent that one of its nodeMap has ended.



resume
public void resume()(Code)
resumes a process execution.



resumeJobs
void resumeJobs()(Code)



resumeTaskInstances
void resumeTaskInstances()(Code)



setAbleToReactivateParent
public void setAbleToReactivateParent(boolean isAbleToReactivateParent)(Code)



setNode
public void setNode(Node node)(Code)



setNodeEnter
public void setNodeEnter(Date nodeEnter)(Code)



setParent
public void setParent(Token parent)(Code)



setProcessInstance
public void setProcessInstance(ProcessInstance processInstance)(Code)



setSubProcessInstance
public void setSubProcessInstance(ProcessInstance subProcessInstance)(Code)



setTerminationImplicit
public void setTerminationImplicit(boolean isTerminationImplicit)(Code)



signal
public void signal()(Code)
provides a signal to the token. this method activates this token and leaves the current state over the default transition.



signal
public void signal(String transitionName)(Code)
provides a signal to the token. this leave the current state over the given transition name.



signal
public void signal(Transition transition)(Code)
provides a signal to the token. this leave the current state over the given transition name.



signal
void signal(ExecutionContext executionContext)(Code)



signal
void signal(Transition transition, ExecutionContext executionContext)(Code)



startCompositeLog
public void startCompositeLog(CompositeLog compositeLog)(Code)
convenience method for starting a composite log. When you add composite logs, make sure you put the Token.endCompositeLog() in a finally block.



suspend
public void suspend()(Code)
suspends a process execution.



suspendJobs
void suspendJobs()(Code)



suspendTaskInstances
void suspendTaskInstances()(Code)



toString
public String toString()(Code)



unlock
public void unlock(String lockOwnerId)(Code)

See Also:   Token.lock(String)



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.