ParserOptions: {
    additionalXmlAttributeProcessor?: (value: string) => string;
    disableConsoleLog?: boolean;
}

Configure the BPMN parser.

Type declaration

  • OptionaladditionalXmlAttributeProcessor?: (value: string) => string

    Apply additional processing to the XML attributes in the BPMN source.

    When defined, this function is called after the bpmn-visualization attribute processing. You can use it to perform extra entities decoding. This can be done by using libraries like https://www.npmjs.com/package/entities.

    import { decodeXML } from 'entities';
    const parserOptions: ParserOptions = {
    parser: {
    additionalXmlAttributeProcessor: (val: string) => { return decodeXML(val) }
    }
    }
  • OptionaldisableConsoleLog?: boolean

    If true, disable the console logs produced by the parser.

    false