I am using nyan cat example (https://github.com/bpmn-io/bpmn-js-nyan), and I can perfectly integrate it inside my project. I know nyan cat is used for service tasks. Now I need to specify implementations for these service tasks, my goal is to create “multiple nyan cats”, each one with a specific implementation. Is that possible? if so, please guide me through the steps to achieve this goal.
First, I m using properties-panel example as a starter for my project ( https://github.com/bpmn-io/bpmn-js-examples/tree/master/properties-panel). With this, I can create service tasks and set the implementation using the properties-panel. Now, I would like to extend the palette by adding custom tasks (service tasks + their specific implementation ), so the user can select these tasks without the need to set manually the implementation in the properties panel.
With Nyan cat example and your example, I can extend the palette with an icon for service task, now how to set the implementation?
Hi @philippfromme, I was able to create multiple custom service tasks in the palette by setting custom properties for each one (setting business Object to the custom property), and each one with a particular icon/image. Now, I want to get these images when I draw these custom tasks (like for nyan cat). And I m supposing I need to test the businessObject since all these tasks are of type Service Task.
I tried something like this but it didnt work:
var bo = element.businessObject;
if (type === ‘bpmn:ServiceTask’ && bo.customproperty === ‘value1’ ) {
return this.drawCustomTask1();
}
I m trying to modify custom elements example https://github.com/bpmn-io/bpmn-js-examples/tree/master/custom-elements, but instead of creating a triangle and a circle I created custom service tasks each one with a specific property. The custom tasks are created in the palette using the code you suggested from the emoji example.
Hallo Everyone
I’m trying to insert custum elements into camunda but I don’t get it. ![imageEvent|16x16]
these are image i try to insert. can someone help me with the code make it?
Thanks,