How i could integrate the lib token simulator in modeler bpmn-js?

I’m using bpmn-js v3.0.0 in a angular project, It works fine but I would like to add token-simulator.

We installed the lib with

npm install bpmn-js-token-simulation

and then We imported in the component.ts and finally added to the modeler.

The library doesn’t work for us. Maybe we forgot something.

...

ngOnInit() {
    ...

    this.modeler = new BpmnModeler({
      container: "#canvas",
      width: "100%",
      height: "600px",
      additionalModules: [
        TokenSimulationModule,
        {
          [InjectionNames.elementTemplates]: [
            "type",
            ElementTemplates.elementTemplates[1]
          ]
        },

        CamundaPropertiesProvider,

        {
          [InjectionNames.originalPaletteProvider]: [
            "type",
            OriginalPaletteProvider
          ]
        },

        PropertiesPanelModule
        
      ],
      propertiesPanel: {
        parent: "#properties"
      },
      moddleExtensions: {
        camunda: customModdle
      },
      elementTemplates: templates
    });

    this.modeler.toXml((err: any, xml: any) => console.log("xml", err, xml));
  }

...

We appreciate your help.

Hi @Daniel_Mejia,

is there any particular error message?

Did you try it with bpmn-js@8.x.x? The version v3.0.0 is quite old.

Thanks
Max