Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

about camunda-web-modeler #64

Open
zxxj opened this issue Jan 2, 2025 · 3 comments
Open

about camunda-web-modeler #64

zxxj opened this issue Jan 2, 2025 · 3 comments

Comments

@zxxj
Copy link

zxxj commented Jan 2, 2025

May I ask if the camunda-modeler-i18n plugin can be used in camunda-web-modeler? 
Looking forward to your answer.
thanks.

@zxxj
Copy link
Author

zxxj commented Jan 2, 2025

The web version is not the client version.

@dominikhorn93
Copy link
Member

Hi @zxxj

you could use this part as a bpmn.js Module. Unfortunately it is not possible to add custom modules to the camunda-web-modeler right now. We do not pass additional modules here

Did I miss something @peterhnm? To be able to add custom bpmn.js modules would be a nice feature for the camunda-web-modeler

@peterhnm
Copy link
Member

@dominikhorn93 no, you are right. The UI part of the plugin cannot be used for the camunda-web-modeler.

Unfortunately it is not possible to add custom modules to the camunda-web-modeler right now.

This is not quite correct. It is possible to pass additional modules via the bpmnJsOption property, like in the example below:
As you said, it would be possible to convert this part into a bpmn-js module and then users could pass it to the camunda-web-modeler.

    const bpmnJsOptions = useMemo(() => ({
        additionalModules: [
            TokenSimulationModule
        ],
    }), []);

    return (
        <BpmnModeler
            xml={xml}
            onEvent={onEvent}
            xmlTabOptions={xmlTabOptions}
            modelerTabOptions={{
                className: undefined,
                disabled: undefined,
                bpmnJsOptions: bpmnJsOptions,
                modelerOptions: modelerOptions,
                propertiesPanelOptions: propertiesPanelOptions
            }}/>
    );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants