Class AsyncExecutionPropertiesFragment
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<JmixFormLayout>
io.jmix.flowui.fragment.Fragment<JmixFormLayout>
io.jmix.bpmflowui.view.modeler.properties.asyncexecution.AsyncExecutionPropertiesFragment
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasStyle,FacetOwner,FragmentOwner,Serializable
Reusable checkbox group for the four Flowable asynchronous-execution flags. Renders only the
fields; the host decides how to frame them (e.g. wraps the fragment in its own section). The host
calls
setModeler(BpmnModeler) then setParentElement(HasAsyncExecution), and
(optionally) observes whether the element produces an async job via
addAsyncJobStateChangeListener(Consumer).- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.flowui.fragment.Fragment
Fragment.ReadyEvent -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected InstanceContainer<AsyncExecutionModel> protected JmixCheckboxprotected JmixCheckboxprotected JmixCheckboxprotected @Nullable BpmnModelerprotected @Nullable HasAsyncExecutionFields inherited from class io.jmix.flowui.fragment.Fragment
fragmentActions, fragmentData, fragmentFacets, parentController, uiComponents -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAsyncJobStateChangeListener(Consumer<Boolean> listener) Registers a listener notified when the element's async-job state changes — that is, whenasyncorasyncLeavetoggles.protected voidonAsyncExecutionDcItemPropertyChange(InstanceContainer.ItemPropertyChangeEvent<AsyncExecutionModel> event) protected voidpushToModeler(AsyncExecutionModel model) voidsetAsyncLeaveSupported(boolean supported) Controls whether the "asynchronous leave" pair (asyncLeaveandasyncLeaveExclusive) is shown.voidsetModeler(@Nullable BpmnModeler modeler) voidsetParentElement(HasAsyncExecution parentElement) Binds the section to the given element and initializes the checkbox states.Methods inherited from class io.jmix.flowui.fragment.Fragment
addReadyListener, findInnerComponent, getFragmentActions, getFragmentData, getFragmentFacets, getInnerComponent, getParentController, initContent, onAttach, onDetach, setFragmentActions, setFragmentData, setFragmentFacets, setParentController, setUiComponentsMethods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElementMethods inherited from class com.vaadin.flow.component.Component
addListener, bindVisible, findAncestor, fireEvent, from, get, getEventBus, getId, getListeners, getLocale, getParent, getTestId, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setTestId, setVisible, whenAttachedMethods 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 io.jmix.flowui.facet.FacetOwner
getIdMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, bindClassName, bindClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Field Details
-
asyncExecutionDc
-
exclusiveCheckBox
-
asyncLeaveCheckBox
-
asyncLeaveExclusiveCheckBox
-
modeler
-
parentElement
-
asyncJobStateListener
-
-
Constructor Details
-
AsyncExecutionPropertiesFragment
public AsyncExecutionPropertiesFragment()
-
-
Method Details
-
setModeler
-
setAsyncLeaveSupported
public void setAsyncLeaveSupported(boolean supported) Controls whether the "asynchronous leave" pair (asyncLeaveandasyncLeaveExclusive) is shown. It is hidden for end-position nodes that have no outgoing sequence flow, where an asynchronous leave is meaningless. Enabled by default.- Parameters:
supported- whether the element can have an asynchronous leave
-
setParentElement
Binds the section to the given element and initializes the checkbox states.- Parameters:
parentElement- the BPMN element model whose async flags are edited
-
addAsyncJobStateChangeListener
Registers a listener notified when the element's async-job state changes — that is, whenasyncorasyncLeavetoggles. The value is whether the element now produces an async job (async || asyncLeave). Used by hosts with job-dependent UI, e.g. the service task retry-cycle field.- Parameters:
listener- receives whether the element now produces an async job
-
onAsyncExecutionDcItemPropertyChange
@Subscribe(id="asyncExecutionDc", target=DATA_CONTAINER) protected void onAsyncExecutionDcItemPropertyChange(InstanceContainer.ItemPropertyChangeEvent<AsyncExecutionModel> event) -
pushToModeler
-