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


java.lang.Object
   org.jbpm.context.exe.VariableContainer
      org.jbpm.taskmgmt.exe.TaskInstance

TaskInstance
public class TaskInstance extends VariableContainer implements Assignable(Code)
is one task instance that can be assigned to an actor (read: put in someones task list) and that can trigger the coninuation of execution of the token upon completion.


Field Summary
protected  StringactorId
    
protected  Listcomments
    
protected  Datecreate
    
protected  Stringdescription
    
protected  DatedueDate
    
protected  Dateend
    
 longid
    
protected  booleanisBlocking
    
protected  booleanisCancelled
    
protected  booleanisOpen
    
protected  booleanisSignalling
    
protected  booleanisSuspended
    
protected  Stringname
    
protected  SetpooledActors
    
protected  StringpreviousActorId
    
protected  intpriority
    
protected  ProcessInstanceprocessInstance
    
protected  Datestart
    
protected  SwimlaneInstanceswimlaneInstance
    
protected  Tasktask
    
protected  TaskMgmtInstancetaskMgmtInstance
    
protected  Tokentoken
    
 intversion
    

Constructor Summary
public  TaskInstance()
    
public  TaskInstance(String taskName)
    
public  TaskInstance(String taskName, String actorId)
    

Method Summary
public  voidaddComment(String message)
    
public  voidaddComment(Comment comment)
    
public  voidassign(ExecutionContext executionContext)
    
public  voidcancel()
     cancels this task. This task intance will be marked as cancelled and as ended.
public  voidcancel(Transition transition)
     cancels this task, takes the specified transition. This task intance will be marked as cancelled and as ended.
public  voidcancel(String transitionName)
     cancels this task, takes the specified transition. This task intance will be marked as cancelled and as ended.
public  voidcopySwimlaneInstanceAssignment(SwimlaneInstance swimlaneInstance)
     copies the assignment (that includes both the swimlaneActorId and the set of pooledActors) of the given swimlane into this taskInstance.
public  voidcreate()
    
public  voidcreate(ExecutionContext executionContext)
    
public  voidend()
     marks this task as done.
public  voidend(String transitionName)
     marks this task as done and specifies the name of a transition leaving the task-node for the case that the completion of this task instances triggers a signal on the token.
public  voidend(Transition transition)
     marks this task as done and specifies a transition leaving the task-node for the case that the completion of this task instances triggers a signal on the token.
public  booleanequals(Object o)
    
public  StringgetActorId()
    
public  ListgetAvailableTransitions()
     is the list of transitions that can be used in the end method and it is null in case this is not the last task instance.
public  ListgetComments()
    
public  DategetCreate()
    
public  StringgetDescription()
    
public  DategetDueDate()
    
public  DategetEnd()
    
public  longgetId()
    
public  StringgetName()
    
protected  VariableContainergetParentVariableContainer()
    
public  SetgetPooledActors()
     gets the pool of actors for this task instance.
public  StringgetPreviousActorId()
    
public  intgetPriority()
    
public  ProcessInstancegetProcessInstance()
    
public  DategetStart()
    
public  SwimlaneInstancegetSwimlaneInstance()
    
public  TaskgetTask()
    
public  TaskMgmtInstancegetTaskMgmtInstance()
    
public  TokengetToken()
    
public  booleanhasEnded()
    
 voidinitializeVariables()
    
public  booleanisBlocking()
    
public  booleanisCancelled()
    
public  booleanisLast()
    
public  booleanisOpen()
    
public  booleanisSignalling()
    
public  booleanisStartTaskInstance()
    
public  booleanisSuspended()
    
public  voidresume()
     resumes a process execution.
public  voidsetActorId(String actorId)
     (re)assign this task to the given actor.
public  voidsetActorId(String actorId, boolean overwriteSwimlane)
     (re)assign this task to the given actor.
public  voidsetBlocking(boolean isBlocking)
    
public  voidsetCreate(Date create)
    
public  voidsetDescription(String description)
    
public  voidsetDueDate(Date dueDate)
    
public  voidsetEnd(Date end)
    
public  voidsetId(long id)
    
public  voidsetName(String name)
    
public  voidsetPooledActors(String[] actorIds)
    
public  voidsetPooledActors(Set pooledActors)
    
public  voidsetPriority(int priority)
    
public  voidsetProcessInstance(ProcessInstance processInstance)
    
public  voidsetSignalling(boolean isSignalling)
    
public  voidsetStart(Date date)
    
public  voidsetSwimlaneInstance(SwimlaneInstance swimlaneInstance)
    
public  voidsetTask(Task task)
    
