Hello, I know that several topics answer the question but not enough to meet my expectations. I’d like to create several tasks that have a different form in the panel. These are simple tasks but they have a distinction from the others so that they are unique and the form elements are different for each. Here’s my code, thanks in advance for any help:
customPalette.js
function createTask(suitabilityScore) {
return function (event) {
const businessObject = bpmnFactory.create('bpmn:Task');
const shape = elementFactory.createShape({
type: 'bpmn:Task',
businessObject: businessObject
});
create.start(event, shape);
};
}