Package io.jmix.bpmflowui.view.mytasks
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,FragmentOwner,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:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.flowui.view.View
View.AfterCloseEvent, View.BeforeCloseEvent, View.BeforeShowEvent, View.InitEvent, View.QueryParametersChangeEvent, View.ReadyEventNested classes/interfaces inherited from interface io.jmix.flowui.view.LookupView
LookupView.ValidationContext<E> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BpmTenantProviderprotected Stringprotected CurrentUserSubstitutionprotected FlowableEntitiesConverterprotected MessageBundleprotected Metadataprotected com.vaadin.flow.component.textfield.TextFieldprotected Map<String,ProcessDefinitionData> protected ProcessFormViewsprotected org.flowable.engine.RepositoryServiceprotected org.flowable.engine.RuntimeServiceprotected com.vaadin.flow.component.html.Divprotected com.vaadin.flow.component.orderedlayout.VerticalLayoutprotected com.vaadin.flow.component.orderedlayout.VerticalLayoutprotected com.vaadin.flow.component.textfield.TextFieldprotected CollectionContainer<TaskData>protected org.flowable.engine.TaskServiceprotected TreeDataGrid<MyTasksTreeItem>protected CollectionContainer<MyTasksTreeItem>protected UserGroupServiceFields inherited from class io.jmix.flowui.view.StandardListView
DISCARD_ACTION_DEFAULT_ID, LOOKUP_ACTIONS_LAYOUT_DEFAULT_ID, SELECT_ACTION_DEFAULT_ID, selectionHandler, selectionValidator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected List<MyTasksTreeItem>createTreeItems(List<TaskData> allTasks, MyTasksTreeItem rootTreeItem, MyTasksTreeItem.AssignedType assignedType) protected List<MyTasksTreeItem>Creates tree items list for tasks assigned to the current user.protected List<MyTasksTreeItem>Creates tree items list for tasks where the current user is a candidate.protected List<ProcessDefinitionData>findLatestProcessDefinitions(List<ProcessDefinitionData> processDefinitions) protected voidprotected voidprotected voidonBeforeShow(View.BeforeShowEvent event) protected voidonRefreshBtnClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) voidprotected voidprotected voidonTasksTreeSelection(com.vaadin.flow.data.selection.SelectionEvent<com.vaadin.flow.component.grid.Grid<MyTasksTreeItem>, MyTasksTreeItem> event) protected booleantreeItemsEquals(MyTasksTreeItem item1, MyTasksTreeItem item2) Methods inherited from class io.jmix.flowui.view.StandardListView
closeWithDiscard, doSelect, findLookupComponent, getDiscardAction, getLookupActionsLayout, getLookupComponent, getSelectAction, getSelectionHandler, getSelectionValidator, handleSelection, lookupEnterPress, setLookupComponentMultiSelect, setSelectionHandler, setSelectionValidator, setupLookupComponent, setupSaveShortcut, validateSelectedItemsMethods inherited from class io.jmix.flowui.view.StandardView
initContentMethods inherited from class io.jmix.flowui.view.View
addAfterCloseListener, addBeforeCloseListener, addBeforeShowListener, addInitListener, addQueryParametersChangeListener, addReadyListener, afterNavigation, beforeEnter, beforeLeave, close, close, closeWithDefaultAction, getApplicationContext, getId, getPageTitle, getReturnParameters, getViewActions, getViewAttributes, getViewData, getViewFacets, getViewSupport, isPreventBrowserTabClosing, onAttach, onDetach, onDetachInternal, removeApplicationListeners, removeViewAttributes, setApplicationContext, setId, setMeterRegistry, setPreventBrowserTabClosing, setViewActions, setViewData, setViewFacets, unregisterBackNavigationMethods inherited from class com.vaadin.flow.component.Composite
getChildren, getContent, getElementMethods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getEventBus, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setVisibleMethods 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 com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Field Details
-
metadata
-
messageBundle
-
repositoryService
@Autowired protected org.flowable.engine.RepositoryService repositoryService -
runtimeService
@Autowired protected org.flowable.engine.RuntimeService runtimeService -
taskService
@Autowired protected org.flowable.engine.TaskService taskService -
entitiesConverter
-
processFormViews
-
userGroupService
-
currentUserSubstitution
-
bpmTenantProvider
-
tasksTree
-
tasksDc
-
tasksTreeItemsDc
-
tasksGrid
-
selectTaskDiv
-
taskInfoLayout
-
processDefinitionField
-
taskNameField
-
taskBox
-
allAssignedTasks
-
allGroupTasks
-
processInstanceIdToBusinessKeyMap
-
processDefinitionsById
-
userGroupCodes
-
currentUserName
-
-
Constructor Details
-
MyTasksListView
public MyTasksListView()
-
-
Method Details
-
onBeforeShow
-
initTasksTree
protected void initTasksTree() -
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
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
-
treeItemsEquals
-
initTaskTableColumns
protected void initTaskTableColumns() -
getUserGroupCodes
-
addMissingItemsToProcessInstanceIdToBusinessKeyMap
-
onRefreshBtnClick
@Subscribe("refreshBtn") protected void onRefreshBtnClick(com.vaadin.flow.component.ClickEvent<com.vaadin.flow.component.button.Button> event) -
onTaskCompletedEvent
-