We are facing issue to show left side property panel issue only script task we are getting extra property can some one help me to enable service task and user task property panel.
UI not getting proper.
We are facing issue to show left side property panel issue only script task we are getting extra property can some one help me to enable service task and user task property panel.
UI not getting proper.
What do you refer to when you mean
web based camunda modeler
?
i am using Angular and referring ==> https://github.com/bpmn-io/bpmn-js-examples
Please be more specific about what example youâre using, what changes you made and what youâre trying to achieve. Feel free to share code. Otherwise itâs impossible to help you.
HTML
<div class=âcontent-wrapper workflowâ>
<div class=âmdl-gridâ>
<div class=âmdl-cell mdl-cellâ12-col panelâraised card-top bg-white big-cellâ>
<button (click)=âload()â class=âbtn btnâprimaryâ>Load</button>
<button (click)=âsave()â class=âbtn btnâprimaryâ>Save</button>
<!-- <button (click)=âdownload()â class=âbtn btnâprimaryâ>Download</button> -->
<!-- <button id=âaddWorkflowButtonâ matTooltip=âAdd Process Definitionâ class=âbtn btnâprimaryâ>Add</button> -->
<div class=âmodelerâ>
<div id=âcanvasâ></div>
<div id=âpropertiesâ></div>
</div>
</div>
</div>
</div>
TS code
import { Component, OnInit } from â@angular/coreâ;
import {HttpClient} from â@angular/common/httpâ;
import Modeler from âbpmn-js/lib/Modelerâ;
import propertiesPanelModule from âbpmn-js-properties-panelâ;
import propertiesProviderModule from âbpmn-js-properties-panel/lib/provider/camundaâ;
@Component({
selector: âapp-rootâ,
templateUrl: â./app.component.htmlâ,
styleUrls: [â./app.component.cssâ]
})
export class AppComponent implements OnInit{
modeler;
constructor(private http: HttpClient) {
}
ngOnInit(): void {
this.modeler = new Modeler({
container: â#canvasâ,
width: â100%â,
height: â600pxâ,
additionalModules: [
propertiesPanelModule,
propertiesProviderModule
],
propertiesPanel: {
parent: â#propertiesâ
}
});
}
load(): void {
const url = â/assets/bpmn/initial.bpmnâ;
this.http.get(url, {
headers: {observe: âresponseâ}, responseType: âtextâ
}).subscribe(
(x: any) => {
this.modeler.importXML(x);
},
);
}
save(): void {
this.modeler.saveXML((err: any, xml: any) => {
if(err){
console.log(âError Accurred while saving XMLâ, err);
}else{
console.log('Result of saving XML: ',xml);
}
})
}
}
i need complete web based camunda modeller in angular
hi,
here is my humble try (slightly reworked another project from github)
What do you mean by complete? What should it include?
Thereâs an example for integrating bpmn-js with Angular: https://github.com/bpmn-io/bpmn-js-example-angular