Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
开发团队
Flowable Engine
提交
fb5caea7
F
Flowable Engine
项目概览
开发团队
/
Flowable Engine
通知
9
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
Flowable Engine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
fb5caea7
编写于
3月 01, 2013
作者:
F
Frederik Heremans
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Deprecating MAX and MIN values for priority on Task, moved to explorer
上级
1f06e3da
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
29 addition
and
7 deletion
+29
-7
modules/activiti-engine/src/main/java/org/activiti/engine/impl/persistence/entity/TaskEntity.java
...g/activiti/engine/impl/persistence/entity/TaskEntity.java
+1
-1
modules/activiti-engine/src/main/java/org/activiti/engine/task/Task.java
...i-engine/src/main/java/org/activiti/engine/task/Task.java
+15
-0
modules/activiti-explorer/src/main/java/org/activiti/explorer/Constants.java
...plorer/src/main/java/org/activiti/explorer/Constants.java
+5
-0
modules/activiti-explorer/src/main/java/org/activiti/explorer/ui/task/PriorityComboBox.java
.../java/org/activiti/explorer/ui/task/PriorityComboBox.java
+4
-3
modules/activiti-explorer/src/main/java/org/activiti/explorer/ui/task/PriorityLabel.java
...ain/java/org/activiti/explorer/ui/task/PriorityLabel.java
+4
-3
未找到文件。
modules/activiti-engine/src/main/java/org/activiti/engine/impl/persistence/entity/TaskEntity.java
浏览文件 @
fb5caea7
...
...
@@ -64,7 +64,7 @@ public class TaskEntity extends VariableScopeImpl implements Task, DelegateTask,
protected
String
name
;
protected
String
description
;
protected
int
priority
=
Task
.
PRIORITY_NORMAL
;
protected
int
priority
=
DEFAULT_PRIORITY
;
protected
Date
createTime
;
// The time when the task has been created
protected
Date
dueDate
;
protected
int
suspensionState
=
SuspensionState
.
ACTIVE
.
getStateCode
();
...
...
modules/activiti-engine/src/main/java/org/activiti/engine/task/Task.java
浏览文件 @
fb5caea7
...
...
@@ -21,9 +21,24 @@ import java.util.Date;
* @author Joram Barrez
*/
public
interface
Task
{
/**
* Default value used for priority when a new {@link Task} is created.
*/
int
DEFAULT_PRIORITY
=
50
;
/**
* @deprecated Will be removed in 5.13
*/
int
PRIORITY_MINIUM
=
0
;
/**
* @deprecated Will be removed in 5.13
*/
int
PRIORITY_NORMAL
=
50
;
/**
* @deprecated Will be removed in 5.13
*/
int
PRIORITY_MAXIMUM
=
100
;
/** DB id of the task. */
...
...
modules/activiti-explorer/src/main/java/org/activiti/explorer/Constants.java
浏览文件 @
fb5caea7
...
...
@@ -44,6 +44,11 @@ public class Constants {
// Default diagram image extension, when name cannot be deducted from resource name
public
static
final
String
DEFAULT_DIAGRAM_IMAGE_EXTENSION
=
"png"
;
// Task priority values
public
static
final
int
TASK_PRIORITY_LOW
=
0
;
public
static
final
int
TASK_PRIORITY_MEDIUM
=
50
;
public
static
final
int
TASK_PRIORITY_HIGH
=
100
;
// MIMETYPES
public
static
final
String
MIMETYPE_BPM
=
"image/bpm"
;
public
static
final
String
MIMETYPE_GIF
=
"image/gif"
;
...
...
modules/activiti-explorer/src/main/java/org/activiti/explorer/ui/task/PriorityComboBox.java
浏览文件 @
fb5caea7
...
...
@@ -15,6 +15,7 @@ package org.activiti.explorer.ui.task;
import
java.util.Arrays
;
import
org.activiti.engine.task.Task
;
import
org.activiti.explorer.Constants
;
import
org.activiti.explorer.I18nManager
;
import
org.activiti.explorer.Messages
;
...
...
@@ -52,11 +53,11 @@ public class PriorityComboBox extends ComboBox {
public
int
getPriority
()
{
String
value
=
getValue
().
toString
();
if
(
i18nManager
.
getMessage
(
Messages
.
TASK_PRIORITY_LOW
).
equals
(
value
))
{
return
Task
.
PRIORITY_MINIUM
;
return
Constants
.
TASK_PRIORITY_LOW
;
}
else
if
(
i18nManager
.
getMessage
(
Messages
.
TASK_PRIORITY_MEDIUM
).
equals
(
value
))
{
return
Task
.
PRIORITY_NORMAL
;
return
Constants
.
TASK_PRIORITY_MEDIUM
;
}
else
{
return
Task
.
PRIORITY_MAXIMUM
;
return
Constants
.
TASK_PRIORITY_HIGH
;
}
}
...
...
modules/activiti-explorer/src/main/java/org/activiti/explorer/ui/task/PriorityLabel.java
浏览文件 @
fb5caea7
...
...
@@ -13,6 +13,7 @@
package
org.activiti.explorer.ui.task
;
import
org.activiti.engine.task.Task
;
import
org.activiti.explorer.Constants
;
import
org.activiti.explorer.I18nManager
;
import
org.activiti.explorer.Messages
;
import
org.activiti.explorer.ui.mainlayout.ExplorerLayout
;
...
...
@@ -47,13 +48,13 @@ public class PriorityLabel extends Label {
public
void
setValue
(
Object
newValue
)
{
if
(
newValue
instanceof
Integer
)
{
priority
=
(
Integer
)
newValue
;
if
(
priority
<
Task
.
PRIORITY_NORMAL
)
{
if
(
priority
<
Constants
.
TASK_PRIORITY_MEDIUM
)
{
super
.
setValue
(
i18nManager
.
getMessage
(
Messages
.
TASK_PRIORITY_LOW
));
addStyleName
(
ExplorerLayout
.
STYLE_TASK_HEADER_PRIORITY_LOW
);
}
else
if
(
priority
==
Task
.
PRIORITY_NORMAL
)
{
}
else
if
(
priority
==
Constants
.
TASK_PRIORITY_MEDIUM
)
{
super
.
setValue
(
i18nManager
.
getMessage
(
Messages
.
TASK_PRIORITY_MEDIUM
));
addStyleName
(
ExplorerLayout
.
STYLE_TASK_HEADER_PRIORITY_MEDIUM
);
}
else
if
(
priority
>
Task
.
PRIORITY_NORMAL
)
{
}
else
if
(
priority
>
Constants
.
TASK_PRIORITY_MEDIUM
)
{
super
.
setValue
(
i18nManager
.
getMessage
(
Messages
.
TASK_PRIORITY_HIGH
));
addStyleName
(
ExplorerLayout
.
STYLE_TASK_HEADER_PRIORITY_HIGH
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录