RError.com

RError.com Logo RError.com Logo

RError.com Navigation

  • 主页

Mobile menu

Close
  • 主页
  • 系统&网络
    • 热门问题
    • 最新问题
    • 标签
  • Ubuntu
    • 热门问题
    • 最新问题
    • 标签
  • 帮助
主页 / 问题 / 906985
Accepted
Max Lich
Max Lich
Asked:2020-11-15 22:25:10 +0000 UTC2020-11-15 22:25:10 +0000 UTC 2020-11-15 22:25:10 +0000 UTC

如果服务任务或脚本任务在 bpm 方案中的计时器之后出现,则会出现错误(Alfresco 的 Activiti 6)

  • 772

关于Alfresco的Activiti的问题 6.如果我在scheme中的timer(or)后面加了一个block ,就会出现intermediate timer catching event错误,进程就不会继续下去了。如果有一个 block ,那么就会出现这个错误:boundary timer eventservice taskscript taskservice task

无法实例化 <full_class_name>

其中 <full_class_name> 是service task为class.

如果script task是这样的:

找不到“groovy”的脚本引擎

同时,还有一个用于service taskin的类,也连接classpath了引擎的库。groovy最有趣的是,这些错误并不总是出现,在 5-10 个案例中,有 1 个可以正常工作。没找到图案。

PS 我尝试service task在我的工作项目(使用RESTand Spring Web Mvc)和一个用Swing. 错误发生在这里和那里。

为了详细描述,尝试了以下方法来解决这个问题:

  • 在测试应用程序中:

    • src/main/java一个类被放置在目录中(此外,它被写WEB-INF.classes.<пакеты_класса>.<короткое_имя_класса>在类本身的文件中) - 它没有帮助package<пакеты_класса>
    • src/main/java目录WEB-INF/classes/<пакеты_класса>中放置了一个包含已编译类的目录(此外, package<class_packages> 也写在类本身的文件中) - 没有帮助
  • 在工作项目中,src/main/java将一个类添加到目录中(此外,<class_packages> 写<пакеты_класса>. <короткое_имя_класса>在类本身的文件中) - 它没有帮助package

同时,在最终归档与应用程序(jar或war类在目录中WEB-INF/classes/<пакеты_класса>)。同时,在工作项目中,在依赖项中(因此,在目录WEB-INF/lib或lib服务器目录中Tomcat),有一个带有此类的 jar 位于正确的包中,这也没有帮助。

PS我的测试过程定义示例:

