Class BpmnModelerImpl
java.lang.Object
com.vaadin.flow.component.Component
io.jmix.bpmflowui.uicomponent.bpmnmodeler.BpmnModelerImpl
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasComponents,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasEnabled,com.vaadin.flow.component.HasStyle,BpmnModeler,Serializable
@Tag("jmix-bpmn-modeler")
@NpmPackage(value="bpmn-js",
version="12.1.0")
@CssImport("bpmn-js/dist/assets/bpmn-font/css/bpmn-embedded.css") @CssImport("bpmn-js/dist/assets/bpmn-font/css/bpmn.css") @CssImport("bpmn-js/dist/assets/bpmn-font/css/bpmn-codes.css") @CssImport("bpmn-js/dist/assets/diagram-js.css")
@JsModule("./src/bpmn-modeler/bpmn-modeler.ts")
public class BpmnModelerImpl
extends com.vaadin.flow.component.Component
implements BpmnModeler
- See Also:
-
Field Summary
FieldsFields inherited from interface io.jmix.bpmflowui.uicomponent.bpmnmodeler.BpmnModeler
NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSchemaChangedListener(com.vaadin.flow.component.ComponentEventListener<XmlSchemaChangedEvent> listener) Adds a listener to handle BPMN diagram schema changes.voidaddSelectedElementChangedListener(com.vaadin.flow.component.ComponentEventListener<SelectionChangedEvent> listener) Adds a listener to handle BPMN diagram element selection changes.voidvoidvoidvoidvoidvoidvoidvoidvoidvoidGets the current BPMN XML from the modeler component.booleanChecks if changes have been made to the BPMN model.voidvoidvoidvoidvoidvoidAsynchronously requests the current BPMN XML from the modeler component inm frontend client.voidsetBpmnXml(String bpmnXml) Sets the BPMN XML for the modeler component.voidsetHasChanged(boolean hasChanged) Sets the state of the modeler component changes Can be called for both java (server) code and from typescript (client)voidvoidvoidvoidvoidvoidMethods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasComponents
add, add, add, addComponentAsFirst, addComponentAtIndex, remove, remove, removeAllMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasEnabled
isEnabled, setEnabledMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Field Details
-
bpmnXml
-
-
Constructor Details
-
BpmnModelerImpl
public BpmnModelerImpl()
-
-
Method Details
-
addSelectedElementChangedListener
public void addSelectedElementChangedListener(com.vaadin.flow.component.ComponentEventListener<SelectionChangedEvent> listener) Description copied from interface:BpmnModelerAdds a listener to handle BPMN diagram element selection changes.- Specified by:
addSelectedElementChangedListenerin interfaceBpmnModeler- Parameters:
listener- The listener to handle selection changes.
-
addSchemaChangedListener
public void addSchemaChangedListener(com.vaadin.flow.component.ComponentEventListener<XmlSchemaChangedEvent> listener) Description copied from interface:BpmnModelerAdds a listener to handle BPMN diagram schema changes.- Specified by:
addSchemaChangedListenerin interfaceBpmnModeler- Parameters:
listener- The listener to handle schema changes.
-
setBpmnXml
Description copied from interface:BpmnModelerSets the BPMN XML for the modeler component.- Specified by:
setBpmnXmlin interfaceBpmnModeler- Parameters:
bpmnXml- The BPMN XML to be set.
-
getBpmnXml
Description copied from interface:BpmnModelerGets the current BPMN XML from the modeler component. Retrieves data from the internal component state, not directly from the frontend component. Note that it may have outdated data.For obtaining the most up-to-date BPMN XML, consider using
BpmnModeler.requestForBpmnXml().- Specified by:
getBpmnXmlin interfaceBpmnModeler- Returns:
- The current BPMN XML.
- See Also:
-
hasChanged
public boolean hasChanged()Description copied from interface:BpmnModelerChecks if changes have been made to the BPMN model. This method provides real-time information about whether changes have been made. The frontend component notifies the backend by invoking BpmnModeler#setHasChanged(true) every time the schema is updated.- Specified by:
hasChangedin interfaceBpmnModeler- Returns:
trueif changes have been made,falseotherwise.
-
setHasChanged
@ClientCallable public void setHasChanged(boolean hasChanged) Sets the state of the modeler component changes Can be called for both java (server) code and from typescript (client)- Specified by:
setHasChangedin interfaceBpmnModeler- Parameters:
hasChanged- flag for changes statement- See Also:
-
requestForBpmnXml
Description copied from interface:BpmnModelerAsynchronously requests the current BPMN XML from the modeler component inm frontend client.- Specified by:
requestForBpmnXmlin interfaceBpmnModeler- Returns:
- A
CompletableFuturecontaining the current BPMN XML.
-
updateElementProperties
- Specified by:
updateElementPropertiesin interfaceBpmnModeler
-
createOrUpdateNestedObject
- Specified by:
createOrUpdateNestedObjectin interfaceBpmnModeler
-
createOrUpdateFormData
- Specified by:
createOrUpdateFormDatain interfaceBpmnModeler
-
createOrUpdateExtensionElement
- Specified by:
createOrUpdateExtensionElementin interfaceBpmnModeler
-
createOrUpdateRootElement
- Specified by:
createOrUpdateRootElementin interfaceBpmnModeler
-
removeRootElement
- Specified by:
removeRootElementin interfaceBpmnModeler
-
setMultiInstanceFormalExpression
- Specified by:
setMultiInstanceFormalExpressionin interfaceBpmnModeler
-
updateTimerEventDefinition
- Specified by:
updateTimerEventDefinitionin interfaceBpmnModeler
-
updateEventDefinition
- Specified by:
updateEventDefinitionin interfaceBpmnModeler
-
updateEventDefinitionProperties
- Specified by:
updateEventDefinitionPropertiesin interfaceBpmnModeler
-
removeExtensionElements
- Specified by:
removeExtensionElementsin interfaceBpmnModeler
-
createOrUpdateSpringBean
- Specified by:
createOrUpdateSpringBeanin interfaceBpmnModeler
-
removeSpringBean
- Specified by:
removeSpringBeanin interfaceBpmnModeler
-
createOrUpdateProcessVariable
- Specified by:
createOrUpdateProcessVariablein interfaceBpmnModeler
-
createOrUpdateExtensionProperty
- Specified by:
createOrUpdateExtensionPropertyin interfaceBpmnModeler
-
removeExtensionProperty
- Specified by:
removeExtensionPropertyin interfaceBpmnModeler
-
removeProcessVariable
- Specified by:
removeProcessVariablein interfaceBpmnModeler
-
createAndSetListProperty
- Specified by:
createAndSetListPropertyin interfaceBpmnModeler
-
updateProcessDocumentation
- Specified by:
updateProcessDocumentationin interfaceBpmnModeler
-
createListener
- Specified by:
createListenerin interfaceBpmnModeler
-
removeParticipantProcessExtensionElements
- Specified by:
removeParticipantProcessExtensionElementsin interfaceBpmnModeler
-
createOrUpdateParticipantProcessExtensionElement
- Specified by:
createOrUpdateParticipantProcessExtensionElementin interfaceBpmnModeler
-