CustomPalette not work


‘create.timer-event’: {
group: ‘Event’,
className: ‘bpmn-icon-start-event-timer’,
title: translate(‘创建计时器事件’),
action: {
dragstart: createSignalEventDefinition,
click: createSignalEventDefinition

function createSignalEventDefinition(event) {
const shape = elementFactory.createShape({ type: ‘bpmn:SignalEventDefinition’ });

      create.start(event, shape);


He can’t be drawn

What are you trying to do?

I am going to add a timing start event, a signal start event to the panel, but I can’t expand it to the canvas.

bpmn:SignalEventDefinition is not a shape itself. It’s an event definition that a start event, intermediate event or end event can have.

This is how you would create a start event with such an event definition:

var startEvent = elementFactory.createShape({
  type: 'bpmn:StartEvent'

var timerEventDefinition = bpmnFactory.create('bpmn:TimerEventDefinition');

startEvent.businessObject.eventDefinitions = [ timerEventDefinition ];

create.start(event, startEvent);

thank you very much!