Skip to content

Commit

Permalink
update modules/ticket: mod 2 files
Browse files Browse the repository at this point in the history
  • Loading branch information
pengjinning committed Feb 16, 2025
1 parent 92f0f40 commit 5cf4b34
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@
<flowable:formProperty id="title" name="标题" type="string" required="true"></flowable:formProperty>
<flowable:formProperty id="description" name="描述" type="string" required="true"></flowable:formProperty>
<flowable:formProperty id="priority" name="优先级" type="enum">
<flowable:value id="lowest" name="最低"></flowable:value>
<flowable:value id="low" name=""></flowable:value>
<flowable:value id="medium" name=""></flowable:value>
<flowable:value id="high" name=""></flowable:value>
<flowable:value id="urgent" name="紧急"></flowable:value>
<flowable:value id="critical" name="严重"></flowable:value>
</flowable:formProperty>
<modeler:initiator-can-complete xmlns:modeler="http://flowable.org/modeler"><![CDATA[false]]></modeler:initiator-can-complete>
</extensionElements>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: jackning 270580156@qq.com
* @Date: 2025-02-14 15:48:59
* @LastEditors: jackning 270580156@qq.com
* @LastEditTime: 2025-02-14 17:21:52
* @LastEditTime: 2025-02-16 08:14:37
* @Description: bytedesk.com https://github.com/Bytedesk/bytedesk
* Please be aware of the BSL license restrictions before installing Bytedesk IM –
* selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license.
Expand Down Expand Up @@ -38,6 +38,8 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import com.bytedesk.ticket.consts.TicketConsts;

import lombok.extern.slf4j.Slf4j;

import org.flowable.engine.form.FormType;
Expand Down Expand Up @@ -73,7 +75,7 @@ void testBasicTicketProcess() {

// 启动流程实例
ProcessInstance processInstance = runtimeService.startProcessInstanceByKey(
"groupTicketProcess", variables);
TicketConsts.TICKET_PROCESS_KEY_GROUP, variables);
assertNotNull(processInstance);
log.info("Started process instance id {}", processInstance.getId());

Expand All @@ -83,7 +85,7 @@ void testBasicTicketProcess() {
.taskAssignee("user1")
.singleResult();
assertNotNull(createTask);
assertEquals("Create Ticket", createTask.getName());
assertEquals("创建工单", createTask.getName());

// 完成工单创建
Map<String, Object> ticketVariables = new HashMap<>();
Expand Down Expand Up @@ -203,7 +205,7 @@ private void createMultipleTickets(String creator, int count) {
variables.put("slaTime", "PT4H");

ProcessInstance processInstance = runtimeService.startProcessInstanceByKey(
"groupTicketProcess", variables);
TicketConsts.TICKET_PROCESS_KEY_GROUP, variables);

// 完成创建任务
Task createTask = taskService.createTaskQuery()
Expand Down Expand Up @@ -234,7 +236,7 @@ void testSLATimeout() {
variables.put("slaTime", "PT1S"); // 1秒SLA

ProcessInstance processInstance = runtimeService.startProcessInstanceByKey(
"groupTicketProcess", variables);
TicketConsts.TICKET_PROCESS_KEY_GROUP, variables);

// 完成创建任务
Task createTask = taskService.createTaskQuery()
Expand Down Expand Up @@ -279,7 +281,7 @@ void testCreateTicketForm() {
variables.put("slaTime", "PT4H");

ProcessInstance processInstance = runtimeService.startProcessInstanceByKey(
"groupTicketProcess", variables);
TicketConsts.TICKET_PROCESS_KEY_GROUP, variables);

// 获取创建工单任务
Task createTask = taskService.createTaskQuery()
Expand Down Expand Up @@ -532,7 +534,7 @@ private ProcessInstance createAndSubmitToGroupHandle() {
variables.put("slaTime", "PT4H");

ProcessInstance processInstance = runtimeService.startProcessInstanceByKey(
"groupTicketProcess", variables);
TicketConsts.TICKET_PROCESS_KEY_GROUP, variables);

// 完成创建任务
Task createTask = taskService.createTaskQuery()
Expand Down

0 comments on commit 5cf4b34

Please sign in to comment.