camunda / camunda-modeler

An integrated modeling solution for BPMN, DMN and Forms based on bpmn.io.
https://camunda.com/products/modeler
MIT License
1.49k stars 479 forks source link

Define element templates for typed events (Message, Error, Compensation) #343

Open nikku opened 8 years ago

nikku commented 8 years ago

Make it possible to define element templates for typed events such as Message, Error, Signal (Throw|Catch) events.

Cf. forum thread with inspiration for template extensions and friends.

Example

As a developer I should be able to define mappings for the underlying event definition:

<bpmn:intermediateThrowEvent id="IntermediateThrowEvent_0f68r99" name="waiting canceled">
  <bpmn:extensionElements>
    <camunda:executionListener class="com.camunda.bpm.demo.signal_event_interrupts_parallel_branch.SendSignalToParallelBranchExecutionLister" event="start" />
    <camunda:properties>
      <camunda:property name="signalName" value="waitingCanceled" />
    </camunda:properties>
  </bpmn:extensionElements>
  <bpmn:incoming>SequenceFlow_0dlumc1</bpmn:incoming>
  <bpmn:outgoing>SequenceFlow_1c84drg</bpmn:outgoing>
  <bpmn:signalEventDefinition signalRef="Signal_12lmyze" />
</bpmn:intermediateThrowEvent>

<bpmn:signal id="Signal_12lmyze" name="SubscribeToThisSignalAndDie" />

Tasks


Also see SUPPORT-4140, event definitions test diagram.

falko commented 7 years ago

My current consulting customer needs this, especially for Signal Events.

nikku commented 6 years ago

This should be built upon scoped templates (implemented via https://github.com/camunda/camunda-modeler/issues/308).

Ichigo85 commented 6 years ago

Hi all. With this feature will it be possible to define also a messageEventDefinition on the intermediateThrowEvent? I tried to define a scoped template for it (with a delegate expression and field injections)and found that it does not work now and came up to this issue.

nikku commented 6 years ago

@Ichigo85 Correct.

Ichigo85 commented 6 years ago

Hi @nikku . Since I need this feature for my company and I would like to contribute and learn how to develop on bpmn-js/camunda modeler project, I already started a few months ago to create some camunda plugin and add a few modification to my camunda modeler fork. Is there something that I can do for this contribution? Can you redirect me to some documentation or code to start? I saw that element templates are in bpmn-js-properties-panel module, right?

nikku commented 6 years ago

As you've mentioned, you'd need to contribute to the bpmn-js-properties-panel to bake in the functionality.

Which feature set would you like to support?

nikku commented 6 years ago

Prior work has been done to support what we call scoped templates for camunda:Connector: https://github.com/camunda/camunda-modeler/issues/308. If possible we should re-use the created infrastructure.

MaxTru commented 2 years ago

Feedback from customer in NA via CSM: this is a high-priority requirement, they would love to have it. cc @nikku

billbarni commented 1 year ago

6 years. Any news on this? USA Enterprise client needs this...