More info about didi injector instatiation and invoke

Hi,

When I checked out same bpmn extension examples or plugins such as camunda-modeler-process-io-specification-plugin, I couldn’ t find module definition (e.g., const module={'car': ['type', Car]}) and injector instantiation (e.g., const injector = new Injector([ carModule ]); ) for didi. How the injector is instantiated in those cases?

Besides, sometimes I saw

injector.invoke() with 3 arguments (e.g., injector.invoke(processIoProps, null, { group: processIoGroup, element: element }) )

and also object.$inject = [ 'injector' ]

I would appreciate some hints about what those statements do

Those topics are not mentioned there. https://github.com/nikku/didi

Much thanks in advance

Sezgin

I think this topic is more related to bpmn.io as a project, so you might find more help in the forum of the toolkit.