<?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:xsd="http://www.w3.org/2001/XMLSchema" 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" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.activiti.org/processdef">
  <process id="MaxShulTest_v20" name="MaxShulTest" isExecutable="true">
    <documentation>test process</documentation>
    <startEvent id="startEvent1"></startEvent>
    <userTask id="Task1" name="Task1"></userTask>
    <userTask id="Task4" name="Task4"></userTask>
    <userTask id="Task2" name="Task2"></userTask>
    <sequenceFlow id="sid-FEBA8018-5838-4AF2-8AE5-DED45EF36229" sourceRef="Task1" targetRef="Task2"></sequenceFlow>
    <sequenceFlow id="sid-A71A6EB8-293E-4EA7-A876-670C8E4ABF7C" sourceRef="Task2" targetRef="ExclusiveGateway1"></sequenceFlow>
    <sequenceFlow id="sid-1691D37B-9B00-452F-B031-124B3845912B" sourceRef="Task4" targetRef="ExclusiveGateway1"></sequenceFlow>
    <endEvent id="endEvent1"></endEvent>
    <sequenceFlow id="sid-EAC37DEB-9666-407E-8EE0-27C11CEC4302" sourceRef="ExclusiveGateway1" targetRef="endEvent1"></sequenceFlow>
    <exclusiveGateway id="ExclusiveGateway1"></exclusiveGateway>
    <boundaryEvent id="boundary_timer1" attachedToRef="Task1" cancelActivity="true">
      <timerEventDefinition>
        <timeDuration>PT1M</timeDuration>
      </timerEventDefinition>
    </boundaryEvent>
    <sequenceFlow id="sid-88CC1D13-0907-44CC-ACAE-6E2FC01C8A3F" sourceRef="startEvent1" targetRef="service_task_1"></sequenceFlow>
    <serviceTask id="service_task_1" name="service_task_1" activiti:class="ru.maxlich.app.test.activiti.model.service.LogDelegateService"></serviceTask>
    <sequenceFlow id="sid-B9705ABC-78B3-460A-80ED-613EE3147491" sourceRef="service_task_2" targetRef="Task1"></sequenceFlow>
    <intermediateCatchEvent id="timer_1" name="timer_1">
      <timerEventDefinition>
        <timeDuration>PT3M</timeDuration>
      </timerEventDefinition>
    </intermediateCatchEvent>
    <sequenceFlow id="sid-49554231-BC08-4237-8B48-6D5484289319" sourceRef="service_task_1" targetRef="timer_1"></sequenceFlow>
    <sequenceFlow id="sid-7C4E0E46-E680-45F2-847F-8C37FFB16C53" sourceRef="timer_1" targetRef="service_task_2"></sequenceFlow>
    <serviceTask id="service_task_2" name="service_task_2" activiti:class="ru.maxlich.app.test.activiti.model.service.LogDelegateService"></serviceTask>
    <sequenceFlow id="sid-727BA009-3FE2-48DE-B41E-693FCE3D2F53" sourceRef="boundary_timer1" targetRef="service_task_3"></sequenceFlow>
    <serviceTask id="service_task_3" name="service_task_3" activiti:class="ru.maxlich.app.test.activiti.model.service.LogDelegateService"></serviceTask>
    <sequenceFlow id="sid-7F9D801A-5C8F-4623-987E-2E3FC936126E" sourceRef="service_task_3" targetRef="Task4"></sequenceFlow>
  </process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_MaxShulTest_v20">
    <bpmndi:BPMNPlane bpmnElement="MaxShulTest_v20" id="BPMNPlane_MaxShulTest_v20">
      <bpmndi:BPMNShape bpmnElement="startEvent1" id="BPMNShape_startEvent1">
        <omgdc:Bounds height="30.0" width="30.0" x="30.0" y="185.943858356366"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="Task1" id="BPMNShape_Task1">
        <omgdc:Bounds height="80.0" width="100.0" x="559.25" y="134.5"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="Task4" id="BPMNShape_Task4">
        <omgdc:Bounds height="80.0" width="100.0" x="855.0" y="286.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="Task2" id="BPMNShape_Task2">
        <omgdc:Bounds height="80.0" width="100.0" x="783.25" y="135.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="endEvent1" id="BPMNShape_endEvent1">
        <omgdc:Bounds height="28.0" width="28.0" x="1122.25" y="189.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="ExclusiveGateway1" id="BPMNShape_ExclusiveGateway1">
        <omgdc:Bounds height="40.0" width="40.0" x="1019.5" y="183.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="boundary_timer1" id="BPMNShape_boundary_timer1">
        <omgdc:Bounds height="31.0" width="31.0" x="608.0803504247281" y="199.943858356366"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="service_task_1" id="BPMNShape_service_task_1">
        <omgdc:Bounds height="71.0" width="110.0" x="135.0" y="138.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="timer_1" id="BPMNShape_timer_1">
        <omgdc:Bounds height="31.0" width="31.0" x="303.13336181640625" y="158.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="service_task_2" id="BPMNShape_service_task_2">
        <omgdc:Bounds height="82.0" width="107.0" x="390.0" y="133.5"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="service_task_3" id="BPMNShape_service_task_3">
        <omgdc:Bounds height="82.0" width="107.0" x="630.0" y="285.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="sid-727BA009-3FE2-48DE-B41E-693FCE3D2F53" id="BPMNEdge_sid-727BA009-3FE2-48DE-B41E-693FCE3D2F53">
        <omgdi:waypoint x="630.9660814288677" y="229.07107294829532"></omgdi:waypoint>
        <omgdi:waypoint x="661.2786598187816" y="285.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-FEBA8018-5838-4AF2-8AE5-DED45EF36229" id="BPMNEdge_sid-FEBA8018-5838-4AF2-8AE5-DED45EF36229">
        <omgdi:waypoint x="659.25" y="174.61160714285714"></omgdi:waypoint>
        <omgdi:waypoint x="783.25" y="174.88839285714286"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-B9705ABC-78B3-460A-80ED-613EE3147491" id="BPMNEdge_sid-B9705ABC-78B3-460A-80ED-613EE3147491">
        <omgdi:waypoint x="497.0" y="174.5"></omgdi:waypoint>
        <omgdi:waypoint x="559.25" y="174.5"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-EAC37DEB-9666-407E-8EE0-27C11CEC4302" id="BPMNEdge_sid-EAC37DEB-9666-407E-8EE0-27C11CEC4302">
        <omgdi:waypoint x="1059.5" y="203.0"></omgdi:waypoint>
        <omgdi:waypoint x="1122.25" y="203.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-A71A6EB8-293E-4EA7-A876-670C8E4ABF7C" id="BPMNEdge_sid-A71A6EB8-293E-4EA7-A876-670C8E4ABF7C">
        <omgdi:waypoint x="883.25" y="181.7795571220596"></omgdi:waypoint>
        <omgdi:waypoint x="1021.9182556711604" y="200.5817443288396"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-88CC1D13-0907-44CC-ACAE-6E2FC01C8A3F" id="BPMNEdge_sid-88CC1D13-0907-44CC-ACAE-6E2FC01C8A3F">
        <omgdi:waypoint x="59.73834151603846" y="198.15436210137352"></omgdi:waypoint>
        <omgdi:waypoint x="135.0" y="183.90973937655264"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-49554231-BC08-4237-8B48-6D5484289319" id="BPMNEdge_sid-49554231-BC08-4237-8B48-6D5484289319">
        <omgdi:waypoint x="245.0" y="173.71295813578445"></omgdi:waypoint>
        <omgdi:waypoint x="303.13348175202987" y="173.93804900670392"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-7C4E0E46-E680-45F2-847F-8C37FFB16C53" id="BPMNEdge_sid-7C4E0E46-E680-45F2-847F-8C37FFB16C53">
        <omgdi:waypoint x="335.13323251092316" y="174.0643254128607"></omgdi:waypoint>
        <omgdi:waypoint x="390.0" y="174.28491016247852"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-7F9D801A-5C8F-4623-987E-2E3FC936126E" id="BPMNEdge_sid-7F9D801A-5C8F-4623-987E-2E3FC936126E">
        <omgdi:waypoint x="737.0" y="326.0"></omgdi:waypoint>
        <omgdi:waypoint x="855.0" y="326.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="sid-1691D37B-9B00-452F-B031-124B3845912B" id="BPMNEdge_sid-1691D37B-9B00-452F-B031-124B3845912B">
        <omgdi:waypoint x="948.8221673355974" y="286.0"></omgdi:waypoint>
        <omgdi:waypoint x="1029.1648250460405" y="212.6648250460405"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</definitions>
