Class MyTasksListView

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.Composite<T>
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasStyle, com.vaadin.flow.router.AfterNavigationObserver, com.vaadin.flow.router.BeforeEnterObserver, com.vaadin.flow.router.BeforeLeaveObserver, com.vaadin.flow.router.HasDynamicTitle, com.vaadin.flow.router.internal.AfterNavigationHandler, com.vaadin.flow.router.internal.BeforeEnterHandler, com.vaadin.flow.router.internal.BeforeLeaveHandler, LookupView<TaskData>, MultiSelectLookupView, Serializable

@Route(value="bpm/mytasks", layout=DefaultMainViewParent.class) @ViewController("bpm_MyTasksList") @ViewDescriptor("my-tasks-list-view.xml") public class MyTasksListView extends StandardListView<TaskData>
See Also:
  • Field Details

  • Constructor Details

    • MyTasksListView

      public MyTasksListView()
  • Method Details

    • onBeforeShow

      @Subscribe protected void onBeforeShow(View.BeforeShowEvent event)
    • initTasksTree

      protected void initTasksTree()
    • createTreeItemsForAssignedTasks

      protected List<MyTasksTreeItem> createTreeItemsForAssignedTasks()
      Creates tree items list for tasks assigned to the current user. The tree will contain nodes for process definitions and for user tasks.
    • createTreeItemsForGroupTasks

      protected List<MyTasksTreeItem> createTreeItemsForGroupTasks()
      Creates tree items list for tasks where the current user is a candidate. The tree will contain nodes for process definitions and for user tasks.
    • createTreeItems

      protected List<MyTasksTreeItem> createTreeItems(List<TaskData> allTasks, MyTasksTreeItem rootTreeItem, MyTasksTreeItem.AssignedType assignedType)
    • findLatestProcessDefinitions

      protected List<ProcessDefinitionData> findLatestProcessDefinitions(List<ProcessDefinitionData> processDefinitions)
    • onTasksTreeSelection

      protected void onTasksTreeSelection(com.vaadin.flow.data.selection.SelectionEvent<com.vaadin.flow.component.grid.Grid<MyTasksTreeItem>,MyTasksTreeItem> event)
    • ontasksGridEdit

      @Subscribe("tasksGrid.edit") protected void ontasksGridEdit(ActionPerformedEvent event)
    • treeItemsEquals

      protected boolean treeItemsEquals(MyTasksTreeItem item1, MyTasksTreeItem item2)
    • initTaskTableColumns

      protected void initTaskTableColumns()
    • getUserGroupCodes

      protected List<String> getUserGroupCodes()
    • addMissingItemsToProcessInstanceIdToBusinessKeyMap

      protected void addMissingItemsToProcessInstanceIdToBusinessKeyMap(List<TaskData> tasks)
    • onRefreshBtnClick

      @Subscribe("refreshBtn") protected void onRefreshBtnClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event)
    • onTaskCompletedEvent

      @EventListener(TaskCompletedUiEvent.class) public void onTaskCompletedEvent()