In my projet, I add “text annotation” to “task” with the following code :
var textAnnotation = elementFactory.createShape({
type: 'bpmn:TextAnnotation',
businessObject: moddle.create('bpmn:TextAnnotation', {
text: data['chemicalBedWashing']+' '+data['quantityBedWashing']+' '+data['unitBedWashing']
})
});
// append the new text annotation to our shape
modeling.appendShape(element, textAnnotation, {
x: element.x + 90 + element.width,
y: element.y + element.height/2
});
The problem is when I save the bpmn and reopen it, I have the following error :
Error: <bpmn:Association id=“Association_13uet5m” />#target Ref not specified
How can I fix that?
Thank you.