question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Timer type 'Duration' not supported in desktop modeler for event subprocess

See original GitHub issue

Describe the bug

For a BPMN file with an event subprocess with a timer start event, ‘duration’ is not an available timer type.

If you manually set a duration in the file, the process works as expected i.e. duration is a supported timer type.

Steps to reproduce

  1. Load the BPMN file listed below.
  2. Click on the timer start event in the event subprocess.
  3. Look at the timer type in the properties panel. It’s blank.
  4. Click on the type dropdown. Available values are <none>, Date and Cycle.

BPMN file:

<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:modeler="http://camunda.org/schema/modeler/1.0" id="Definitions_1p3swuy" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="5.3.0" modeler:executionPlatform="Camunda Cloud" modeler:executionPlatformVersion="8.0.0">
  <bpmn:process id="Process_1yu5ann" isExecutable="true">
    <bpmn:startEvent id="StartEvent_1" />
    <bpmn:subProcess id="Activity_0tjuvmo" triggeredByEvent="true">
      <bpmn:startEvent id="Event_1fxbhtr">
        <bpmn:timerEventDefinition id="TimerEventDefinition_0asytfz">
          <bpmn:timeDuration>P12D</bpmn:timeDuration>
        </bpmn:timerEventDefinition>
      </bpmn:startEvent>
    </bpmn:subProcess>
  </bpmn:process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_1">
    <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1yu5ann">
      <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
        <dc:Bounds x="179" y="79" width="36" height="36" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Activity_1j2vuua_di" bpmnElement="Activity_0tjuvmo" isExpanded="true">
        <dc:Bounds x="140" y="150" width="350" height="200" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="Event_0edqybl_di" bpmnElement="Event_1fxbhtr">
        <dc:Bounds x="180" y="232" width="36" height="36" />
      </bpmndi:BPMNShape>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn:definitions>

Expected behavior

Duration is available in the timer type dropdown.

Environment

Camunda Modeler system information

  • Version: 5.3.0
  • Operating System: Mac OS 10.15.7
  • Plugins: <no plugins>
  • Execution Platform: BPMN - Camunda Platform 8

Additional context

Depends on https://github.com/camunda/zeebe/issues/5141

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
dan-revealcommented, Sep 19, 2022

Thanks folks. I’ve realised that for non-interrupting timer start events in event subprocesses, I can use a cycle rather than a duration if I set the cycle to have a single repetition, e.g. R1/PT2M to fire once after 2 minutes.

Unfortunately that workaround doesn’t help for interrupting timer start events - understandably, those can’t be cycle timers. They fail at deploy time:

Command 'CREATE' rejected with code 'INVALID_ARGUMENT': Expected to deploy new resources, but encountered the following errors:
'example.bpmn': - Element: EventSubprocess_TestMeDo
    - ERROR: Interrupting timer event with time cycle is not allowed.
 [ deploy-error ]
1reaction
pinussilvestruscommented, Sep 19, 2022

Thanks for the clarification @saig0 👍

I will move this one to the backlog then and add https://github.com/camunda/zeebe/issues/5141 to the description as a dependency.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can timer start event in subprocess work? - Camunda forum
The first one: thinkdoom: “Note: A subprocess cannot have a timer start event.” Refers to embedded subprocesses (with a solid border) within a ......
Read more >
BPMN 2.0 Symbols - A complete guide with examples.
A comprehensive resource for BPMN 2.0 symbols. Learn about BPMN events, tasks, subprocesses, messages and more.
Read more >
Start Events
Is used when the start of a Process occurs on a specific date or cycle time (e.g., every Friday). Timerstart. Conditional Start Event....
Read more >
Adding Delays, Deadlines, and Time-Based Cycles to a Process
Timer events enable you to control the flow of your process using a time condition. Timer events are not based on the business...
Read more >
Resolve issues when starting Power BI Desktop
Provide all information collected to our support team when requested. Resolve data connection time-out. In this situation, when you attempt to ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found