随笔 - 435  文章 - 0  评论 - 110  阅读 - 62万 

1.  安装时碰到的问题,要设JAVA_HOME, 目录不能有中文,JDK17可以吗?  出现下面错误

java.lang.NoClassDefFoundError: Could not initialize class com.sun.xml.bind.v2.runtime.reflect.opt.Injector

2. 学习BPMN2.0  BPMN2.0十分钟就够了_swordking1983的技术博客_  BPMN2.0解析 - 简书  

1
2
3
{"The element at /definitions[@id='sid-38422fae-e03e-43a3-bef4-bd33b32041b2']/process[@id='Process_1']/exclusiveGateway[@id='ExclusiveGateway_15hu1pt'] is missing a value for the attribute default"}
 
{"The element at /definitions[@id='sid-38422fae-e03e-43a3-bef4-bd33b32041b2']/bpmndi:BPMNDiagram[@id='BpmnDiagram_1']/bpmndi:BPMNPlane[@id='BpmnPlane_1']/bpmndi:BPMNShape[@id='Activity_1ivfb4e_di']/bpmndi:BPMNLabel[1] has the following error(s):\nNo bounds specified."}

 

 3.  GitHub - roger-castaldo/BPMEngine: A BPMN Engine written in .net   BPMN节点xml代码, 

bpmn:sequenceFlow 代表是线,有source和target,从哪里来,到哪里去
 <bpmn:sequenceFlow id="SequenceFlow_1kh3jxa" sourceRef="StartEvent_0ikjhwl" targetRef="Task_16n77qg" />

每个节点至少有一个incoming和一个outgoing, 判断节点bpmn:exclusiveGateway 至少有一个default路径,

    <bpmn:exclusiveGateway id="ExclusiveGateway_0dujghp" default="SequenceFlow_108q8l9">
      <bpmn:incoming>SequenceFlow_1jma3bu</bpmn:incoming>
      <bpmn:outgoing>SequenceFlow_1834102</bpmn:outgoing>
      <bpmn:outgoing>SequenceFlow_108q8l9</bpmn:outgoing>
    </bpmn:exclusiveGateway>
 
流程任务属性
Service Task(服务任务) 可以用于调外部服务或自动执行程序。
Send Task(发送任务) 用于处理外部流程参与人发送消息的工作。eg:EmailTask。
Receive Taks(接收任务) 等待外部流程参与者发送消息的任务。
User Task(用户任务) 表示需要人参与的任务,可以配置候选人/组/代理人等。
Script Task(脚本任务) 用于执行定义好的脚本程序,流程执行到这个结点自动执行脚本。


脚本任务与服务任务都是1个输入,1个输出, 区别在于服务任务一般用来处理和外部服务之间的交互。脚本任务只用来执行一些简单的逻辑。

比如一个请假流程,HR需要手工确认天数是否超过, 这个地方用到User Task, Display标签定义给用户看的信息, Prompt标签Variable定义变量名
复制代码
    <bpmn:userTask id="Task_16n77qg" name="Does the staff has enough vacation time?&#10;">
      <bpmn:extensionElements>
        <Display>The staff $name$ would like a vacation from $startdate$ to $enddate$</Display>
        <Prompt>
          <Question>Is the vacation approved (Y/N)?</Question>
          <Variable>approved</Variable>
        </Prompt>
        <Clear/>
      </bpmn:extensionElements>
      <bpmn:incoming>SequenceFlow_1kh3jxa</bpmn:incoming>
      <bpmn:outgoing>SequenceFlow_1jma3bu</bpmn:outgoing>
    </bpmn:userTask>
复制代码

 

假如用BPMN.IO网站来设计流程图, 会多了<BPMNLabel />,然后就出现这个解析错误,要删掉才行

{"The element at /bpmn:definitions[@id='Definitions_0iyxfe1']/bpmndi:BPMNDiagram[@id='BPMNDiagram_1']/bpmndi:BPMNPlane[@id='BPMNPlane_1']/bpmndi:BPMNShape[@id='Activity_1ykpxyx_di']/bpmndi:BPMNLabel[1] has the following error(s):\nNo bounds specified."}

1
2
3
<bpmndi:BPMNShape id="Activity_1ykpxyx_di" bpmnElement="Activity_00u57lg">
        <dc:Bounds x="250" y="59" width="100" height="80" />     <BPMNLabel /> 
</bpmndi:BPMNShape>

  

posted on   Gu  阅读(826)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 百万级群聊的设计实践
· 永远不要相信用户的输入:从 SQL 注入攻防看输入验证的重要性
· 全网最简单!3分钟用满血DeepSeek R1开发一款AI智能客服,零代码轻松接入微信、公众号、小程
· .NET 10 首个预览版发布,跨平台开发与性能全面提升
· 《HelloGitHub》第 107 期
点击右上角即可分享
微信分享提示