Hi Team,
We took above custom rendered as a reference and implement stroke-width to sequenceflow,
The custom render is adding an attribute to bpmn:sequenceFlow element,
We are parsing above generated bpmn xml through camunda maven dependency,
org.camunda.bpm.model
camunda-bpmn-model
${camunda.version}
The camunda parser throwing error because the new attribute “stroke-width” is not specific to bpmn schema.
Kindly help on how can we parse custom render attribute by camunda API.
Thanks,
Madhu
Reference code:
[11/26/2019 5:50 PM] Sahoo, Nivedita:
if (is(element, ‘bpmn:SequenceFlow’)) {
const attrs = element.businessObject.$attrs;
const connectorColorAttr = {};
if (attrs.isSelected) {
connectorColorAttr.strokeWidth = attrs.strokeWidth || '1px';
}
connectorColorAttr.markerEnd = this.marker('sequenceflow-end', element.id, connectorColorAttr.stroke);
svgAttr(shape, connectorColorAttr);
this.modifyDefs(parentNode, connectorColorAttr);
}
Thanks,
Madhu