Source Code Cross Referenced for AbstractTask.java in  » Workflow-Engines » obe-1.0 » org » obe » client » api » base » 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 » obe 1.0 » org.obe.client.api.base 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        package org.obe.client.api.base;
002:
003:        import org.obe.client.api.model.TemporalStatus;
004:
005:        import java.io.Serializable;
006:        import java.util.Date;
007:
008:        /**
009:         * @author Adrian Price
010:         */
011:        public abstract class AbstractTask implements  Serializable {
012:            private static final long serialVersionUID = 4138703038866374530L;
013:            private String _id;
014:            private String _name;
015:            private String _activityDefinitionId;
016:            private String _processDefinitionId;
017:            private String _processInstanceId;
018:            private int _priority;
019:            private Date _startedDate;
020:            private Date _targetDate;
021:            private Date _dueDate;
022:            private Date _completedDate;
023:
024:            protected AbstractTask() {
025:            }
026:
027:            protected AbstractTask(String id, String name,
028:                    String activityDefinitionId, String processDefinitionId,
029:                    String processInstanceId, int priority, Date startedDate,
030:                    Date targetDate, Date dueDate, Date completedDate) {
031:
032:                _id = id;
033:                _name = name;
034:                _activityDefinitionId = activityDefinitionId;
035:                _processDefinitionId = processDefinitionId;
036:                _processInstanceId = processInstanceId;
037:                _priority = priority;
038:                _startedDate = startedDate;
039:                _targetDate = targetDate;
040:                _dueDate = dueDate;
041:                _completedDate = completedDate;
042:            }
043:
044:            public String getId() {
045:                return _id;
046:            }
047:
048:            public final String getName() {
049:                return _name;
050:            }
051:
052:            public final String getActivityDefinitionId() {
053:                return _activityDefinitionId;
054:            }
055:
056:            public final int getPriority() {
057:                return _priority;
058:            }
059:
060:            public final Date getCompletedDate() {
061:                return _completedDate;
062:            }
063:
064:            public final Date getTargetDate() {
065:                return _targetDate;
066:            }
067:
068:            public final Date getDueDate() {
069:                return _dueDate;
070:            }
071:
072:            public final String getProcessDefinitionId() {
073:                return _processDefinitionId;
074:            }
075:
076:            public final String getProcessInstanceId() {
077:                return _processInstanceId;
078:            }
079:
080:            public final Date getStartedDate() {
081:                return _startedDate;
082:            }
083:
084:            public final void setId(String id) {
085:                _id = id;
086:            }
087:
088:            public final void setProcessDefinitionId(String processDefinitionId) {
089:                _processDefinitionId = processDefinitionId;
090:            }
091:
092:            public final void setPriority(int priority) {
093:                _priority = priority;
094:            }
095:
096:            public final void setStartedDate(Date startedDate) {
097:                _startedDate = startedDate;
098:            }
099:
100:            public final void setTargetDate(Date targetDate) {
101:                _targetDate = targetDate;
102:            }
103:
104:            public final void setDueDate(Date dueDate) {
105:                _dueDate = dueDate;
106:            }
107:
108:            public final void setCompletedDate(Date completedDate) {
109:                _completedDate = completedDate;
110:            }
111:
112:            public final void setName(String name) {
113:                _name = name;
114:            }
115:
116:            public final void setActivityDefinitionId(
117:                    String activityDefinitionId) {
118:                _activityDefinitionId = activityDefinitionId;
119:            }
120:
121:            public final void setProcessInstanceId(String processInstanceId) {
122:                _processInstanceId = processInstanceId;
123:            }
124:
125:            public final void setPriority(Integer priority) {
126:                if (priority != null)
127:                    _priority = priority.intValue();
128:            }
129:
130:            public abstract void setState(String state);
131:
132:            public final TemporalStatus getTemporalStatus() {
133:                return TemporalStatus.computeStatus(_completedDate,
134:                        _targetDate, _dueDate);
135:            }
136:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.