@nanobpm/nano-workforce 0.97.0 → 0.98.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -96,12 +96,16 @@
96
96
  <zeebe:properties>
97
97
  <zeebe:property name="io.nanobpm.dataEnvelope.in" value="MergeArmIn" />
98
98
  </zeebe:properties>
99
+ <zeebe:ioMapping>
100
+ <zeebe:output source="=null" target="status" />
101
+ </zeebe:ioMapping>
99
102
  </bpmn:extensionElements>
100
103
  <bpmn:incoming>f_m_deps</bpmn:incoming>
101
104
  <bpmn:incoming>f_m_answer</bpmn:incoming>
102
105
  <bpmn:incoming>f_ci_fixed</bpmn:incoming>
103
106
  <bpmn:incoming>f_reb_rebased</bpmn:incoming>
104
107
  <bpmn:incoming>f_m_evicted</bpmn:incoming>
108
+ <bpmn:incoming>f_m_escReenter</bpmn:incoming>
105
109
  <bpmn:outgoing>f_m_arm</bpmn:outgoing>
106
110
  </bpmn:serviceTask>
107
111
  <bpmn:intermediateCatchEvent id="wait-mergeable" name="Wait: mergeable">
@@ -187,6 +191,11 @@
187
191
  <zeebe:property name="io.nanobpm.dataEnvelope.in" value="EscalationIn" />
188
192
  <zeebe:property name="io.nanobpm.dataEnvelope.out" value="EscalationOut" />
189
193
  </zeebe:properties>
194
+ <zeebe:ioMapping>
195
+ <zeebe:input source="=status" target="agentVerdict" />
196
+ <zeebe:input source="=&#34;This PR cannot be merged and needs a human decision. &#34; + (if mergeState = &#34;conflict&#34; then &#34;The automated rebase agent could not resolve the merge conflicts on this branch. Resolve them manually (or reply with guidance), then reply to retry.&#34; else if mergeState = &#34;ready&#34; then &#34;The merge attempt did not land (merge result: &#34; + mergeStatus + &#34;). Investigate why GitHub refused the merge, then reply to retry.&#34; else if agentVerdict = &#34;blocked&#34; then &#34;The automated CI-fix agent could not make the required checks green. Fix the failing checks on the branch (or reply with guidance), then reply to retry.&#34; else &#34;The automated CI-fix agent exceeded its time budget (SLA) before the required checks went green. Check its progress or intervene, then reply to retry.&#34;)" target="question" />
197
+ <zeebe:input source="=&#34;blocked&#34;" target="status" />
198
+ </zeebe:ioMapping>
190
199
  </bpmn:extensionElements>
191
200
  <bpmn:incoming>f_m_gBlocked</bpmn:incoming>
192
201
  <bpmn:incoming>f_ci_blocked</bpmn:incoming>
@@ -194,6 +203,11 @@
194
203
  <bpmn:incoming>f_ci_sla</bpmn:incoming>
195
204
  <bpmn:outgoing>f_m_escA</bpmn:outgoing>
196
205
  </bpmn:serviceTask>
206
+ <bpmn:exclusiveGateway id="gw-merge-escalated" name="escalation opened?" default="f_m_escReenter">
207
+ <bpmn:incoming>f_m_escA</bpmn:incoming>
208
+ <bpmn:outgoing>f_m_escWait</bpmn:outgoing>
209
+ <bpmn:outgoing>f_m_escReenter</bpmn:outgoing>
210
+ </bpmn:exclusiveGateway>
197
211
  <bpmn:userTask id="wait-merge-answer" name="Answer escalation">
198
212
  <bpmn:extensionElements>
199
213
  <zeebe:formDefinition formId="pr-escalation" />
@@ -204,7 +218,7 @@
204
218
  </zeebe:ioMapping>
205
219
  </bpmn:extensionElements>
206
220
  <bpmn:incoming>f_m_escC</bpmn:incoming>
207
- <bpmn:incoming>f_m_escA</bpmn:incoming>
221
+ <bpmn:incoming>f_m_escWait</bpmn:incoming>
208
222
  <bpmn:outgoing>f_m_answerRecord</bpmn:outgoing>
209
223
  </bpmn:userTask>
210
224
  <bpmn:serviceTask id="record-merge-answer" name="Record answer">
