Skip to content

Add support for signal events in element templates #5381

@yT0n1

Description

@yT0n1

Problem you would like to solve

I want to template reusable signals for all my processes.

Proposed solution

Extend element template stack with support for:

  • eventDefinition = "bpmn:SignalEventDefinition"
  • binding type: "bpmn:Signal#property"
  • binding type "bpmn:Signal#property" name allows any value. Should match the behaviour of message catch events
  • signalRef on the signal event definition is automatically set to the signal element's id, matching the behaviour of messages
  • signals linked to the templated elements cannot be linked to other elements

Alternatives considered

Moving away from the message behaviour would likely be confusing

Additional context

{
    "elementType": {
        "value": "bpmn:StartEvent",
        "eventDefinition": "bpmn:SignalEventDefinition"
    },
    "description": "Listen to the signal",
    "properties": [
        {
            "type": "hidden",
            "value": "MY_SIGNAL",
            "binding": {
                "type": "bpmn:Signal#property",
                "name": "name"
            }
        }
    ]
}

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions