Interface BpmnModeler
- All Superinterfaces:
com.vaadin.flow.component.HasComponents,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasEnabled,Serializable
- All Known Implementing Classes:
BpmnModelerImpl
public interface BpmnModeler
extends com.vaadin.flow.component.HasComponents
Interface for a BPMN modeler component that allows modeling and interaction with BPMN diagrams.
This interface extends
HasComponents to integrate with Vaadin Flow.-
Field Summary
Fields -
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.voidvoidvoidcreateOrUpdateExtensionElement(CreateOrUpdateExtensionElementCmd createOrUpdateExtensionElementCmd) voidvoidcreateOrUpdateFormData(CreateOrUpdateFormDataCmd createOrUpdateFormDataCmd) voidcreateOrUpdateNestedObject(CreateOrUpdateNestedObjectCmd createOrUpdateNestedObjectCmd) voidvoidvoidcreateOrUpdateRootElement(CreateOrUpdateRootElementCmd createOrUpdateRootElementCmd) voidGets the current BPMN XML from the modeler component.booleanChecks if changes have been made to the BPMN model.voidvoidvoidvoidvoidremoveRootElement(RemoveRootElementCmd removeRootElementCmd) voidAsynchronously 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 hasChanges) Sets the flag indicating whether changes have been made to the BPMN model.voidvoidupdateElementProperties(UpdateElementPropertiesCmd updateElementPropertiesCmd) voidvoidvoidvoidMethods 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, setEnabled
-
Field Details
-
NAME
The name of the BPMN modeler component.- See Also:
-
-
Method Details
-
addSelectedElementChangedListener
void addSelectedElementChangedListener(com.vaadin.flow.component.ComponentEventListener<SelectionChangedEvent> listener) Adds a listener to handle BPMN diagram element selection changes.- Parameters:
listener- The listener to handle selection changes.
-
addSchemaChangedListener
void addSchemaChangedListener(com.vaadin.flow.component.ComponentEventListener<XmlSchemaChangedEvent> listener) Adds a listener to handle BPMN diagram schema changes.- Parameters:
listener- The listener to handle schema changes.
-
setBpmnXml
Sets the BPMN XML for the modeler component.- Parameters:
bpmnXml- The BPMN XML to be set.
-
getBpmnXml
String getBpmnXml()Gets 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
requestForBpmnXml().- Returns:
- The current BPMN XML.
- See Also:
-
hasChanged
boolean hasChanged()Checks 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.- Returns:
trueif changes have been made,falseotherwise.
-
setHasChanged
void setHasChanged(boolean hasChanges) Sets the flag indicating whether changes have been made to the BPMN model. This method can be invoked by the frontend (client code) if the XML schema has changed.- Parameters:
hasChanges-trueif changes have been made,falseotherwise.
-
requestForBpmnXml
CompletableFuture<String> requestForBpmnXml()Asynchronously requests the current BPMN XML from the modeler component inm frontend client.- Returns:
- A
CompletableFuturecontaining the current BPMN XML.
-
updateElementProperties
-
createOrUpdateNestedObject
-
createOrUpdateFormData
-
createOrUpdateExtensionElement
void createOrUpdateExtensionElement(CreateOrUpdateExtensionElementCmd createOrUpdateExtensionElementCmd) -
setMultiInstanceFormalExpression
-
updateTimerEventDefinition
-
updateEventDefinition
-
updateEventDefinitionProperties
-
createOrUpdateRootElement
-
removeRootElement
-
createOrUpdateSpringBean
-
removeSpringBean
-
createOrUpdateProcessVariable
-
createOrUpdateExtensionProperty
-
removeExtensionProperty
-
createAndSetListProperty
-
removeProcessVariable
-
updateProcessDocumentation
-
removeExtensionElements
-
createListener
-
removeParticipantProcessExtensionElements
-
createOrUpdateParticipantProcessExtensionElement
-