@@ -363,7 +377,11 @@
363
377
  <bpmn:sequenceFlow id="f_m_landed" sourceRef="wait-landed" targetRef="mark-merged" />
364
378
  <bpmn:sequenceFlow id="f_m_done" sourceRef="mark-merged" targetRef="MergeEnd" />
365
379
  <bpmn:sequenceFlow id="f_m_escC" sourceRef="merge-esc-conflict" targetRef="wait-merge-answer" />
366
- <bpmn:sequenceFlow id="f_m_escA" sourceRef="merge-esc-attempt" targetRef="wait-merge-answer" />
380
+ <bpmn:sequenceFlow id="f_m_escA" sourceRef="merge-esc-attempt" targetRef="gw-merge-escalated" />
381
+ <bpmn:sequenceFlow id="f_m_escWait" sourceRef="gw-merge-escalated" targetRef="wait-merge-answer">
382
+ <bpmn:conditionExpression xsi:type="bpmn:tFormalExpression">=escalated = true</bpmn:conditionExpression>
383
+ </bpmn:sequenceFlow>
384
+ <bpmn:sequenceFlow id="f_m_escReenter" name="no escalation opened" sourceRef="gw-merge-escalated" targetRef="arm-merge" />
367
385
  <bpmn:sequenceFlow id="f_m_answerRecord" sourceRef="wait-merge-answer" targetRef="record-merge-answer" />
368
386
  <bpmn:sequenceFlow id="f_m_answer" sourceRef="record-merge-answer" targetRef="arm-merge" />
369
387
  <bpmn:sequenceFlow id="f_reb_sla" name="agent SLA elapsed" sourceRef="be_rebase_sla" targetRef="merge-esc-conflict" />
@@ -440,11 +458,17 @@
440
458
  <bpmndi:BPMNShape id="BPMNShape_merge-esc-attempt" bpmnElement="merge-esc-attempt">
441
459
  <dc:Bounds x="1438" y="1040" width="100" height="80" />
442
460
  </bpmndi:BPMNShape>
461
+ <bpmndi:BPMNShape id="BPMNShape_gw-merge-escalated" bpmnElement="gw-merge-escalated" isMarkerVisible="true">
462
+ <dc:Bounds x="1663" y="1055" width="50" height="50" />
463
+ <bpmndi:BPMNLabel>
464
+ <dc:Bounds x="1651" y="1022" width="74" height="28" />
465
+ </bpmndi:BPMNLabel>
466
+ </bpmndi:BPMNShape>
443
467
  <bpmndi:BPMNShape id="BPMNShape_wait-merge-answer" bpmnElement="wait-merge-answer">
444
- <dc:Bounds x="1638" y="1040" width="100" height="80" />
468
+ <dc:Bounds x="1838" y="1040" width="100" height="80" />
445
469
  </bpmndi:BPMNShape>
446
470
  <bpmndi:BPMNShape id="BPMNShape_record-merge-answer" bpmnElement="record-merge-answer">
447
- <dc:Bounds x="1838" y="1040" width="100" height="80" />
471
+ <dc:Bounds x="2038" y="1040" width="100" height="80" />
448
472
  </bpmndi:BPMNShape>
449
473
  <bpmndi:BPMNShape id="BPMNShape_gw-ci-fix" bpmnElement="gw-ci-fix" isMarkerVisible="true">
450
474
  <dc:Bounds x="863" y="1535" width="50" height="50" />
@@ -577,16 +601,25 @@
577
601
  </bpmndi:BPMNEdge>
578
602
  <bpmndi:BPMNEdge id="BPMNEdge_f_m_escC" bpmnElement="f_m_escC">
579
603
  <di:waypoint x="1338" y="1560" />
580
- <di:waypoint x="1688" y="1560" />
581
- <di:waypoint x="1688" y="1120" />
604
+ <di:waypoint x="1888" y="1560" />
605
+ <di:waypoint x="1888" y="1120" />
606
+ </bpmndi:BPMNEdge>
607
+ <bpmndi:BPMNEdge id="BPMNEdge_f_m_escReenter" bpmnElement="f_m_escReenter">
608
+ <di:waypoint x="1688" y="1105" />
609
+ <di:waypoint x="1688" y="1140" />
610
+ <di:waypoint x="402" y="1140" />
611
+ <di:waypoint x="402" y="160" />
612
+ <bpmndi:BPMNLabel>
613
+ <dc:Bounds x="1008" y="1093" width="74" height="42" />
614
+ </bpmndi:BPMNLabel>
582
615
  </bpmndi:BPMNEdge>
