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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addSchemaChangedListener
(com.vaadin.flow.component.ComponentEventListener<XmlSchemaChangedEvent> listener) Adds a listener to handle BPMN diagram schema changes.void
addSelectedElementChangedListener
(com.vaadin.flow.component.ComponentEventListener<SelectionChangedEvent> listener) Adds a listener to handle BPMN diagram element selection changes.void
void
void
createOrUpdateExtensionElement
(CreateOrUpdateExtensionElementCmd createOrUpdateExtensionElementCmd) void
void
createOrUpdateFormData
(CreateOrUpdateFormDataCmd createOrUpdateFormDataCmd) void
createOrUpdateNestedObject
(CreateOrUpdateNestedObjectCmd createOrUpdateNestedObjectCmd) void
void
void
createOrUpdateRootElement
(CreateOrUpdateRootElementCmd createOrUpdateRootElementCmd) void
Gets the current BPMN XML from the modeler component.boolean
Checks if changes have been made to the BPMN model.void
void
void
void
void
removeRootElement
(RemoveRootElementCmd removeRootElementCmd) void
Asynchronously requests the current BPMN XML from the modeler component inm frontend client.void
setBpmnXml
(String bpmnXml) Sets the BPMN XML for the modeler component.void
setHasChanged
(boolean hasChanges) Sets the flag indicating whether changes have been made to the BPMN model.void
void
updateElementProperties
(UpdateElementPropertiesCmd updateElementPropertiesCmd) void
void
void
void
Methods inherited from interface com.vaadin.flow.component.HasComponents
add, add, add, addComponentAsFirst, addComponentAtIndex, remove, remove, removeAll
Methods inherited from interface com.vaadin.flow.component.HasElement
getElement
Methods 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:
true
if changes have been made,false
otherwise.
-
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
-true
if changes have been made,false
otherwise.
-
requestForBpmnXml
CompletableFuture<String> requestForBpmnXml()Asynchronously requests the current BPMN XML from the modeler component inm frontend client.- Returns:
- A
CompletableFuture
containing 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
-