My (initial) task is to create a custom palette:
- A completely new icon to add on the palette
- Bring out bpmn:BusinessRuleTask on the palette
We’re using angular. I’m beginner for both JS and TS, so please bear with me.
For #1, we have something like in https://github.com/narve/angular-bpmn/blob/master/src/app/props-provider/CustomPaletteProvider.ts, i.e. we implemented getPaletteEntries so that it gets SVG info from a CSS class, e.g.:
getPaletteEntries() {
return {
new-task: {
group: 'tools',
className: new-task,
</code>
But I was wondering if I could do something similar like in example SketchyRenderer module:
var pathData = pathMap.getScaledPath('TASK_TYPE_NEW_TASK', ...);
That would be great, coz then that probably also means I can reuse default SVGs in bpmn-js like:
var pathData = pathMap.getScaledPath('TASK_TYPE_BUSINESS_RULE_HEADER', ...);
So I guess, some of the things I’d be interested at are:
- How can I expose pathMap in my CustomPaletteProvider.ts
- How can I use that to provide custom tasks in the palette?
Thanks in advance!