Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
开发团队
Flowable Engine
提交
ba339167
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,发现更多精彩内容 >>
提交
ba339167
编写于
3月 24, 2011
作者:
F
frederikheremans
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Completing task without a task form + cleaned up demo process
上级
d3339ec2
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
45 addition
and
28 deletion
+45
-28
modules/activiti-webapp-explorer2/src/main/java/org/activiti/explorer/ui/task/TaskDetailPanel.java
...n/java/org/activiti/explorer/ui/task/TaskDetailPanel.java
+22
-0
modules/activiti-webapp-explorer2/src/main/resources/org/activiti/explorer/demo/process/testProcess.bpmn20.xml
...org/activiti/explorer/demo/process/testProcess.bpmn20.xml
+23
-28
未找到文件。
modules/activiti-webapp-explorer2/src/main/java/org/activiti/explorer/ui/task/TaskDetailPanel.java
浏览文件 @
ba339167
...
@@ -241,6 +241,28 @@ public class TaskDetailPanel extends HorizontalLayout {
...
@@ -241,6 +241,28 @@ public class TaskDetailPanel extends HorizontalLayout {
// Add component to page
// Add component to page
leftPanel
.
addComponent
(
taskForm
);
leftPanel
.
addComponent
(
taskForm
);
}
else
{
// Just add a button to complete the task
// TODO: perhaps move to a better place
Button
completeButton
=
new
Button
(
"Complete"
);
completeButton
.
addListener
(
new
ClickListener
()
{
private
static
final
long
serialVersionUID
=
1L
;
public
void
buttonClick
(
ClickEvent
event
)
{
taskService
.
complete
(
task
.
getId
());
ExplorerApplication
.
getCurrent
().
getMainWindow
().
showNotification
(
"Task '"
+
task
.
getName
()
+
"' completed"
);
parent
.
refreshCurrentTasks
();
}
});
Label
emptySpace
=
new
Label
(
" "
,
Label
.
CONTENT_XHTML
);
emptySpace
.
setSizeUndefined
();
leftPanel
.
addComponent
(
emptySpace
);
leftPanel
.
addComponent
(
completeButton
);
}
}
}
}
}
}
modules/activiti-webapp-explorer2/src/main/resources/org/activiti/explorer/demo/process/testProcess.bpmn20.xml
浏览文件 @
ba339167
...
@@ -3,51 +3,46 @@
...
@@ -3,51 +3,46 @@
xmlns:activiti=
"http://activiti.org/bpmn"
xmlns:bpmndi=
"http://www.omg.org/spec/BPMN/20100524/DI"
xmlns:omgdc=
"http://www.omg.org/spec/DD/20100524/DC"
xmlns:activiti=
"http://activiti.org/bpmn"
xmlns:bpmndi=
"http://www.omg.org/spec/BPMN/20100524/DI"
xmlns:omgdc=
"http://www.omg.org/spec/DD/20100524/DC"
xmlns:omgdi=
"http://www.omg.org/spec/DD/20100524/DI"
typeLanguage=
"http://www.w3.org/2001/XMLSchema"
xmlns:omgdi=
"http://www.omg.org/spec/DD/20100524/DI"
typeLanguage=
"http://www.w3.org/2001/XMLSchema"
expressionLanguage=
"http://www.w3.org/1999/XPath"
targetNamespace=
"Cool Processes"
>
expressionLanguage=
"http://www.w3.org/1999/XPath"
targetNamespace=
"Cool Processes"
>
<process
id=
"coolProcess"
name=
"Two task process"
>
<process
id=
"simpleApprovalProcess"
name=
"Simple approval process"
>
<documentation>
This is a two task process
</documentation>
<documentation>
This is a simple approval process.
</documentation>
<startEvent
id=
"startevent2"
name=
"Start"
activiti:initiator=
"initiator"
>
<startEvent
id=
"startevent2"
name=
"Start"
activiti:initiator=
"initiator"
>
<extensionElements>
<extensionElements>
<activiti:formProperty
id=
"requiredstring"
name=
"Required string property"
type=
"string"
<activiti:formProperty
id=
"approver"
name=
"Approver"
type=
"string"
required=
"true"
/>
required=
"true"
/>
<activiti:formProperty
id=
"duedate"
name=
"Approval due date"
datePattern=
"dd-MM-yyyy hh:mm"
type=
"date"
required=
"true"
/>
<activiti:formProperty
id=
"difficulty"
name=
"Difficulty (number)"
type=
"long"
/>
<activiti:formProperty
id=
"requiredenum"
name=
"Required enum property"
type=
"enum"
<activiti:formProperty
id=
"instructions"
name=
"Instructions"
type=
"string"
/>
required=
"true"
>
<activiti:value
id=
"left"
name=
"Go Left"
/>
<activiti:value
id=
"right"
name=
"Go Right"
/>
<activiti:value
id=
"up"
name=
"Go Up"
/>
<activiti:value
id=
"down"
name=
"Go Down"
/>
</activiti:formProperty>
<activiti:formProperty
id=
"long"
name=
"Long property"
type=
"long"
/>
<activiti:formProperty
id=
"date"
name=
"Date property"
datePattern=
"dd-MM-yyyy"
type=
"date"
/>
</extensionElements>
</extensionElements>
</startEvent>
</startEvent>
<userTask
id=
"usertask2"
name=
"First task"
activiti:assignee=
"${initiator}"
>
<userTask
id=
"usertask2"
name=
"Approval task"
activiti:assignee=
"${approver}"
activiti:dueDate=
"${duedate}"
>
<documentation>
Approval request created by ${initiator}: ${instructions}
</documentation>
<extensionElements>
<extensionElements>
<activiti:formProperty
id=
"string"
name=
"String property"
type=
"string"
required=
"true"
/>
<activiti:formProperty
id=
"approved"
name=
"Decision"
type=
"enum"
<activiti:formProperty
id=
"requiredstring"
name=
"Value filled in at start"
type=
"string"
required=
"true"
>
writable=
"false"
/>
<activiti:value
id=
"true"
name=
"Approve"
/>
<activiti:formProperty
id=
"date"
name=
"Date property"
datePattern=
"dd-MM-yyyy"
type=
"date"
/>
<activiti:value
id=
"false"
name=
"Reject"
/>
</activiti:formProperty>
<activiti:formProperty
id=
"motivation"
name=
"Motivation"
type=
"string"
required=
"true"
/>
</extensionElements>
</extensionElements>
</userTask>
</userTask>
<endEvent
id=
"endevent2"
name=
"End"
></endEvent>
<endEvent
id=
"endevent2"
name=
"End"
></endEvent>
<sequenceFlow
id=
"flow3"
name=
""
sourceRef=
"startevent2"
targetRef=
"usertask2"
></sequenceFlow>
<sequenceFlow
id=
"flow3"
name=
""
sourceRef=
"startevent2"
targetRef=
"usertask2"
></sequenceFlow>
<sequenceFlow
id=
"flow4"
name=
""
sourceRef=
"usertask2"
targetRef=
"usertask3"
></sequenceFlow>
<sequenceFlow
id=
"flow4"
name=
""
sourceRef=
"usertask2"
targetRef=
"usertask3"
></sequenceFlow>
<userTask
id=
"usertask3"
name=
"Second task"
activiti:assignee=
"${initiator}"
>
<documentation
textFormat=
"text/plain"
>
Complete this task please
</documentation>
<userTask
id=
"usertask3"
name=
"Check outcome"
activiti:assignee=
"${initiator}"
>
<documentation
textFormat=
"text/plain"
>
Task completed by ${approver}: ${(approved.equals('true')) ? 'Approved.' : 'Rejected!'}
</documentation>
<extensionElements>
<extensionElements>
<activiti:formProperty
id=
"string"
name=
"String property"
type=
"string"
required=
"tru
e"
/>
<activiti:formProperty
id=
"motivation"
name=
"Motivation"
type=
"string"
writable=
"fals
e"
/>
</extensionElements>
</extensionElements>
</userTask>
</userTask>
<sequenceFlow
id=
"flow5"
name=
""
sourceRef=
"usertask3"
targetRef=
"endevent2"
></sequenceFlow>
<sequenceFlow
id=
"flow5"
name=
""
sourceRef=
"usertask3"
targetRef=
"endevent2"
></sequenceFlow>
</process>
</process>
<bpmndi:BPMNDiagram
id=
"BPMNDiagram_
coo
lProcess"
>
<bpmndi:BPMNDiagram
id=
"BPMNDiagram_
simpleApprova
lProcess"
>
<bpmndi:BPMNPlane
bpmnElement=
"
coolProcess"
id=
"BPMNPlane_coo
lProcess"
>
<bpmndi:BPMNPlane
bpmnElement=
"
simpleApprovalProcess"
id=
"BPMNPlane_simpleApprova
lProcess"
>
<bpmndi:BPMNShape
bpmnElement=
"startevent2"
id=
"BPMNShape_startevent2"
>
<bpmndi:BPMNShape
bpmnElement=
"startevent2"
id=
"BPMNShape_startevent2"
>
<omgdc:Bounds
height=
"55"
width=
"55"
x=
"200"
y=
"180"
></omgdc:Bounds>
<omgdc:Bounds
height=
"55"
width=
"55"
x=
"200"
y=
"180"
></omgdc:Bounds>
</bpmndi:BPMNShape>
</bpmndi:BPMNShape>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录