Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
topsun-bpm
Project
Project
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
鲁鑫
topsun-bpm
Commits
9591fb4d
Commit
9591fb4d
authored
Nov 17, 2023
by
鲁鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
请假流程demo
parent
54e59267
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
153 additions
and
25 deletions
+153
-25
WEB_APP.js
huigou-xt/src/main/webapp/javaScript/WEB_APP.js
+1
-1
application.properties
topsun-xt/src/main/resources/application.properties
+4
-4
leaveDetails.jsp
topsun-xt/src/main/webapp/biz/topsun/demo/leaveDetails.jsp
+0
-0
leaveList.jsp
topsun-xt/src/main/webapp/biz/topsun/demo/leaveList.jsp
+0
-0
HomePage.js
topsun-xt/src/main/webapp/javaScript/HomePage.js
+2
-2
LeaveApplication.java
.../com/huigou/topsun/demo/application/LeaveApplication.java
+17
-0
LeaveApplicationImpl.java
...ou/topsun/demo/application/impl/LeaveApplicationImpl.java
+6
-6
LeaveController.java
...va/com/huigou/topsun/demo/controller/LeaveController.java
+6
-6
Leave.java
.../main/java/com/huigou/topsun/demo/domain/model/Leave.java
+1
-1
LeaveQuery.java
.../java/com/huigou/topsun/demo/domain/query/LeaveQuery.java
+1
-1
LeaveMapper.java
.../main/java/com/huigou/topsun/demo/mapper/LeaveMapper.java
+2
-2
LeaveRepository.java
...va/com/huigou/topsun/demo/repository/LeaveRepository.java
+2
-2
leaveProc.bpmn
topsun/src/main/resources/config/bpm/topsun/leaveProc.bpmn
+111
-0
No files found.
huigou-xt/src/main/webapp/javaScript/WEB_APP.js
View file @
9591fb4d
var
web_app
=
{
name
:
'/SSRF-xt'
};
\ No newline at end of file
var
web_app
=
{
name
:
'/topsun-bpm'
};
\ No newline at end of file
topsun-xt/src/main/resources/application.properties
View file @
9591fb4d
...
...
@@ -7,12 +7,12 @@
#log.db.password=123456
pub.db.url
=
jdbc:mysql://127.0.0.1:3306/topsun?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf-8&useSSL=false
pub.db.user
=
root
pub.db.password
=
root
pub.db.user
=
topsun
pub.db.password
=
topsun
log.db.url
=
jdbc:mysql://127.0.0.1:3306/topsun?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf-8&useSSL=false
log.db.user
=
root
log.db.password
=
root
log.db.user
=
topsun
log.db.password
=
topsun
shiro.host
=
127.0.0.1
shiro.port
=
6379
...
...
topsun-xt/src/main/webapp/biz/demo/leaveDetails.jsp
→
topsun-xt/src/main/webapp/biz/
topsun/
demo/leaveDetails.jsp
View file @
9591fb4d
File moved
topsun-xt/src/main/webapp/biz/demo/leaveList.jsp
→
topsun-xt/src/main/webapp/biz/
topsun/
demo/leaveList.jsp
View file @
9591fb4d
File moved
topsun-xt/src/main/webapp/javaScript/HomePage.js
View file @
9591fb4d
...
...
@@ -78,8 +78,8 @@ function bindEvent(){
function
reloadGrid
(){
//TasksExecute.js
initWorkTask
();
initCaution
();
//
initWorkTask();
//initCaution();
reloadExecuteTasks
();
}
...
...
topsun/src/main/java/com/huigou/demo/application/LeaveApplication.java
→
topsun/src/main/java/com/huigou/
topsun/
demo/application/LeaveApplication.java
View file @
9591fb4d
package
com
.
huigou
.
demo
.
application
;
package
com
.
huigou
.
topsun
.
demo
.
application
;
import
com.huigou.demo.domain.model.Leave
;
import
com.huigou.demo.domain.query.LeaveQuery
;
import
com.huigou.
topsun.
demo.domain.model.Leave
;
import
com.huigou.
topsun.
demo.domain.query.LeaveQuery
;
import
java.util.Map
;
public
interface
LeaveApplication
{
String
PROCESS_DEFINITION_KEY
=
"leave"
;
String
PROCESS_DEFINITION_KEY
=
"leave
Proc
"
;
Leave
loadLeaveById
(
String
id
);
...
...
topsun/src/main/java/com/huigou/demo/application/impl/LeaveApplicationImpl.java
→
topsun/src/main/java/com/huigou/
topsun/
demo/application/impl/LeaveApplicationImpl.java
View file @
9591fb4d
package
com
.
huigou
.
demo
.
application
.
impl
;
package
com
.
huigou
.
topsun
.
demo
.
application
.
impl
;
import
com.huigou.demo.application.LeaveApplication
;
import
com.huigou.demo.domain.model.Leave
;
import
com.huigou.demo.domain.query.LeaveQuery
;
import
com.huigou.demo.mapper.LeaveMapper
;
import
com.huigou.demo.repository.LeaveRepository
;
import
com.huigou.
topsun.
demo.application.LeaveApplication
;
import
com.huigou.
topsun.
demo.domain.model.Leave
;
import
com.huigou.
topsun.
demo.domain.query.LeaveQuery
;
import
com.huigou.
topsun.
demo.mapper.LeaveMapper
;
import
com.huigou.
topsun.
demo.repository.LeaveRepository
;
import
com.huigou.uasp.bmp.common.BizBillStatus
;
import
com.huigou.uasp.bpm.FlowBroker
;
import
com.huigou.util.ClassHelper
;
...
...
topsun/src/main/java/com/huigou/demo/controller/LeaveController.java
→
topsun/src/main/java/com/huigou/
topsun/
demo/controller/LeaveController.java
View file @
9591fb4d
package
com
.
huigou
.
demo
.
controller
;
package
com
.
huigou
.
topsun
.
demo
.
controller
;
import
com.huigou.context.Operator
;
import
com.huigou.context.OrgUnit
;
import
com.huigou.demo.application.LeaveApplication
;
import
com.huigou.demo.domain.model.Leave
;
import
com.huigou.demo.domain.query.LeaveQuery
;
import
com.huigou.
topsun.
demo.application.LeaveApplication
;
import
com.huigou.
topsun.
demo.domain.model.Leave
;
import
com.huigou.
topsun.
demo.domain.query.LeaveQuery
;
import
com.huigou.uasp.annotation.ControllerMapping
;
import
com.huigou.uasp.bmp.common.BizBillStatus
;
import
com.huigou.uasp.client.CommonController
;
...
...
@@ -25,13 +25,13 @@ public class LeaveController extends CommonController {
@Override
protected
String
getPagePath
()
{
return
"/biz/demo/"
;
return
"/biz/
topsun/
demo/"
;
}
/**
* 跳转到新增请假申请页面
*/
@RequiresPermissions
(
"leave:create"
)
//
@RequiresPermissions("leave:create")
public
String
showInsertLeave
()
throws
Exception
{
this
.
putAttribute
(
"processDefinitionKey"
,
LeaveApplication
.
PROCESS_DEFINITION_KEY
);
// 新增的时候procUnitId一定要设置成Apply,不然jsp页面的所有表单元素是readonly状态
...
...
topsun/src/main/java/com/huigou/demo/domain/model/Leave.java
→
topsun/src/main/java/com/huigou/
topsun/
demo/domain/model/Leave.java
View file @
9591fb4d
package
com
.
huigou
.
demo
.
domain
.
model
;
package
com
.
huigou
.
topsun
.
demo
.
domain
.
model
;
import
com.huigou.data.domain.model.FlowBillAbstractEntity
;
...
...
topsun/src/main/java/com/huigou/demo/domain/query/LeaveQuery.java
→
topsun/src/main/java/com/huigou/
topsun/
demo/domain/query/LeaveQuery.java
View file @
9591fb4d
package
com
.
huigou
.
demo
.
domain
.
query
;
package
com
.
huigou
.
topsun
.
demo
.
domain
.
query
;
import
com.huigou.data.domain.query.FlowBillSuperQueryRequest
;
...
...
topsun/src/main/java/com/huigou/demo/mapper/LeaveMapper.java
→
topsun/src/main/java/com/huigou/
topsun/
demo/mapper/LeaveMapper.java
View file @
9591fb4d
package
com
.
huigou
.
demo
.
mapper
;
package
com
.
huigou
.
topsun
.
demo
.
mapper
;
import
com.huigou.demo.domain.query.LeaveQuery
;
import
com.huigou.
topsun.
demo.domain.query.LeaveQuery
;
import
com.topsunit.query.annotations.Mapper
;
import
java.util.Map
;
...
...
topsun/src/main/java/com/huigou/demo/repository/LeaveRepository.java
→
topsun/src/main/java/com/huigou/
topsun/
demo/repository/LeaveRepository.java
View file @
9591fb4d
package
com
.
huigou
.
demo
.
repository
;
package
com
.
huigou
.
topsun
.
demo
.
repository
;
import
com.huigou.demo.domain.model.Leave
;
import
com.huigou.
topsun.
demo.domain.model.Leave
;
import
org.springframework.data.jpa.repository.JpaRepository
;
public
interface
LeaveRepository
extends
JpaRepository
<
Leave
,
String
>
{
...
...
topsun/src/main/resources/config/bpm/topsun/leaveProc.bpmn
0 → 100644
View file @
9591fb4d
<?xml version="1.0" encoding="UTF-8"?>
<definitions
xmlns=
"http://www.omg.org/spec/BPMN/20100524/MODEL"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
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"
xmlns:xsd=
"http://www.w3.org/2001/XMLSchema"
typeLanguage=
"http://www.w3.org/2001/XMLSchema"
expressionLanguage=
"http://www.w3.org/1999/XPath"
targetNamespace=
"http://www.activiti.org/test"
>
<process
id=
"leaveProc"
name=
"请假"
isExecutable=
"true"
>
<extensionElements>
<activiti:executionListener
event=
"start"
delegateExpression=
"#{leaveApplication}"
></activiti:executionListener>
<activiti:executionListener
event=
"end"
delegateExpression=
"#{leaveApplication}"
></activiti:executionListener>
</extensionElements>
<startEvent
id=
"startevent1"
name=
"Start"
></startEvent>
<endEvent
id=
"endevent1"
name=
"End"
></endEvent>
<userTask
id=
"Apply"
name=
"请假申请"
activiti:formKey=
"leave/showLeave.job"
>
<extensionElements>
<activiti:taskListener
event=
"all"
delegateExpression=
"#{leaveApplication}"
></activiti:taskListener>
<activiti:taskListener
event=
"saveBizData"
delegateExpression=
"#{leaveApplication}"
></activiti:taskListener>
</extensionElements>
</userTask>
<userTask
id=
"Approve"
name=
"请假审批"
activiti:assignee=
"${assignee} "
activiti:formKey=
"leave/showLeave.job"
>
<extensionElements>
<activiti:taskListener
event=
"all"
delegateExpression=
"#{leaveApplication}"
></activiti:taskListener>
<activiti:taskListener
event=
"saveBizData"
delegateExpression=
"#{leaveApplication}"
></activiti:taskListener>
</extensionElements>
<multiInstanceLoopCharacteristics
isSequential=
"false"
activiti:collection=
"handlerList"
activiti:elementVariable=
"assignee"
>
<completionCondition>
${chiefApprovePassed}
</completionCondition>
</multiInstanceLoopCharacteristics>
</userTask>
<sequenceFlow
id=
"flow1"
sourceRef=
"startevent1"
targetRef=
"Apply"
></sequenceFlow>
<sequenceFlow
id=
"flow2"
sourceRef=
"Apply"
targetRef=
"Approve"
></sequenceFlow>
<exclusiveGateway
id=
"ApproveFinished"
name=
"审批结束"
></exclusiveGateway>
<sequenceFlow
id=
"flow3"
name=
"审批通过"
sourceRef=
"ApprovePassed"
targetRef=
"ApproveFinished"
>
<conditionExpression
xsi:type=
"tFormalExpression"
>
<![CDATA[${approvePassed}]]>
</conditionExpression>
</sequenceFlow>
<sequenceFlow
id=
"flow4"
name=
"审批结束"
sourceRef=
"ApproveFinished"
targetRef=
"endevent1"
>
<conditionExpression
xsi:type=
"tFormalExpression"
>
<![CDATA[${approveFinished}]]>
</conditionExpression>
</sequenceFlow>
<sequenceFlow
id=
"flow5"
name=
"审批未结束"
sourceRef=
"ApproveFinished"
targetRef=
"Approve"
>
<conditionExpression
xsi:type=
"tFormalExpression"
>
<![CDATA[${!approveFinished}]]>
</conditionExpression>
</sequenceFlow>
<exclusiveGateway
id=
"ApprovePassed"
name=
"审批通过"
></exclusiveGateway>
<sequenceFlow
id=
"flow6"
sourceRef=
"Approve"
targetRef=
"ApprovePassed"
></sequenceFlow>
<sequenceFlow
id=
"flow9"
name=
"审批未通过"
sourceRef=
"ApprovePassed"
targetRef=
"Apply"
>
<conditionExpression
xsi:type=
"tFormalExpression"
>
<![CDATA[${!approvePassed}]]>
</conditionExpression>
</sequenceFlow>
</process>
<bpmndi:BPMNDiagram
id=
"BPMNDiagram_leaveProc"
>
<bpmndi:BPMNPlane
bpmnElement=
"leaveProc"
id=
"BPMNPlane_leaveProc"
>
<bpmndi:BPMNShape
bpmnElement=
"startevent1"
id=
"BPMNShape_startevent1"
>
<omgdc:Bounds
height=
"35.0"
width=
"35.0"
x=
"355.0"
y=
"50.0"
></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape
bpmnElement=
"endevent1"
id=
"BPMNShape_endevent1"
>
<omgdc:Bounds
height=
"35.0"
width=
"35.0"
x=
"355.0"
y=
"550.0"
></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape
bpmnElement=
"Apply"
id=
"BPMNShape_Apply"
>
<omgdc:Bounds
height=
"55.0"
width=
"161.0"
x=
"292.0"
y=
"140.0"
></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape
bpmnElement=
"Approve"
id=
"BPMNShape_Approve"
>
<omgdc:Bounds
height=
"55.0"
width=
"161.0"
x=
"292.0"
y=
"240.0"
></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape
bpmnElement=
"ApproveFinished"
id=
"BPMNShape_ApproveFinished"
>
<omgdc:Bounds
height=
"40.0"
width=
"40.0"
x=
"352.0"
y=
"440.0"
></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape
bpmnElement=
"ApprovePassed"
id=
"BPMNShape_ApprovePassed"
>
<omgdc:Bounds
height=
"40.0"
width=
"40.0"
x=
"352.0"
y=
"349.0"
></omgdc:Bounds>
</bpmndi:BPMNShape>
<bpmndi:BPMNEdge
bpmnElement=
"flow1"
id=
"BPMNEdge_flow1"
>
<omgdi:waypoint
x=
"372.0"
y=
"85.0"
></omgdi:waypoint>
<omgdi:waypoint
x=
"372.0"
y=
"140.0"
></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge
bpmnElement=
"flow2"
id=
"BPMNEdge_flow2"
>
<omgdi:waypoint
x=
"372.0"
y=
"195.0"
></omgdi:waypoint>
<omgdi:waypoint
x=
"372.0"
y=
"240.0"
></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge
bpmnElement=
"flow3"
id=
"BPMNEdge_flow3"
>
<omgdi:waypoint
x=
"372.0"
y=
"389.0"
></omgdi:waypoint>
<omgdi:waypoint
x=
"372.0"
y=
"440.0"
></omgdi:waypoint>
<bpmndi:BPMNLabel>
<omgdc:Bounds
height=
"14.0"
width=
"48.0"
x=
"320.0"
y=
"396.0"
></omgdc:Bounds>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge
bpmnElement=
"flow4"
id=
"BPMNEdge_flow4"
>
<omgdi:waypoint
x=
"372.0"
y=
"480.0"
></omgdi:waypoint>
<omgdi:waypoint
x=
"372.0"
y=
"550.0"
></omgdi:waypoint>
<bpmndi:BPMNLabel>
<omgdc:Bounds
height=
"14.0"
width=
"48.0"
x=
"382.0"
y=
"489.0"
></omgdc:Bounds>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge
bpmnElement=
"flow5"
id=
"BPMNEdge_flow5"
>
<omgdi:waypoint
x=
"392.0"
y=
"460.0"
></omgdi:waypoint>
<omgdi:waypoint
x=
"519.0"
y=
"459.0"
></omgdi:waypoint>
<omgdi:waypoint
x=
"519.0"
y=
"317.0"
></omgdi:waypoint>
<omgdi:waypoint
x=
"519.0"
y=
"267.0"
></omgdi:waypoint>
<omgdi:waypoint
x=
"489.0"
y=
"267.0"
></omgdi:waypoint>
<omgdi:waypoint
x=
"453.0"
y=
"267.0"
></omgdi:waypoint>
<bpmndi:BPMNLabel>
<omgdc:Bounds
height=
"14.0"
width=
"60.0"
x=
"459.0"
y=
"411.0"
></omgdc:Bounds>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge
bpmnElement=
"flow6"
id=
"BPMNEdge_flow6"
>
<omgdi:waypoint
x=
"372.0"
y=
"295.0"
></omgdi:waypoint>
<omgdi:waypoint
x=
"372.0"
y=
"349.0"
></omgdi:waypoint>
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge
bpmnElement=
"flow9"
id=
"BPMNEdge_flow9"
>
<omgdi:waypoint
x=
"352.0"
y=
"369.0"
></omgdi:waypoint>
<omgdi:waypoint
x=
"231.0"
y=
"369.0"
></omgdi:waypoint>
<omgdi:waypoint
x=
"231.0"
y=
"167.0"
></omgdi:waypoint>
<omgdi:waypoint
x=
"292.0"
y=
"167.0"
></omgdi:waypoint>
<bpmndi:BPMNLabel>
<omgdc:Bounds
height=
"14.0"
width=
"60.0"
x=
"257.0"
y=
"376.0"
></omgdc:Bounds>
</bpmndi:BPMNLabel>
</bpmndi:BPMNEdge>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</definitions>
\ No newline at end of file
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