Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
z_stack
Activiti
提交
dc7e0fe9
A
Activiti
项目概览
z_stack
/
Activiti
12 个月 前同步成功
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
Activiti
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
dc7e0fe9
编写于
2月 04, 2019
作者:
M
Miguel Ruiz
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Variable conformance tests
上级
006b8a3e
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
565 addition
and
1 deletion
+565
-1
activiti-engine/pom.xml
activiti-engine/pom.xml
+1
-1
activiti-spring-conformance-tests/activiti-spring-conformance-variables/pom.xml
...mance-tests/activiti-spring-conformance-variables/pom.xml
+75
-0
activiti-spring-conformance-tests/activiti-spring-conformance-variables/src/test/java/org/activiti/spring/conformance/variables/Application.java
...rg/activiti/spring/conformance/variables/Application.java
+13
-0
activiti-spring-conformance-tests/activiti-spring-conformance-variables/src/test/java/org/activiti/spring/conformance/variables/TaskVariablesTest.java
...iviti/spring/conformance/variables/TaskVariablesTest.java
+172
-0
activiti-spring-conformance-tests/activiti-spring-conformance-variables/src/test/java/org/activiti/spring/conformance/variables/VariablesRuntimeTestConfiguration.java
...formance/variables/VariablesRuntimeTestConfiguration.java
+120
-0
activiti-spring-conformance-tests/activiti-spring-conformance-variables/src/test/resources/processes/user-task-assignee-followed-group1.bpmn20.xml
...s/processes/user-task-assignee-followed-group1.bpmn20.xml
+66
-0
activiti-spring-conformance-tests/activiti-spring-conformance-variables/src/test/resources/processes/user-task-candidate-group.bpmn20.xml
.../resources/processes/user-task-candidate-group.bpmn20.xml
+51
-0
activiti-spring-conformance-tests/activiti-spring-conformance-variables/src/test/resources/processes/user-task-group1-followed-group2.bpmn20.xml
...ces/processes/user-task-group1-followed-group2.bpmn20.xml
+66
-0
activiti-spring-conformance-tests/pom.xml
activiti-spring-conformance-tests/pom.xml
+1
-0
未找到文件。
activiti-engine/pom.xml
浏览文件 @
dc7e0fe9
...
...
@@ -168,7 +168,7 @@
<plugins>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-
surefire
-plugin
</artifactId>
<artifactId>
maven--plugin
</artifactId>
<configuration>
<excludes>
<exclude>
**/*TestCase.java
</exclude>
...
...
activiti-spring-conformance-tests/activiti-spring-conformance-variables/pom.xml
0 → 100644
浏览文件 @
dc7e0fe9
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<parent>
<artifactId>
activiti-spring-conformance-tests
</artifactId>
<groupId>
org.activiti
</groupId>
<version>
7.0.0-SNAPSHOT
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
activiti-spring-conformance-variables
</artifactId>
<packaging>
jar
</packaging>
<name>
Activiti Spring :: Conformance Variables
</name>
<description>
Activiti Spring :: Conformance Variables
</description>
<dependencies>
<dependency>
<groupId>
org.activiti
</groupId>
<artifactId>
activiti-spring-conformance-util
</artifactId>
</dependency>
<dependency>
<groupId>
org.activiti.api
</groupId>
<artifactId>
activiti-api-process-runtime
</artifactId>
</dependency>
<dependency>
<groupId>
org.activiti.api
</groupId>
<artifactId>
activiti-api-task-runtime
</artifactId>
</dependency>
<dependency>
<groupId>
org.activiti.api
</groupId>
<artifactId>
activiti-api-runtime-shared
</artifactId>
</dependency>
<dependency>
<groupId>
org.activiti.api
</groupId>
<artifactId>
activiti-api-task-model
</artifactId>
</dependency>
<dependency>
<groupId>
org.activiti.api
</groupId>
<artifactId>
activiti-api-process-model
</artifactId>
</dependency>
<dependency>
<groupId>
org.activiti.api
</groupId>
<artifactId>
activiti-api-model-shared
</artifactId>
</dependency>
<dependency>
<groupId>
org.activiti
</groupId>
<artifactId>
activiti-engine
</artifactId>
</dependency>
<dependency>
<groupId>
org.activiti
</groupId>
<artifactId>
activiti-spring-boot-starter
</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
</dependency>
<dependency>
<groupId>
org.slf4j
</groupId>
<artifactId>
slf4j-api
</artifactId>
</dependency>
<dependency>
<groupId>
com.h2database
</groupId>
<artifactId>
h2
</artifactId>
<scope>
test
</scope>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-test
</artifactId>
<scope>
test
</scope>
</dependency>
</dependencies>
</project>
\ No newline at end of file
activiti-spring-conformance-tests/activiti-spring-conformance-variables/src/test/java/org/activiti/spring/conformance/variables/Application.java
0 → 100644
浏览文件 @
dc7e0fe9
package
org.activiti.spring.conformance.variables
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
@SpringBootApplication
public
class
Application
{
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
Application
.
class
);
}
}
activiti-spring-conformance-tests/activiti-spring-conformance-variables/src/test/java/org/activiti/spring/conformance/variables/TaskVariablesTest.java
0 → 100644
浏览文件 @
dc7e0fe9
package
org.activiti.spring.conformance.variables
;
import
org.activiti.api.process.model.ProcessInstance
;
import
org.activiti.api.process.model.builders.ProcessPayloadBuilder
;
import
org.activiti.api.process.runtime.ProcessAdminRuntime
;
import
org.activiti.api.process.runtime.ProcessRuntime
;
import
org.activiti.api.runtime.shared.query.Page
;
import
org.activiti.api.runtime.shared.query.Pageable
;
import
org.activiti.api.task.model.Task
;
import
org.activiti.api.task.model.builders.GetTaskVariablesPayloadBuilder
;
import
org.activiti.api.task.model.builders.SetTaskVariablesPayloadBuilder
;
import
org.activiti.api.task.runtime.TaskRuntime
;
import
org.activiti.api.model.shared.model.VariableInstance
;
import
org.activiti.spring.conformance.util.security.SecurityUtil
;
import
org.junit.After
;
import
org.junit.Before
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.test.context.SpringBootTest
;
import
org.springframework.test.context.junit4.SpringRunner
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
static
org
.
activiti
.
spring
.
conformance
.
variables
.
VariablesRuntimeTestConfiguration
.
collectedEvents
;
import
static
org
.
assertj
.
core
.
api
.
Assertions
.
assertThat
;
@RunWith
(
SpringRunner
.
class
)
@SpringBootTest
(
webEnvironment
=
SpringBootTest
.
WebEnvironment
.
NONE
)
public
class
TaskVariablesTest
{
private
final
String
processKey
=
"usertaskas-b5300a4b-8950-4486-ba20-a8d775a3d75d"
;
@Autowired
private
ProcessRuntime
processRuntime
;
@Autowired
private
TaskRuntime
taskRuntime
;
@Autowired
private
SecurityUtil
securityUtil
;
@Autowired
private
ProcessAdminRuntime
processAdminRuntime
;
@Before
public
void
cleanUp
()
{
collectedEvents
.
clear
();
}
@Test
public
void
shouldGetSameNamesAndValues
()
{
securityUtil
.
logInAs
(
"user1"
);
ProcessInstance
processInstance
=
processRuntime
.
start
(
ProcessPayloadBuilder
.
start
()
.
withProcessDefinitionKey
(
processKey
)
.
withBusinessKey
(
"my-business-key"
)
.
withName
(
"my-process-instance-name"
)
.
build
());
Page
<
Task
>
tasks
=
taskRuntime
.
tasks
(
Pageable
.
of
(
0
,
50
));
Task
task
=
tasks
.
getContent
().
get
(
0
);
assertThat
(
tasks
.
getTotalItems
()).
isEqualTo
(
1
);
Map
<
String
,
Object
>
variablesMap
=
new
HashMap
<>();
variablesMap
.
put
(
"one"
,
"variableOne"
);
variablesMap
.
put
(
"two"
,
2
);
taskRuntime
.
setVariables
(
new
SetTaskVariablesPayloadBuilder
().
withVariables
(
variablesMap
).
withTaskId
(
task
.
getId
()).
build
());
List
<
VariableInstance
>
variableInstanceList
=
taskRuntime
.
variables
(
new
GetTaskVariablesPayloadBuilder
().
withTaskId
(
task
.
getId
()).
build
());
VariableInstance
variableOne
=
variableInstanceList
.
get
(
0
);
String
valueOne
=
variableOne
.
getValue
();
assertThat
(
valueOne
).
isEqualTo
(
"variableOne"
);
String
nameOne
=
variableOne
.
getName
();
assertThat
(
nameOne
).
isEqualTo
(
"one"
);
}
@Test
public
void
shouldGetTaskIdAndProcessInstanceId
()
{
securityUtil
.
logInAs
(
"user1"
);
ProcessInstance
processInstance
=
processRuntime
.
start
(
ProcessPayloadBuilder
.
start
()
.
withProcessDefinitionKey
(
processKey
)
.
withBusinessKey
(
"my-business-key"
)
.
withName
(
"my-process-instance-name"
)
.
build
());
Page
<
Task
>
tasks
=
taskRuntime
.
tasks
(
Pageable
.
of
(
0
,
50
));
Task
task
=
tasks
.
getContent
().
get
(
0
);
assertThat
(
tasks
.
getTotalItems
()).
isEqualTo
(
1
);
Map
<
String
,
Object
>
variablesMap
=
new
HashMap
<>();
variablesMap
.
put
(
"one"
,
"variableOne"
);
variablesMap
.
put
(
"two"
,
2
);
taskRuntime
.
setVariables
(
new
SetTaskVariablesPayloadBuilder
().
withVariables
(
variablesMap
).
withTaskId
(
task
.
getId
()).
build
());
List
<
VariableInstance
>
variableInstanceList
=
taskRuntime
.
variables
(
new
GetTaskVariablesPayloadBuilder
().
withTaskId
(
task
.
getId
()).
build
());
VariableInstance
variableOne
=
variableInstanceList
.
get
(
0
);
assertThat
(
variableOne
.
getTaskId
()).
isEqualTo
(
task
.
getId
());
assertThat
(
variableOne
.
getProcessInstanceId
()).
isEqualTo
(
processInstance
.
getId
());
}
@Test
public
void
shouldBeTaskVariable
()
{
securityUtil
.
logInAs
(
"user1"
);
ProcessInstance
processInstance
=
processRuntime
.
start
(
ProcessPayloadBuilder
.
start
()
.
withProcessDefinitionKey
(
processKey
)
.
withBusinessKey
(
"my-business-key"
)
.
withName
(
"my-process-instance-name"
)
.
build
());
Page
<
Task
>
tasks
=
taskRuntime
.
tasks
(
Pageable
.
of
(
0
,
50
));
Task
task
=
tasks
.
getContent
().
get
(
0
);
assertThat
(
tasks
.
getTotalItems
()).
isEqualTo
(
1
);
Map
<
String
,
Object
>
variablesMap
=
new
HashMap
<>();
variablesMap
.
put
(
"one"
,
"variableOne"
);
variablesMap
.
put
(
"two"
,
2
);
taskRuntime
.
setVariables
(
new
SetTaskVariablesPayloadBuilder
().
withVariables
(
variablesMap
).
withTaskId
(
task
.
getId
()).
build
());
List
<
VariableInstance
>
variableInstanceList
=
taskRuntime
.
variables
(
new
GetTaskVariablesPayloadBuilder
().
withTaskId
(
task
.
getId
()).
build
());
VariableInstance
variableOne
=
variableInstanceList
.
get
(
0
);
assertThat
(
variableOne
.
isTaskVariable
()).
isTrue
();
}
@Test
public
void
shouldGetRightVariableType
(){
securityUtil
.
logInAs
(
"user1"
);
ProcessInstance
processInstance
=
processRuntime
.
start
(
ProcessPayloadBuilder
.
start
()
.
withProcessDefinitionKey
(
processKey
)
.
withBusinessKey
(
"my-business-key"
)
.
withName
(
"my-process-instance-name"
)
.
build
());
Page
<
Task
>
tasks
=
taskRuntime
.
tasks
(
Pageable
.
of
(
0
,
50
));
Task
task
=
tasks
.
getContent
().
get
(
0
);
assertThat
(
tasks
.
getTotalItems
()).
isEqualTo
(
1
);
Map
<
String
,
Object
>
variablesMap
=
new
HashMap
<>();
variablesMap
.
put
(
"one"
,
"variableOne"
);
variablesMap
.
put
(
"two"
,
2
);
taskRuntime
.
setVariables
(
new
SetTaskVariablesPayloadBuilder
().
withVariables
(
variablesMap
).
withTaskId
(
task
.
getId
()).
build
());
List
<
VariableInstance
>
variableInstanceList
=
taskRuntime
.
variables
(
new
GetTaskVariablesPayloadBuilder
().
withTaskId
(
task
.
getId
()).
build
());
VariableInstance
variableOne
=
variableInstanceList
.
get
(
0
);
VariableInstance
variableTwo
=
variableInstanceList
.
get
(
1
);
assertThat
(
variableOne
.
getType
()).
isEqualTo
(
"string"
);
assertThat
(
variableTwo
.
getType
()).
isEqualTo
(
"integer"
);
}
@After
public
void
cleanup
()
{
securityUtil
.
logInAs
(
"admin"
);
Page
<
ProcessInstance
>
processInstancePage
=
processAdminRuntime
.
processInstances
(
Pageable
.
of
(
0
,
50
));
for
(
ProcessInstance
pi
:
processInstancePage
.
getContent
())
{
processAdminRuntime
.
delete
(
ProcessPayloadBuilder
.
delete
(
pi
.
getId
()));
}
}
}
activiti-spring-conformance-tests/activiti-spring-conformance-variables/src/test/java/org/activiti/spring/conformance/variables/VariablesRuntimeTestConfiguration.java
0 → 100644
浏览文件 @
dc7e0fe9
package
org.activiti.spring.conformance.variables
;
import
org.activiti.api.model.shared.event.RuntimeEvent
;
import
org.activiti.api.model.shared.event.VariableCreatedEvent
;
import
org.activiti.api.model.shared.event.VariableDeletedEvent
;
import
org.activiti.api.model.shared.event.VariableUpdatedEvent
;
import
org.activiti.api.process.model.events.BPMNActivityCancelledEvent
;
import
org.activiti.api.process.model.events.BPMNActivityCompletedEvent
;
import
org.activiti.api.process.model.events.BPMNActivityStartedEvent
;
import
org.activiti.api.process.model.events.BPMNSequenceFlowTakenEvent
;
import
org.activiti.api.process.runtime.events.*
;
import
org.activiti.api.process.runtime.events.listener.BPMNElementEventListener
;
import
org.activiti.api.process.runtime.events.listener.ProcessRuntimeEventListener
;
import
org.activiti.api.runtime.shared.events.VariableEventListener
;
import
org.activiti.api.task.runtime.events.*
;
import
org.activiti.api.task.runtime.events.listener.TaskEventListener
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.context.annotation.Bean
;
import
java.util.ArrayList
;
import
java.util.List
;
public
class
VariablesRuntimeTestConfiguration
{
private
static
final
Logger
LOGGER
=
LoggerFactory
.
getLogger
(
VariablesRuntimeTestConfiguration
.
class
);
public
static
List
<
RuntimeEvent
>
collectedEvents
=
new
ArrayList
<>();
@Bean
public
BPMNElementEventListener
<
BPMNActivityStartedEvent
>
bpmnActivityStartedListener
()
{
return
bpmnActivityStartedEvent
->
collectedEvents
.
add
(
bpmnActivityStartedEvent
);
}
@Bean
public
BPMNElementEventListener
<
BPMNActivityCompletedEvent
>
bpmnActivityCompletedListener
()
{
return
bpmnActivityCompletedEvent
->
collectedEvents
.
add
(
bpmnActivityCompletedEvent
);
}
@Bean
public
BPMNElementEventListener
<
BPMNActivityCancelledEvent
>
bpmnActivityCancelledListener
()
{
return
bpmnActivityCancelledEvent
->
collectedEvents
.
add
(
bpmnActivityCancelledEvent
);
}
@Bean
public
BPMNElementEventListener
<
BPMNSequenceFlowTakenEvent
>
bpmnSequenceFlowTakenListener
()
{
return
bpmnSequenceFlowTakenEvent
->
collectedEvents
.
add
(
bpmnSequenceFlowTakenEvent
);
}
@Bean
public
ProcessRuntimeEventListener
<
ProcessCreatedEvent
>
processCreatedListener
()
{
return
processCreatedEvent
->
collectedEvents
.
add
(
processCreatedEvent
);
}
@Bean
public
ProcessRuntimeEventListener
<
ProcessStartedEvent
>
processStartedListener
()
{
return
processStartedEvent
->
collectedEvents
.
add
(
processStartedEvent
);
}
@Bean
public
ProcessRuntimeEventListener
<
ProcessCompletedEvent
>
processCompletedListener
()
{
return
processCompletedEvent
->
collectedEvents
.
add
(
processCompletedEvent
);
}
@Bean
public
ProcessRuntimeEventListener
<
ProcessResumedEvent
>
processResumedListener
()
{
return
processResumedEvent
->
collectedEvents
.
add
(
processResumedEvent
);
}
@Bean
public
ProcessRuntimeEventListener
<
ProcessSuspendedEvent
>
processSuspendedListener
()
{
return
processSuspendedEvent
->
collectedEvents
.
add
(
processSuspendedEvent
);
}
@Bean
public
ProcessRuntimeEventListener
<
ProcessCancelledEvent
>
processCancelledListener
()
{
return
processCancelledEvent
->
collectedEvents
.
add
(
processCancelledEvent
);
}
@Bean
public
VariableEventListener
<
VariableCreatedEvent
>
variableCreatedEventListener
()
{
return
variableCreatedEvent
->
collectedEvents
.
add
(
variableCreatedEvent
);
}
@Bean
public
VariableEventListener
<
VariableDeletedEvent
>
variableDeletedEventListener
()
{
return
variableDeletedEvent
->
collectedEvents
.
add
(
variableDeletedEvent
);
}
@Bean
public
VariableEventListener
<
VariableUpdatedEvent
>
variableUpdatedEventListener
()
{
return
variableUpdatedEvent
->
collectedEvents
.
add
(
variableUpdatedEvent
);
}
@Bean
public
TaskEventListener
<
TaskCreatedEvent
>
taskCreatedEventListener
()
{
return
taskCreatedEvent
->
collectedEvents
.
add
(
taskCreatedEvent
);
}
@Bean
public
TaskEventListener
<
TaskUpdatedEvent
>
taskUpdatedEventListener
()
{
return
taskUpdatedEvent
->
collectedEvents
.
add
(
taskUpdatedEvent
);
}
@Bean
public
TaskEventListener
<
TaskCompletedEvent
>
taskCompletedEventListener
()
{
return
taskCompletedEvent
->
collectedEvents
.
add
(
taskCompletedEvent
);
}
@Bean
public
TaskEventListener
<
TaskSuspendedEvent
>
taskSuspendedEventListener
()
{
return
taskSuspendedEvent
->
collectedEvents
.
add
(
taskSuspendedEvent
);
}
@Bean
public
TaskEventListener
<
TaskAssignedEvent
>
taskAssignedEventListener
()
{
return
taskAssignedEvent
->
collectedEvents
.
add
(
taskAssignedEvent
);
}
}
activiti-spring-conformance-tests/activiti-spring-conformance-variables/src/test/resources/processes/user-task-assignee-followed-group1.bpmn20.xml
0 → 100755
浏览文件 @
dc7e0fe9
<?xml version="1.0" encoding="UTF-8"?>
<bpmn2:definitions
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns:bpmn2=
"http://www.omg.org/spec/BPMN/20100524/MODEL"
xmlns:bpmndi=
"http://www.omg.org/spec/BPMN/20100524/DI"
xmlns:dc=
"http://www.omg.org/spec/DD/20100524/DC"
xmlns:di=
"http://www.omg.org/spec/DD/20100524/DI"
xmlns:activiti=
"http://activiti.org/bpmn"
id=
"sample-diagram"
targetNamespace=
"http://bpmn.io/schema/bpmn"
xsi:schemaLocation=
"http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd"
>
<bpmn2:process
id=
"usertaskas-b5300a4b-8950-4486-ba20-a8d775a3d75d"
name=
"UserTask Assignee Followed By Group1"
isExecutable=
"true"
>
<bpmn2:documentation
/>
<bpmn2:startEvent
id=
"StartEvent_1"
>
<bpmn2:outgoing>
SequenceFlow_1uccvwa
</bpmn2:outgoing>
</bpmn2:startEvent>
<bpmn2:sequenceFlow
id=
"SequenceFlow_1uccvwa"
sourceRef=
"StartEvent_1"
targetRef=
"Task_0pmsax8"
/>
<bpmn2:sequenceFlow
id=
"SequenceFlow_151v2cg"
sourceRef=
"Task_0pmsax8"
targetRef=
"Task_0rdamee"
/>
<bpmn2:endEvent
id=
"EndEvent_0zp4rcd"
>
<bpmn2:incoming>
SequenceFlow_0le1m49
</bpmn2:incoming>
</bpmn2:endEvent>
<bpmn2:sequenceFlow
id=
"SequenceFlow_0le1m49"
sourceRef=
"Task_0rdamee"
targetRef=
"EndEvent_0zp4rcd"
/>
<bpmn2:userTask
id=
"Task_0pmsax8"
name=
"Task User1"
activiti:assignee=
"user1"
>
<bpmn2:incoming>
SequenceFlow_1uccvwa
</bpmn2:incoming>
<bpmn2:outgoing>
SequenceFlow_151v2cg
</bpmn2:outgoing>
</bpmn2:userTask>
<bpmn2:userTask
id=
"Task_0rdamee"
name=
"Task Group1"
activiti:candidateGroups=
"group1"
>
<bpmn2:incoming>
SequenceFlow_151v2cg
</bpmn2:incoming>
<bpmn2:outgoing>
SequenceFlow_0le1m49
</bpmn2:outgoing>
</bpmn2:userTask>
</bpmn2:process>
<bpmndi:BPMNDiagram
id=
"BPMNDiagram_1"
>
<bpmndi:BPMNPlane
id=
"BPMNPlane_1"
bpmnElement=
"usertaskas-b5300a4b-8950-4486-ba20-a8d775a3d75d"
>
<bpmndi:BPMNShape
id=
"_BPMNShape_StartEvent_2"
bpmnElement=
"StartEvent_1"
>
<dc:Bounds
x=
"103"
y=
"33"
width=
"36"
height=
"36"
/>
<bpmndi:BPMNLabel>
<dc:Bounds
x=
"76"
y=
"69"
width=
"90"
height=
"20"
/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge
id=
"SequenceFlow_1uccvwa_di"
bpmnElement=
"SequenceFlow_1uccvwa"
>
<di:waypoint
x=
"139"
y=
"51"
/>
<di:waypoint
x=
"189"
y=
"51"
/>
<bpmndi:BPMNLabel>
<dc:Bounds
x=
"164"
y=
"29.5"
width=
"0"
height=
"13"
/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge
id=
"SequenceFlow_151v2cg_di"
bpmnElement=
"SequenceFlow_151v2cg"
>
<di:waypoint
x=
"289"
y=
"51"
/>
<di:waypoint
x=
"339"
y=
"51"
/>
<bpmndi:BPMNLabel>
<dc:Bounds
x=
"314"
y=
"29.5"
width=
"0"
height=
"13"
/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape
id=
"EndEvent_0zp4rcd_di"
bpmnElement=
"EndEvent_0zp4rcd"
>
<dc:Bounds
x=
"489"
y=
"33"
width=
"36"
height=
"36"
/>
<bpmndi:BPMNLabel>
<dc:Bounds
x=
"507"
y=
"72"
width=
"0"
height=
"13"
/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge
id=
"SequenceFlow_0le1m49_di"
bpmnElement=
"SequenceFlow_0le1m49"
>
<di:waypoint
x=
"439"
y=
"51"
/>
<di:waypoint
x=
"489"
y=
"51"
/>
<bpmndi:BPMNLabel>
<dc:Bounds
x=
"464"
y=
"29.5"
width=
"0"
height=
"13"
/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape
id=
"UserTask_1yqq1gz_di"
bpmnElement=
"Task_0pmsax8"
>
<dc:Bounds
x=
"189"
y=
"11"
width=
"100"
height=
"80"
/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape
id=
"UserTask_1dbp00f_di"
bpmnElement=
"Task_0rdamee"
>
<dc:Bounds
x=
"339"
y=
"11"
width=
"100"
height=
"80"
/>
</bpmndi:BPMNShape>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn2:definitions>
activiti-spring-conformance-tests/activiti-spring-conformance-variables/src/test/resources/processes/user-task-candidate-group.bpmn20.xml
0 → 100755
浏览文件 @
dc7e0fe9
<?xml version="1.0" encoding="UTF-8"?>
<bpmn2:definitions
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns:bpmn2=
"http://www.omg.org/spec/BPMN/20100524/MODEL"
xmlns:bpmndi=
"http://www.omg.org/spec/BPMN/20100524/DI"
xmlns:dc=
"http://www.omg.org/spec/DD/20100524/DC"
xmlns:di=
"http://www.omg.org/spec/DD/20100524/DI"
xmlns:activiti=
"http://activiti.org/bpmn"
id=
"sample-diagram"
targetNamespace=
"http://bpmn.io/schema/bpmn"
xsi:schemaLocation=
"http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd"
>
<bpmn2:process
id=
"usertaskca-1e577517-7404-4645-b650-4fbde528f612"
name=
"UserTask Candidate Group"
isExecutable=
"true"
>
<bpmn2:documentation
/>
<bpmn2:startEvent
id=
"StartEvent_1"
>
<bpmn2:outgoing>
SequenceFlow_10vblge
</bpmn2:outgoing>
</bpmn2:startEvent>
<bpmn2:sequenceFlow
id=
"SequenceFlow_10vblge"
sourceRef=
"StartEvent_1"
targetRef=
"Task_0r8goei"
/>
<bpmn2:endEvent
id=
"EndEvent_191qi0q"
>
<bpmn2:incoming>
SequenceFlow_0vf8cap
</bpmn2:incoming>
</bpmn2:endEvent>
<bpmn2:sequenceFlow
id=
"SequenceFlow_0vf8cap"
sourceRef=
"Task_0r8goei"
targetRef=
"EndEvent_191qi0q"
/>
<bpmn2:userTask
id=
"Task_0r8goei"
name=
"Task Group 1"
activiti:candidateGroups=
"group1"
>
<bpmn2:incoming>
SequenceFlow_10vblge
</bpmn2:incoming>
<bpmn2:outgoing>
SequenceFlow_0vf8cap
</bpmn2:outgoing>
</bpmn2:userTask>
</bpmn2:process>
<bpmndi:BPMNDiagram
id=
"BPMNDiagram_1"
>
<bpmndi:BPMNPlane
id=
"BPMNPlane_1"
bpmnElement=
"usertaskca-1e577517-7404-4645-b650-4fbde528f612"
>
<bpmndi:BPMNShape
id=
"_BPMNShape_StartEvent_2"
bpmnElement=
"StartEvent_1"
>
<dc:Bounds
x=
"157"
y=
"100"
width=
"36"
height=
"36"
/>
<bpmndi:BPMNLabel>
<dc:Bounds
x=
"130"
y=
"136"
width=
"90"
height=
"20"
/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge
id=
"SequenceFlow_10vblge_di"
bpmnElement=
"SequenceFlow_10vblge"
>
<di:waypoint
x=
"193"
y=
"118"
/>
<di:waypoint
x=
"243"
y=
"118"
/>
<bpmndi:BPMNLabel>
<dc:Bounds
x=
"218"
y=
"96.5"
width=
"0"
height=
"13"
/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape
id=
"EndEvent_191qi0q_di"
bpmnElement=
"EndEvent_191qi0q"
>
<dc:Bounds
x=
"393"
y=
"100"
width=
"36"
height=
"36"
/>
<bpmndi:BPMNLabel>
<dc:Bounds
x=
"411"
y=
"139"
width=
"0"
height=
"13"
/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge
id=
"SequenceFlow_0vf8cap_di"
bpmnElement=
"SequenceFlow_0vf8cap"
>
<di:waypoint
x=
"343"
y=
"118"
/>
<di:waypoint
x=
"393"
y=
"118"
/>
<bpmndi:BPMNLabel>
<dc:Bounds
x=
"368"
y=
"96.5"
width=
"0"
height=
"13"
/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape
id=
"UserTask_13g60ey_di"
bpmnElement=
"Task_0r8goei"
>
<dc:Bounds
x=
"243"
y=
"78"
width=
"100"
height=
"80"
/>
</bpmndi:BPMNShape>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn2:definitions>
activiti-spring-conformance-tests/activiti-spring-conformance-variables/src/test/resources/processes/user-task-group1-followed-group2.bpmn20.xml
0 → 100755
浏览文件 @
dc7e0fe9
<?xml version="1.0" encoding="UTF-8"?>
<bpmn2:definitions
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns:bpmn2=
"http://www.omg.org/spec/BPMN/20100524/MODEL"
xmlns:bpmndi=
"http://www.omg.org/spec/BPMN/20100524/DI"
xmlns:dc=
"http://www.omg.org/spec/DD/20100524/DC"
xmlns:di=
"http://www.omg.org/spec/DD/20100524/DI"
xmlns:activiti=
"http://activiti.org/bpmn"
id=
"sample-diagram"
targetNamespace=
"http://bpmn.io/schema/bpmn"
xsi:schemaLocation=
"http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd"
>
<bpmn2:process
id=
"usertaskgr-1a8cdf77-0981-45d4-8080-7cf1a80c973b"
name=
"UserTask Candidate Group1 Followed by Group2"
isExecutable=
"true"
>
<bpmn2:documentation
/>
<bpmn2:startEvent
id=
"StartEvent_1"
>
<bpmn2:outgoing>
SequenceFlow_052072h
</bpmn2:outgoing>
</bpmn2:startEvent>
<bpmn2:sequenceFlow
id=
"SequenceFlow_052072h"
sourceRef=
"StartEvent_1"
targetRef=
"Task_1dq9dtf"
/>
<bpmn2:sequenceFlow
id=
"SequenceFlow_0cyfmaw"
sourceRef=
"Task_1dq9dtf"
targetRef=
"Task_0viibyv"
/>
<bpmn2:endEvent
id=
"EndEvent_1ee100d"
>
<bpmn2:incoming>
SequenceFlow_16g2n05
</bpmn2:incoming>
</bpmn2:endEvent>
<bpmn2:sequenceFlow
id=
"SequenceFlow_16g2n05"
sourceRef=
"Task_0viibyv"
targetRef=
"EndEvent_1ee100d"
/>
<bpmn2:userTask
id=
"Task_1dq9dtf"
name=
"Task Group 1"
activiti:candidateGroups=
"group1"
>
<bpmn2:incoming>
SequenceFlow_052072h
</bpmn2:incoming>
<bpmn2:outgoing>
SequenceFlow_0cyfmaw
</bpmn2:outgoing>
</bpmn2:userTask>
<bpmn2:userTask
id=
"Task_0viibyv"
name=
"Task Group 2"
activiti:candidateGroups=
"group2"
>
<bpmn2:incoming>
SequenceFlow_0cyfmaw
</bpmn2:incoming>
<bpmn2:outgoing>
SequenceFlow_16g2n05
</bpmn2:outgoing>
</bpmn2:userTask>
</bpmn2:process>
<bpmndi:BPMNDiagram
id=
"BPMNDiagram_1"
>
<bpmndi:BPMNPlane
id=
"BPMNPlane_1"
bpmnElement=
"usertaskgr-1a8cdf77-0981-45d4-8080-7cf1a80c973b"
>
<bpmndi:BPMNShape
id=
"_BPMNShape_StartEvent_2"
bpmnElement=
"StartEvent_1"
>
<dc:Bounds
x=
"121"
y=
"66"
width=
"36"
height=
"36"
/>
<bpmndi:BPMNLabel>
<dc:Bounds
x=
"94"
y=
"102"
width=
"90"
height=
"20"
/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge
id=
"SequenceFlow_052072h_di"
bpmnElement=
"SequenceFlow_052072h"
>
<di:waypoint
x=
"157"
y=
"84"
/>
<di:waypoint
x=
"207"
y=
"84"
/>
<bpmndi:BPMNLabel>
<dc:Bounds
x=
"182"
y=
"62.5"
width=
"0"
height=
"13"
/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge
id=
"SequenceFlow_0cyfmaw_di"
bpmnElement=
"SequenceFlow_0cyfmaw"
>
<di:waypoint
x=
"307"
y=
"84"
/>
<di:waypoint
x=
"357"
y=
"84"
/>
<bpmndi:BPMNLabel>
<dc:Bounds
x=
"332"
y=
"62.5"
width=
"0"
height=
"13"
/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape
id=
"EndEvent_1ee100d_di"
bpmnElement=
"EndEvent_1ee100d"
>
<dc:Bounds
x=
"507"
y=
"66"
width=
"36"
height=
"36"
/>
<bpmndi:BPMNLabel>
<dc:Bounds
x=
"525"
y=
"105"
width=
"0"
height=
"13"
/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge
id=
"SequenceFlow_16g2n05_di"
bpmnElement=
"SequenceFlow_16g2n05"
>
<di:waypoint
x=
"457"
y=
"84"
/>
<di:waypoint
x=
"507"
y=
"84"
/>
<bpmndi:BPMNLabel>
<dc:Bounds
x=
"482"
y=
"62.5"
width=
"0"
height=
"13"
/>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape
id=
"UserTask_10d3usd_di"
bpmnElement=
"Task_1dq9dtf"
>
<dc:Bounds
x=
"207"
y=
"44"
width=
"100"
height=
"80"
/>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape
id=
"UserTask_1rlpea8_di"
bpmnElement=
"Task_0viibyv"
>
<dc:Bounds
x=
"357"
y=
"44"
width=
"100"
height=
"80"
/>
</bpmndi:BPMNShape>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn2:definitions>
activiti-spring-conformance-tests/pom.xml
浏览文件 @
dc7e0fe9
...
...
@@ -23,5 +23,6 @@
<module>
activiti-spring-conformance-set3
</module>
<module>
activiti-spring-conformance-set4
</module>
<module>
activiti-spring-conformance-set5
</module>
<module>
activiti-spring-conformance-variables
</module>
</modules>
</project>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录