Add intermediate timer event to the palette provider

Hi, first of all, thank you for your effort on this library, i really appreciate it.

Now, i need to add the ability to create an intermediate timer event from the palette provider that i’m building, i was able to remove and add different other elements, but i can’t make this one work. It would be awesome if you can explain how each entry definition works.

this is the code i’m adding

'create.timer-intermediate-event': createAction(
  'bpmn:TimerEventDefinition',
  'event',
  'bpmn-icon-intermediate-event-catch-timer',
  translate('Create IntermediateTimerEvent'),
),

Your help would be really appreciated.

Thanks

Hey,

unfortunately this doesn’t work out of the box. But you could write a custom createAction function for this particular case (or extend it in your custom palette provider). This function should take care of creating an intermediate catch event with a timer event definition (take a look here for inspiration).

Hope that helps :slight_smile:

Thanks for your help @pedesen, it was really valuable, i managed to resolve this one just passing the options argumento to the createAction function { eventDefinitionType: 'bpmn:TimerEventDefinition' } , thanks for point me to the right direction, kudos.