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解析 - 簡書
{"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? "> <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."}
<bpmndi:BPMNShape id="Activity_1ykpxyx_di" bpmnElement="Activity_00u57lg"> <dc:Bounds x="250" y="59" width="100" height="80" />
<BPMNLabel /> </bpmndi:BPMNShape>