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

public class AsyncExecutionPropertiesFragment extends Fragment<JmixFormLayout>
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:
  • Field Details

  • Constructor Details

    • AsyncExecutionPropertiesFragment

      public AsyncExecutionPropertiesFragment()
  • Method Details

    • setModeler

      public void setModeler(@Nullable BpmnModeler modeler)
    • setAsyncLeaveSupported

      public void setAsyncLeaveSupported(boolean supported)
      Controls whether the "asynchronous leave" pair (asyncLeave and asyncLeaveExclusive) 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

      public void setParentElement(HasAsyncExecution parentElement)
      Binds the section to the given element and initializes the checkbox states.
      Parameters:
      parentElement - the BPMN element model whose async flags are edited
    • addAsyncJobStateChangeListener

      public void addAsyncJobStateChangeListener(Consumer<Boolean> listener)
      Registers a listener notified when the element's async-job state changes — that is, when async or asyncLeave toggles. 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

      protected void pushToModeler(AsyncExecutionModel model)