Package io.jmix.bpmui.screen.mytasks
Class MyTasksBrowse
- All Implemented Interfaces:
FrameOwner
,LookupScreen<TaskData>
,MultiSelectLookupScreen
@UiController("bpm_MyTasks.browse")
@UiDescriptor("my-tasks-browse.xml")
public class MyTasksBrowse
extends StandardLookup<TaskData>
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.ui.screen.Screen
Screen.AfterCloseEvent, Screen.AfterDetachEvent, Screen.AfterInitEvent, Screen.AfterShowEvent, Screen.BeforeCloseEvent, Screen.BeforeShowEvent, Screen.InitEvent
Nested classes/interfaces inherited from interface io.jmix.ui.screen.LookupScreen
LookupScreen.ValidationContext<T>
-
Field Summary
Modifier and TypeFieldDescriptionprotected BpmTenantProvider
protected String
protected CurrentUserSubstitution
protected FlowableEntitiesConverter
protected MessageBundle
protected Metadata
protected Map<String,
ProcessDefinitionData> protected ProcessFormScreens
protected org.flowable.engine.RepositoryService
protected org.flowable.engine.RuntimeService
protected HBoxLayout
protected CollectionContainer<TaskData>
protected org.flowable.engine.TaskService
protected Tree<MyTasksTreeItem>
protected CollectionContainer<MyTasksTreeItem>
protected UserGroupService
Fields inherited from class io.jmix.ui.screen.StandardLookup
selectHandler, selectValidator
Fields inherited from interface io.jmix.ui.screen.FrameOwner
NO_OPTIONS, WINDOW_CLOSE_ACTION, WINDOW_COMMIT_AND_CLOSE_ACTION, WINDOW_DISCARD_AND_CLOSE_ACTION
Fields inherited from interface io.jmix.ui.screen.LookupScreen
LOOKUP_CANCEL_ACTION_ID, LOOKUP_ENTER_PRESSED_ACTION_ID, LOOKUP_ITEM_CLICK_ACTION_ID, LOOKUP_SELECT_ACTION_ID, LOOKUP_SELECT_CLOSE_ACTION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected 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 void
protected void
protected void
protected void
void
protected void
protected void
protected String
tasksTreeIconProvider
(MyTasksTreeItem treeItem) protected boolean
treeItemsEquals
(MyTasksTreeItem item1, MyTasksTreeItem item2) Methods inherited from class io.jmix.ui.screen.StandardLookup
addDefaultCancelAction, addDefaultSelectAction, cancel, getLookupActionsLayout, getLookupComponent, getSelectHandler, getSelectValidator, getWindowActionOptional, initActions, select, select, setLookupComponentMultiSelect, setSelectHandler, setSelectValidator, setupCommitShortcut, setupLookupComponent
Methods inherited from class io.jmix.ui.screen.Screen
addAfterCloseListener, addAfterDetachListener, addAfterInitListener, addAfterShowListener, addBeforeCloseListener, addBeforeShowListener, addInitListener, addUrlParamsChangeListener, close, close, closeWithDefaultAction, fireEvent, getApplicationContext, getEventHub, getExtensions, getId, getScreenData, getUiEventListeners, getWindow, isMultipleOpen, isSameScreen, setApplicationContext, setExtensions, setId, setScreenData, setUiEventListeners, setWindow, show
-
Field Details
-
tasksTreeItemsDc
-
tasksTable
-
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
-
tasksTree
-
tasksDc
-
processFormScreens
-
selectTaskLabel
-
taskInfoPanel
-
processDefinitionLabel
-
taskNameLabel
-
userGroupService
-
currentUserSubstitution
-
bpmTenantProvider
-
allAssignedTasks
-
allGroupTasks
-
processInstanceIdToBusinessKeyMap
-
processDefinitionsById
-
userGroupCodes
-
currentUserName
-
-
Constructor Details
-
MyTasksBrowse
public MyTasksBrowse()
-
-
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
@Subscribe("tasksTree") protected void onTasksTreeSelection(Tree.SelectionEvent<MyTasksTreeItem> event) -
tasksTreeIconProvider
@Install(to="tasksTree", subject="iconProvider") protected String tasksTreeIconProvider(MyTasksTreeItem treeItem) -
onTasksTableEdit
-
treeItemsEquals
-
initTaskTableGeneratedColumns
protected void initTaskTableGeneratedColumns() -
getUserGroupCodes
-
addMissingItemsToProcessInstanceIdToBusinessKeyMap
-
onRefreshBtnClick
-
onTaskCompletedEvent
-