| Methods |
public
|
reconcile(
WorkItemRuleInterface $rule,
CarbonImmutable $at,
?string $correlation = null,
): array{added: int, resolved: int, standing: int}
Reconcile one rule's findings at `$at`: a subject new to the inbox is added, one no longer found is resolved, one
still…
Reconcile one rule's findings at $at: a subject new to the inbox is added, one no longer found is resolved, one
still found keeps its first sighting and its dismissal. Refuses a finding whose addressee does not fit its role.
Implemented by
-
LaravelUi5\Sdk\WorkItems\WorkItemService::reconcile()
|
#
|
public
|
dismiss(WorkItem $item, string $reason, SdkContext $sdk): WorkItem
A person takes note of an open finding and leaves it — the reason is required.
A person takes note of an open finding and leaves it — the reason is required.
Implemented by
-
LaravelUi5\Sdk\WorkItems\WorkItemService::dismiss()
|
#
|
public
|
open(BackedEnum|string $role, ?Partner $partner = null, ?Model $context = null): Collection<int, WorkItem>
The pending items of a role — optionally of one partner, optionally on one context —, the oldest first.
The pending items of a role — optionally of one partner, optionally on one context —, the oldest first.
Implemented by
-
LaravelUi5\Sdk\WorkItems\WorkItemService::open()
|
#
|
public
|
forPerson(Partner $person, CarbonImmutable $at): Collection<int, WorkItem>
The pending items a person sees at `$at`: those addressed to them, and those addressed to a role they hold —
on the…
The pending items a person sees at $at: those addressed to them, and those addressed to a role they hold —
on the item's context where it has one —, the oldest first.
Implemented by
-
LaravelUi5\Sdk\WorkItems\WorkItemService::forPerson()
|
#
|
public
|
count(Partner $person, CarbonImmutable $at): int
How many items {@see forPerson()} returns.
How many items {@see forPerson()} returns.
Implemented by
-
LaravelUi5\Sdk\WorkItems\WorkItemService::count()
|
#
|
public
|
all(): Collection<int, WorkItem>
Every item in every state, regardless of its addressee — the IT lead's view, the oldest first.
Every item in every state, regardless of its addressee — the IT lead's view, the oldest first.
Implemented by
-
LaravelUi5\Sdk\WorkItems\WorkItemService::all()
|
#
|
public
|
marks(WorkItem $item, CarbonImmutable $at): list<WorkItemMark>
How a pending item hangs at `$at` — its rule gone (H1), its rule failed at the last run (H2), nobody who can see
it (H3…
How a pending item hangs at $at — its rule gone (H1), its rule failed at the last run (H2), nobody who can see
it (H3); empty for an item that does not hang, and for a closed one.
Implemented by
-
LaravelUi5\Sdk\WorkItems\WorkItemService::marks()
|
#
|
public
|
marked(CarbonImmutable $at): list<array{item: WorkItem, marks: non-empty-list<WorkItemMark>}>
The pending items that hang at `$at`, each with its marks — what the IT lead looks at every Monday morning and
before…
The pending items that hang at $at, each with its marks — what the IT lead looks at every Monday morning and
before every release; the oldest first.
Implemented by
-
LaravelUi5\Sdk\WorkItems\WorkItemService::marked()
|
#
|