public  voidsetTaskMgmtInstance(TaskMgmtInstance taskMgmtInstance)
    
public  voidsetToken(Token token)
    
public  voidstart()
     can optionally be used to indicate that the actor is starting to work on this task instance.
public  voidstart(String actorId)
     convenience method that combines a TaskInstance.setActorId(String) and a TaskInstance.start() .
public  voidstart(String actorId, boolean overwriteSwimlane)
     convenience method that combines a TaskInstance.setActorId(String,boolean) and a TaskInstance.start() .
 voidsubmitVariables()
    
public  voidsuspend()
     suspends a process execution.
public  StringtoString()
    
 voidupdatePooledActorsReferences(SwimlaneInstance swimlaneInstance)
    

Field Detail
actorId
protected String actorId(Code)



comments
protected List comments(Code)



create
protected Date create(Code)



description
protected String description(Code)



dueDate
protected Date dueDate(Code)



end
protected Date end(Code)



id
long id(Code)



isBlocking
protected boolean isBlocking(Code)



isCancelled
protected boolean isCancelled(Code)



isOpen
protected boolean isOpen(Code)



isSignalling
protected boolean isSignalling(Code)



isSuspended
protected boolean isSuspended(Code)



name
protected String name(Code)



pooledActors
protected Set pooledActors(Code)



previousActorId
protected String previousActorId(Code)



priority
protected int priority(Code)



processInstance
protected ProcessInstance processInstance(Code)



start
protected Date start(Code)



swimlaneInstance
protected SwimlaneInstance swimlaneInstance(Code)



task
protected Task task(Code)



taskMgmtInstance
protected TaskMgmtInstance taskMgmtInstance(Code)



token
protected Token token(Code)



version
int version(Code)




Constructor Detail
TaskInstance
public TaskInstance()(Code)



TaskInstance
public TaskInstance(String taskName)(Code)



TaskInstance
public TaskInstance(String taskName, String actorId)(Code)




Method Detail
addComment
public void addComment(String message)(Code)



addComment
public void addComment(Comment comment)(Code)



assign
public void assign(ExecutionContext executionContext)(Code)



cancel
public void cancel()(Code)
cancels this task. This task intance will be marked as cancelled and as ended. But cancellation doesn't influence singalling and continuation of process execution.



cancel
public void cancel(Transition transition)(Code)
cancels this task, takes the specified transition. This task intance will be marked as cancelled and as ended. But cancellation doesn't influence singalling and continuation of process execution.



cancel
public void cancel(String transitionName)(Code)
cancels this task, takes the specified transition. This task intance will be marked as cancelled and as ended. But cancellation doesn't influence singalling and continuation of process execution.



copySwimlaneInstanceAssignment
public void copySwimlaneInstanceAssignment(SwimlaneInstance swimlaneInstance)(Code)
copies the assignment (that includes both the swimlaneActorId and the set of pooledActors) of the given swimlane into this taskInstance.



create
public void create()(Code)



create
public void create(ExecutionContext executionContext)(Code)



end
public void end()(Code)
marks this task as done. If this task is related to a task node this might trigger a signal on the token.
See Also:   TaskInstance.end(Transition)



end
public void end(String transitionName)(Code)
marks this task as done and specifies the name of a transition leaving the task-node for the case that the completion of this task instances triggers a signal on the token. If this task leads to a signal on the token, the given transition name will be used in the signal. If this task completion does not trigger execution to move on, the transitionName is ignored.



end
public void end(Transition transition)(Code)
marks this task as done and specifies a transition leaving the task-node for the case that the completion of this task instances triggers a signal on the token. If this task leads to a signal on the token, the given transition name will be used in the signal. If this task completion does not trigger execution to move on, the transition is ignored.



equals
public boolean equals(Object o)(Code)



getActorId
public String getActorId()(Code)



getAvailableTransitions
public List getAvailableTransitions()(Code)
is the list of transitions that can be used in the end method and it is null in case this is not the last task instance.



getComments
public List getComments()(Code)



getCreate
public Date getCreate()(Code)



getDescription
public String getDescription()(Code)



getDueDate
public Date getDueDate()(Code)



getEnd
public Date getEnd()(Code)



getId
public long getId()(Code)



getName
public String getName()(Code)



getParentVariableContainer
protected VariableContainer getParentVariableContainer()(Code)



getPooledActors
public Set getPooledActors()(Code)
gets the pool of actors for this task instance. If this task has a simlaneInstance and no pooled actors, the pooled actors of the swimlane instance are returned.



getPreviousActorId
public String getPreviousActorId()(Code)



getPriority
public int getPriority()(Code)