583
616
  <bpmndi:BPMNEdge id="BPMNEdge_f_m_answerRecord" bpmnElement="f_m_answerRecord">
584
- <di:waypoint x="1738" y="1080" />
585
- <di:waypoint x="1838" y="1080" />
617
+ <di:waypoint x="1938" y="1080" />
618
+ <di:waypoint x="2038" y="1080" />
586
619
  </bpmndi:BPMNEdge>
587
620
  <bpmndi:BPMNEdge id="BPMNEdge_f_m_answer" bpmnElement="f_m_answer">
588
- <di:waypoint x="1888" y="1120" />
589
- <di:waypoint x="1888" y="1140" />
621
+ <di:waypoint x="2088" y="1120" />
622
+ <di:waypoint x="2088" y="1140" />
590
623
  <di:waypoint x="402" y="1140" />
591
624
  <di:waypoint x="402" y="160" />
592
625
  </bpmndi:BPMNEdge>
@@ -626,13 +659,13 @@
626
659
  <bpmndi:BPMNEdge id="BPMNEdge_f_ci_go" bpmnElement="f_ci_go">
627
660
  <di:waypoint x="888" y="1585" />
628
661
  <di:waypoint x="888" y="1605" />
629
- <di:waypoint x="1958" y="1605" />
630
- <di:waypoint x="1958" y="555" />
662
+ <di:waypoint x="2158" y="1605" />
663
+ <di:waypoint x="2158" y="555" />
631
664
  <di:waypoint x="1018" y="555" />
632
665
  <di:waypoint x="1018" y="580" />
633
666
  <di:waypoint x="1038" y="580" />
634
667
  <bpmndi:BPMNLabel>
635
- <dc:Bounds x="1963" y="1066" width="49" height="28" />
668
+ <dc:Bounds x="2163" y="1066" width="49" height="28" />
636
669
  </bpmndi:BPMNLabel>
637
670
  </bpmndi:BPMNEdge>
638
671
  <bpmndi:BPMNEdge id="BPMNEdge_f_ci_blocked" bpmnElement="f_ci_blocked">
@@ -657,14 +690,14 @@
657
690
  <di:waypoint x="933" y="280" />
658
691
  <di:waypoint x="933" y="305" />
659
692
  <di:waypoint x="1558" y="305" />
660
- <di:waypoint x="1558" y="1500" />
661
- <di:waypoint x="1418" y="1500" />
693
+ <di:waypoint x="1558" y="1125" />
694
+ <di:waypoint x="1418" y="1125" />
662
695
  <di:waypoint x="1418" y="875" />
663
696
  <di:waypoint x="1018" y="875" />
664
697
  <di:waypoint x="1018" y="900" />
665
698
  <di:waypoint x="1038" y="900" />
666
699
  <bpmndi:BPMNLabel>
667
- <dc:Bounds x="1464" y="1467" width="49" height="28" />
700
+ <dc:Bounds x="1563" y="701" width="49" height="28" />
668
701
  </bpmndi:BPMNLabel>
669
702
  </bpmndi:BPMNEdge>
670
703
  <bpmndi:BPMNEdge id="BPMNEdge_f_reb_blocked" bpmnElement="f_reb_blocked">
@@ -718,7 +751,11 @@
718
751
  </bpmndi:BPMNEdge>
719
752
  <bpmndi:BPMNEdge id="BPMNEdge_f_m_escA" bpmnElement="f_m_escA">
720
753
  <di:waypoint x="1538" y="1080" />
721
- <di:waypoint x="1638" y="1080" />
754
+ <di:waypoint x="1663" y="1080" />
755
+ </bpmndi:BPMNEdge>
756
+ <bpmndi:BPMNEdge id="BPMNEdge_f_m_escWait" bpmnElement="f_m_escWait">
757
+ <di:waypoint x="1713" y="1080" />
758
+ <di:waypoint x="1838" y="1080" />
722
759
  </bpmndi:BPMNEdge>
723
760
  <bpmndi:BPMNEdge id="BPMNEdge_f_reb_sla" bpmnElement="f_reb_sla">
724
761
  <di:waypoint x="1088" y="978" />