Change the isExecutable value after initializing

Hi, I integrated the camunda modeler in my angular application, So when I initialize and load its first demo image the isExecutable key is false by defayult. But I want o change it to true. How can I do it prorammatically.
here is my code,

this.modeler = new BpmnModeler({
container: ‘#canvas’,
width: ‘100%’,
height: ‘65vh’,
propertiesPanel: {
parent: ‘#properties
},
additionalModules: [
// basic props
{[paletteProvider]: [‘type’, PaletteProvider]},
BpmnPropertiesPanelModule,
BpmnPropertiesProviderModule,
CamundaPlatformPropertiesProviderModule,
// for more options like 3dots
CreateAppendAnythingModule,
// CreateAppendElementTemplatesModule,
ElementTemplatesPropertiesProviderModule,
// CamundaExtensionModule,
],
moddleExtensions: {
camunda: CamundaModdleDescriptor
}
});
this.loadInitialBPMNFile();

loadInitialBPMNFile(): void {
const url = ‘…/assets/bpmn/initial.bpmn’;
this.http.get(url, {
headers: {observe: ‘response’}, responseType: ‘text’
}).subscribe({
next: (xml: any) => {
this.modeler.importXML(xml);
},
});
}

The easiest way to do this is to simply change the initial BPMN you’re importing so it’s <bpmn:process id="Process_1" isExecutable="true">.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.