getProcessInstance
public ProcessInstance getProcessInstance()(Code)



getStart
public Date getStart()(Code)



getSwimlaneInstance
public SwimlaneInstance getSwimlaneInstance()(Code)



getTask
public Task getTask()(Code)



getTaskMgmtInstance
public TaskMgmtInstance getTaskMgmtInstance()(Code)



getToken
public Token getToken()(Code)



hasEnded
public boolean hasEnded()(Code)



initializeVariables
void initializeVariables()(Code)



isBlocking
public boolean isBlocking()(Code)



isCancelled
public boolean isCancelled()(Code)



isLast
public boolean isLast()(Code)



isOpen
public boolean isOpen()(Code)



isSignalling
public boolean isSignalling()(Code)



isStartTaskInstance
public boolean isStartTaskInstance()(Code)



isSuspended
public boolean isSuspended()(Code)



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



setActorId
public void setActorId(String actorId)(Code)
(re)assign this task to the given actor. If this task is related to a swimlane instance, that swimlane instance will be updated as well.



setActorId
public void setActorId(String actorId, boolean overwriteSwimlane)(Code)
(re)assign this task to the given actor.
Parameters:
  actorId - is reference to the person that is assigned to this task.
Parameters:
  overwriteSwimlane - specifies if the related swimlane should be overwritten with the given swimlaneActorId.



setBlocking
public void setBlocking(boolean isBlocking)(Code)



setCreate
public void setCreate(Date create)(Code)



setDescription
public void setDescription(String description)(Code)



setDueDate
public void setDueDate(Date dueDate)(Code)



setEnd
public void setEnd(Date end)(Code)



setId
public void setId(long id)(Code)



setName
public void setName(String name)(Code)



setPooledActors
public void setPooledActors(String[] actorIds)(Code)
takes a set of String's as the actorIds



setPooledActors
public void setPooledActors(Set pooledActors)(Code)
takes a set of PooledActor s



setPriority
public void setPriority(int priority)(Code)



setProcessInstance
public void setProcessInstance(ProcessInstance processInstance)(Code)



setSignalling
public void setSignalling(boolean isSignalling)(Code)



setStart
public void setStart(Date date)(Code)
overwrite start date



setSwimlaneInstance
public void setSwimlaneInstance(SwimlaneInstance swimlaneInstance)(Code)



setTask
public void setTask(Task task)(Code)



setTaskMgmtInstance
public void setTaskMgmtInstance(TaskMgmtInstance taskMgmtInstance)(Code)



setToken
public void setToken(Token token)(Code)



start
public void start()(Code)
can optionally be used to indicate that the actor is starting to work on this task instance.



start
public void start(String actorId)(Code)
convenience method that combines a TaskInstance.setActorId(String) and a TaskInstance.start() .



start
public void start(String actorId, boolean overwriteSwimlane)(Code)
convenience method that combines a TaskInstance.setActorId(String,boolean) and a TaskInstance.start() .



submitVariables
void submitVariables()(Code)



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



toString
public String toString()(Code)



updatePooledActorsReferences
void updatePooledActorsReferences(SwimlaneInstance swimlaneInstance)(Code)



Fields inherited from org.jbpm.context.exe.VariableContainer
protected Map variableInstances(Code)(Java Doc)

Methods inherited from org.jbpm.context.exe.VariableContainer
public void addVariableInstance(VariableInstance variableInstance)(Code)(Java Doc)
public void addVariables(Map variables)(Code)(Java Doc)
public void deleteVariable(String name)(Code)(Java Doc)
public void deleteVariableInstance(String name)(Code)(Java Doc)
public void deleteVariableLocally(String name)(Code)(Java Doc)
public ContextInstance getContextInstance()(Code)(Java Doc)
abstract protected VariableContainer getParentVariableContainer()(Code)(Java Doc)
abstract public Token getToken()(Code)(Java Doc)
public static Collection getUpdatedVariableContainers(ProcessInstance processInstance)(Code)(Java Doc)
public Object getVariable(String name)(Code)(Java Doc)
public VariableInstance getVariableInstance(String name)(Code)(Java Doc)
public Map getVariableInstances()(Code)(Java Doc)
public Object getVariableLocally(String name)(Code)(Java Doc)
public Map getVariables()(Code)(Java Doc)
public Map getVariablesLocally()(Code)(Java Doc)
public boolean hasVariable(String name)(Code)(Java Doc)
public boolean hasVariableLocally(String name)(Code)(Java Doc)
public void setVariable(String name, Object value)(Code)(Java Doc)
public void setVariableLocally(String name, Object value)(Code)(Java Doc)
public void setVariables(Map variables)(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.