EccTasks
EccTasks is the task list of the logged-in user - on the dashboard and on /tasks. It shows the tasks of all cases with search, sorting, paging, actions and automatic refresh.
import EccTasks from "@/ecc/components/widgets/EccTasks";
import { EccTasksDetail } from "@/ecc/components/widgets/EccTasksDetail";
const [selected, setSelected] = useState<EccTask | null>(null);
const reload = useRef<() => void>();
<EccTasks scope="mytasks" onSelectTask={setSelected} selectedTaskId={selected?.id}
onReloadRef={(fn) => { reload.current = fn; }} />
<EccTasksDetail task={selected} onRefresh={async () => reload.current?.()} />
Props
|
|
| start state of the toggle mine only / all |
|
| - | a row was clicked |
|
| - | an action of a row finished |
|
| - | keeps the selection across reloads |
|
| - | rows per page |
|
| - | number of tasks found |
|
| - | gives you a function to reload the list |
Columns
Key | business key of the case (copyable) |
Case |
|
Start | start of the case |
Task | name of the task |
Actions | claim, release, open and edit - depending on the state of the task and the user |
The list reloads every two minutes, after each action and when the toggle changes. Each row is an EccTask; the case is in rootProcessInstance.
The table is an EccTable and the toggle an EccBoolean.
Related
detail pane for the selected task | |
how your app adds its own content to the detail pane | |
the table the list is built on | |
how the business service selects and enriches tasks |
On this page
- EccTasks