alfresco
  • 1 1 个回答
  • 10 Views

1 个回答

  • Voted
  1. Best Answer
    Max Lich
    2020-11-19T18:12:11Z2020-11-19T18:12:11Z

    找到了错误的原因。与此同时,Activiti Modeler 也推出了,它使用了相同的基础。我停止了这个应用程序,一切都开始工作而没有错误。

    • 0

相关问题

Sidebar

Stats

  • 问题 10021
  • Answers 30001
  • 最佳答案 8000
  • 用户 6900
  • 常问
  • 回答
  • Marko Smith

    是否可以在 C++ 中继承类 <---> 结构?

    • 2 个回答
  • Marko Smith

    这种神经网络架构适合文本分类吗?

    • 1 个回答
  • Marko Smith

    为什么分配的工作方式不同?

    • 3 个回答
  • Marko Smith

    控制台中的光标坐标

    • 1 个回答
  • Marko Smith

    如何在 C++ 中删除类的实例?

    • 4 个回答
  • Marko Smith

    点是否属于线段的问题

    • 2 个回答
  • Marko Smith

    json结构错误

    • 1 个回答
  • Marko Smith

    ServiceWorker 中的“获取”事件

    • 1 个回答
  • Marko Smith

    c ++控制台应用程序exe文件[重复]

    • 1 个回答
  • Marko Smith

    按多列从sql表中选择

    • 1 个回答
  • Martin Hope
    Alexandr_TT 圣诞树动画 2020-12-23 00:38:08 +0000 UTC
  • Martin Hope
    Suvitruf - Andrei Apanasik 什么是空? 2020-08-21 01:48:09 +0000 UTC
  • Martin Hope
    Air 究竟是什么标识了网站访问者? 2020-11-03 15:49:20 +0000 UTC
  • Martin Hope
    Qwertiy 号码显示 9223372036854775807 2020-07-11 18:16:49 +0000 UTC
  • Martin Hope
    user216109 如何为黑客设下陷阱,或充分击退攻击? 2020-05-10 02:22:52 +0000 UTC
  • Martin Hope
    Qwertiy 并变成3个无穷大 2020-11-06 07:15:57 +0000 UTC
  • Martin Hope
    koks_rs 什么是样板代码? 2020-10-27 15:43:19 +0000 UTC
  • Martin Hope
    Sirop4ik 向 git 提交发布的正确方法是什么? 2020-10-05 00:02:00 +0000 UTC
  • Martin Hope
    faoxis 为什么在这么多示例中函数都称为 foo? 2020-08-15 04:42:49 +0000 UTC
  • Martin Hope
    Pavel Mayorov 如何从事件或回调函数中返回值?或者至少等他们完成。 2020-08-11 16:49:28 +0000 UTC

热门标签

javascript python java php c# c++ html android jquery mysql

Explore

  • 主页
  • 问题
    • 热门问题
    • 最新问题
  • 标签
  • 帮助

Footer

RError.com

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

帮助

© 2023 RError.com All Rights Reserve   沪ICP备12040472号-5