Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
datacollector
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenweisong
datacollector
Commits
4516ffc9
Commit
4516ffc9
authored
Apr 04, 2020
by
chenweisong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
ee00c4d6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
13 deletions
+21
-13
SubProcessStandard.bpmn
src/main/resources/SubProcessStandard.bpmn
+4
-2
application-test.yml
src/main/resources/application-test.yml
+5
-5
bootstrap.yml
src/main/resources/bootstrap.yml
+2
-2
ProcessTest.java
src/test/java/com/keymobile/ProcessTest.java
+10
-4
No files found.
src/main/resources/SubProcessStandard.bpmn
View file @
4516ffc9
...
...
@@ -9,11 +9,13 @@
</completionCondition>
</multiInstanceLoopCharacteristics>
<startEvent
id=
"SubStartEvent"
name=
"SubStartEvent"
/>
<userTask
activiti:assignee=
"${group}"
activiti:exclusive=
"true"
id=
"DataEnter"
name=
"DataEnter"
/>
<userTask
activiti:candidateGroups=
"${group}"
activiti:exclusive=
"true"
id=
"DataEnter"
name=
"DataEnter"
>
<documentation
id=
"_8_D_1"
/>
</userTask>
<sequenceFlow
id=
"_2"
sourceRef=
"SubStartEvent"
targetRef=
"DataEnter"
/>
<exclusiveGateway
gatewayDirection=
"Unspecified"
id=
"Gateway_1"
/>
<sequenceFlow
id=
"_5"
sourceRef=
"DataEnter"
targetRef=
"Gateway_1"
/>
<userTask
activiti:assignee=
"${auditUser}"
activiti:
exclusive=
"tru
e"
id=
"DataAudit"
name=
"DataAuditEvent"
/>
<userTask
activiti:assignee=
"${auditUser}"
activiti:
async=
"false"
activiti:exclusive=
"fals
e"
id=
"DataAudit"
name=
"DataAuditEvent"
/>
<sequenceFlow
id=
"_7"
sourceRef=
"Gateway_1"
targetRef=
"DataAudit"
>
<conditionExpression
xsi:type=
"tFormalExpression"
>
<![CDATA[${NeedDataAudit == true}]]>
...
...
src/main/resources/application-test.yml
View file @
4516ffc9
...
...
@@ -31,9 +31,9 @@ spring:
url
:
jdbc:mysql://192.168.0.192:3306/cmb_dev?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&serverTimezone=GMT%2B8
username
:
test
password
:
test
# url: jdbc:mysql://47.105.193.165:3306/dev0?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&serverTimezone=GMT%2B8
# username: root
# password: 123456
# url: jdbc:mysql://47.105.193.165:3306/dev0?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&serverTimezone=GMT%2B8
# username: root
# password: 123456
hikari
:
maximum-pool-size
:
3
servlet
:
...
...
@@ -42,7 +42,7 @@ spring:
max-request-size
:
100Mb
redis
:
host
:
192.168.0.192
# host: 127.0.0.1
# host: 127.0.0.1
port
:
6379
session
:
store-type
:
redis
...
...
@@ -54,7 +54,7 @@ server:
port
:
8110
app
:
default-bpmn-file
:
More
SubProcessStandard.bpmn
default-bpmn-file
:
SubProcessStandard.bpmn
swagger2
:
host
:
192.168.0.240:8762/api/datacollector
...
...
src/main/resources/bootstrap.yml
View file @
4516ffc9
...
...
@@ -3,4 +3,4 @@ spring:
name
:
dataCollector
app
:
default-bpmn-file
:
MoreSubProcessStandard.bpmn
\ No newline at end of file
default-bpmn-file
:
SubProcessStandard.bpmn
\ No newline at end of file
src/test/java/com/keymobile/ProcessTest.java
View file @
4516ffc9
...
...
@@ -11,6 +11,7 @@ import org.activiti.engine.runtime.ProcessInstance;
import
org.activiti.engine.task.IdentityLink
;
import
org.activiti.engine.task.Task
;
import
org.apache.commons.lang.StringUtils
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.springframework.boot.test.context.SpringBootTest
;
import
org.springframework.test.context.junit4.SpringRunner
;
...
...
@@ -39,7 +40,7 @@ public class ProcessTest {
// @Value("${app.active-process}")
private
String
process
=
"SubProcessStandard.bpmn"
;
//
@Test
// @Test
public
void
createActivitiTask
()
{
// 加载的我们创建好的demo.bpmn 文件还有png文件
// 获取流的引擎
...
...
@@ -102,7 +103,7 @@ public class ProcessTest {
}
// @Test
// @Test
public
void
start
()
{
// 65046
...
...
@@ -168,7 +169,7 @@ public class ProcessTest {
}
// @Test
// @Test
public
void
zhuguan
()
{
// try {
...
...
@@ -236,9 +237,14 @@ public class ProcessTest {
// taskService.complete("60039", ImmutableMap.of("DataAudit", true, "NeedDataAudit", true,"auditUser","asdsa", "NeedConfirm", false, "NeedDataBack", false));
// taskService.claim("60039", "asdsadsadsa");
// taskService.complete("67504", ImmutableMap.of( "NeedDataAudit", true,"auditUser","asdsa"));
taskService
.
complete
(
"70003"
,
ImmutableMap
.
of
(
"DataAudit"
,
false
));
// taskService.complete("295003", ImmutableMap.of( "NeedDataAudit", false, "NeedConfirm", false));
taskService
.
complete
(
"340009"
,
ImmutableMap
.
of
(
"Confirm"
,
true
));
// taskService.complete("337525", ImmutableMap.of("NeedDataAudit", false));
// taskService.complete("337532", ImmutableMap.of("NeedDataAudit", false, "NeedConfirm", true, "manager", "abcaisdas"));
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment