Forráskód Böngészése

修复: 停用学员流程处理器引用

1. 新增停用学员 xy_ty 流程的业务配置、BPM JSON 与 JPDL 定义。

2. 将流程处理器统一为正式环境已有的 StartSubbpmDec、StartSubbpmEndDec、StartEndDec,保持提交、同意和退回服务逻辑不变。

3. 验证:已完成 XML/JSON 静态校验、流程 key 与处理器 class 存在性检查;未执行真实业务回归。
“gaohp” 2 hónapja
szülő
commit
0403780a77

+ 1 - 0
web/WEB-INF/cfg/bpm/xy_ty.bpm.json

@@ -0,0 +1 @@
+{"objectKey":[{"name":"停用学员","desc":"","submitName":"停用学员","codebooks":[],"version":1,"nodes":{"node_1":{"service_name":"xy_sh_ty_ks","left":200,"top":100,"type":"start","realtype":"start","name":"开始","id":"node_1","step":0,"width":21,"height":21},"node_2":{"agree_service_name":"xy_sh_ty_ty","reject_message_title":"退回停用学员","agree_name":"同意","agree_message_title":"通过停用学员","reject_message_content":"停用学员已退回","agree_message_content":"停用学员已通过","reject_service_name":"xy_sh_ty_th","reject_name":"退回","left":100,"top":200,"type":"end","realtype":"end","name":"结束","finishService":"[{\"name\":\"agreeToUse\",\"desc\":\"完成后启用\",\"type\":\"agree\"}]","id":"node_2","step":0,"width":21,"height":21}},"lines":{"line_3":{"type":"sl","status":"agree","from":"node_1","to":"node_2","name":"","id":"line_3","marked":false}},"bpm_name":"xy_ty","bpm_desc":"停用学员","bpm_type":"51","bpm_agree":"同意","bpm_reject":"退回","display":"true"}]}

+ 104 - 0
web/WEB-INF/cfg/bpm/xy_ty.jpdl.xml

@@ -0,0 +1,104 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<process xmlns="http://www.w3.org/1999/xhtml" name="xy_ty.停用学员.1" key="xy_ty.1">
+	<on event="start">
+		<event-listener class="ss.bpm.BpmListener">
+			<field name="servName">
+				<string value="xy_sh_ty_ks"/>
+			</field>
+			<field name="chgType">
+				<string value="51"/>
+			</field>
+			<field name="actnType">
+				<string value="start"/>
+			</field>
+			<field name="nodeParm">
+				<string value="{&quot;lcmc&quot;:&quot;停用学员|停用学员&quot;,&quot;sfsxps&quot;:&quot;0&quot;,&quot;sfRedo&quot;:&quot;0&quot;,&quot;sfRun&quot;:&quot;0&quot;,&quot;jdmc&quot;:&quot;开始&quot;,&quot;jdid&quot;:&quot;node_1&quot;}"/>
+			</field>
+			<field name="taskNum">
+				<string value="0"/>
+			</field>
+		</event-listener>
+	</on>
+	<start name="start">
+		<transition to="node_1"/>
+	</start>
+	<decision name="node_1">
+		<handler class="ss.bpm.dec.impl.StartDec">
+			<field name="servName">
+				<string value="xy_sh_ty_ks"/>
+			</field>
+			<field name="msgTitle">
+				<string value="undefined"/>
+			</field>
+			<field name="msgCont">
+				<string value="undefined"/>
+			</field>
+			<field name="isEach">
+				<string value="false"/>
+			</field>
+			<field name="nodeParm">
+				<string value="{&quot;lcmc&quot;:&quot;停用学员|停用学员&quot;,&quot;sfsxps&quot;:&quot;0&quot;,&quot;sfRedo&quot;:&quot;0&quot;,&quot;sfRun&quot;:&quot;0&quot;,&quot;jdmc&quot;:&quot;开始&quot;,&quot;jdid&quot;:&quot;node_1&quot;}"/>
+			</field>
+		</handler>
+		<transition to="node_1SubprocessDecision"/>
+	</decision>
+	<decision name="node_1SubprocessDecision">
+		<handler class="ss.bpm.dec.impl.StartSubbpmDec"/>
+		<transition name="subprocess" to="node_1Subprocess"/>
+		<transition to="node_1StartFinishDecision"/>
+	</decision>
+	<sub-process name="node_1Subprocess" sub-process-key="DynamicProcess" outcome="#{subprocessresult}">
+		<parameter-in var="subbpmName" subvar="undefined"/>
+		<transition to="node_1SubprocessFinishDecision"/>
+		<transition name="agree" to="node_1SubprocessFinishDecision"/>
+		<transition name="reject" to="node_1SubprocessFinishDecision"/>
+	</sub-process>
+	<decision name="node_1SubprocessFinishDecision">
+		<handler class="ss.bpm.dec.impl.StartSubbpmEndDec"/>
+		<transition to="node_1StartFinishDecision"/>
+	</decision>
+	<decision name="node_1StartFinishDecision">
+		<handler class="ss.bpm.dec.impl.StartEndDec"/>
+		<transition to="同意"/>
+	</decision>
+	<end name="同意">
+		<on event="start">
+			<event-listener class="ss.bpm.BpmListener">
+				<field name="servName">
+					<string value="xy_sh_ty_ty"/>
+				</field>
+				<field name="msgTitle">
+					<string value="通过停用学员"/>
+				</field>
+				<field name="msgCont">
+					<string value="停用学员已通过"/>
+				</field>
+				<field name="actnType">
+					<string value="agree"/>
+				</field>
+				<field name="endCmdStr">
+					<string value="[{&quot;name&quot;:&quot;agreeToUse&quot;,&quot;desc&quot;:&quot;完成后启用&quot;,&quot;type&quot;:&quot;agree&quot;}]"/>
+				</field>
+			</event-listener>
+		</on>
+	</end>
+	<end name="退回">
+		<on event="start">
+			<event-listener class="ss.bpm.BpmListener">
+				<field name="servName">
+					<string value="xy_sh_ty_th"/>
+				</field>
+				<field name="msgTitle">
+					<string value="退回停用学员"/>
+				</field>
+				<field name="msgCont">
+					<string value="停用学员已退回"/>
+				</field>
+				<field name="actnType">
+					<string value="reject"/>
+				</field>
+			</event-listener>
+		</on>
+	</end>
+</process>

+ 8 - 0
web/cfg/biz/xy/xy_ty.bpm.xml

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE xml>
+
+<bpms biz="xy">
+	<bpm name="xy_ty" desc="停用学员" type="sus">
+		<bpm def="chg"/>
+	</bpm>
+</bpms>