Skip to content

Instantly share code, notes, and snippets.

@ljmotta

ljmotta/BpmnPage.tsx

Last active Oct 14, 2020
Embed
What would you like to do?
BpmnPage Envelope Locator
const editorEnvelopeLocator: EditorEnvelopeLocator = useMemo(() => {
return {
targetOrigin: window.location.origin,
mapping: new Map([
[
"bpmn",
{
resourcesPathPrefix: "https://kiegroup.github.io/kogito-online/editors/0.7.0/bpmn",
envelopePath: "https://kiegroup.github.io/kogito-online/editors/0.7.0/envelope",
},
],
[
"bpmn2",
{
resourcesPathPrefix: "https://kiegroup.github.io/kogito-online/editors/0.7.0/bpmn2",
envelopePath: "https://kiegroup.github.io/kogito-online/editors/0.7.0/envelope",
},
],
]),
};
}, []);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment