Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support ad-hoc subprocesses #4739

Open
13 of 20 tasks
saig0 opened this issue Dec 5, 2024 · 6 comments
Open
13 of 20 tasks

Support ad-hoc subprocesses #4739

saig0 opened this issue Dec 5, 2024 · 6 comments
Assignees
Labels
BPMN Camunda 8 Flags an issue as related to Camunda 8 enhancement New feature or request in progress Currently worked on
Milestone

Comments

@saig0
Copy link
Member

saig0 commented Dec 5, 2024

What should we do?

In C8 BPMN editor

  • I can add an ad-hoc subprocess for the execution platform 8.7 and don't see a linting error
    • <= 8.6 indicates incompatibility (as usual)
  • I can set the FEEL expression activeElementsCollection on an ad-hoc subprocess

The activeElementsCollection attribute

  • Only for ad-hoc processes
  • Optional, can be empty
  • Must be a FEEL expression
  • Description: Return a list of BPMN element ids that should be activated when entering the ad-hoc subprocess.
  • XML path: bpmn:adHocSubProcess > bpmn:extensionElements > zeebe:adHoc > activeElementsCollection

XML representation

    <bpmn:adHocSubProcess id="Activity_1kaluzl">
      <bpmn:extensionElements>
        <zeebe:adHoc activeElementsCollection="=activeElements" />
      </bpmn:extensionElements>
      <bpmn:incoming>Flow_1qw4w9y</bpmn:incoming>
      <bpmn:outgoing>Flow_1e61rhe</bpmn:outgoing>
      <bpmn:serviceTask id="Activity_1762pvi" name="A">
        <bpmn:extensionElements>
          <zeebe:taskDefinition type="A" />
        </bpmn:extensionElements>
      </bpmn:serviceTask>
      <bpmn:serviceTask id="Activity_036tbyz" name="B">
        <bpmn:extensionElements>
          <zeebe:taskDefinition type="B" />
        </bpmn:extensionElements>
      </bpmn:serviceTask>
    </bpmn:adHocSubProcess>

BPMN example

Screenshot from 2024-12-05 10-10-03

Why should we do it?

Child of https://github.com/camunda/product-hub/issues/2546

@saig0 saig0 added BPMN enhancement New feature or request Camunda 8 Flags an issue as related to Camunda 8 labels Dec 5, 2024
@barmac
Copy link
Collaborator

barmac commented Dec 5, 2024

Thanks for opening the issue! I will put it to the backlog for now but we will keep it in mind for the future planning.
Actually, ready is a better place given the state of the linked epic.

@barmac barmac added backlog Queued in backlog ready Ready to be worked on and removed backlog Queued in backlog labels Dec 5, 2024
@barmac barmac changed the title Support ad-hoc subprocesses for 8.7 Support ad-hoc subprocesses Dec 5, 2024
@nikku nikku added this to the 8.7 milestone Jan 2, 2025
@barmac
Copy link
Collaborator

barmac commented Jan 20, 2025

@saig0 Does the zeebe:adHoc extension need to be always present in order to deploy, or can we remove it (not add it) when there is no activeElementsCollection?

@barmac
Copy link
Collaborator

barmac commented Jan 20, 2025

To clarify: element templates relevance for the epic

@saig0
Copy link
Member Author

saig0 commented Jan 20, 2025

Does the zeebe:adHoc extension need to be always present in order to deploy, or can we remove it (not add it) when there is no activeElementsCollection?

The extension element is optional. It can be removed if the attribute is not set. Or, the attribute can be empty. The runtime supports both. 👍

@barmac barmac modified the milestones: 8.7, M85 Jan 20, 2025
@jarekdanielak jarekdanielak added the in progress Currently worked on label Jan 21, 2025 — with bpmn-io-tasks
@jarekdanielak jarekdanielak removed the ready Ready to be worked on label Jan 21, 2025
jarekdanielak added a commit to camunda/zeebe-bpmn-moddle that referenced this issue Jan 21, 2025
jarekdanielak added a commit to bpmn-io/bpmn-js-properties-panel that referenced this issue Jan 22, 2025
jarekdanielak added a commit to camunda/bpmnlint-plugin-camunda-compat that referenced this issue Jan 22, 2025
jarekdanielak added a commit to bpmn-io/bpmn-js-properties-panel that referenced this issue Jan 22, 2025
jarekdanielak added a commit to camunda/bpmnlint-plugin-camunda-compat that referenced this issue Jan 22, 2025
jarekdanielak added a commit to camunda/bpmnlint-plugin-camunda-compat that referenced this issue Jan 22, 2025
jarekdanielak added a commit to camunda/linting that referenced this issue Jan 22, 2025
jarekdanielak added a commit to bpmn-io/bpmn-js-properties-panel that referenced this issue Jan 22, 2025
barmac pushed a commit to camunda/linting that referenced this issue Jan 22, 2025
jarekdanielak added a commit to bpmn-io/bpmn-js-properties-panel that referenced this issue Jan 22, 2025
jarekdanielak added a commit to bpmn-io/bpmn-js-properties-panel that referenced this issue Jan 22, 2025
@jarekdanielak
Copy link
Contributor

@saig0 does the engine support a collapsed ad-hoc subprocess?

@saig0
Copy link
Member Author

saig0 commented Jan 23, 2025

does the engine support a collapsed ad-hoc subprocess?

@jarekdanielak yes, it supports collapsed ad-hoc subprocesses too. 👍

jarekdanielak added a commit to camunda/camunda-bpmn-js-behaviors that referenced this issue Jan 23, 2025
barmac pushed a commit to camunda/camunda-bpmn-js-behaviors that referenced this issue Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BPMN Camunda 8 Flags an issue as related to Camunda 8 enhancement New feature or request in progress Currently worked on
Projects
None yet
Development

No branches or pull requests

5 participants