Metadata-Version: 2.5
Name: trytond_score_task
Version: 8.0.0.2
Summary: Score Workflow Engine — Human Work Items and Inbox
Author: Clemens Hupka
Maintainer-email: Clemens Hupka <clemens.hupka@backend.at>
License-Expression: GPL-3.0-or-later
License-File: COPYRIGHT
License-File: LICENSE
Keywords: delegation,engine,inbox,score,task,tryton,workflow
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Environment :: Plugins
Classifier: Framework :: Tryton
Classifier: Topic :: Office/Business
Requires-Python: >=3.10
Requires-Dist: trytond-company<8.1,>=8.0
Requires-Dist: trytond-score-timer<8.1,>=8.0
Requires-Dist: trytond-score<8.1,>=8.0
Requires-Dist: trytond<8.1,>=8.0
Provides-Extra: test
Description-Content-Type: text/x-rst

Score Task Module
=================

The ``score_task`` module adds the human work item to the ``score``
workflow engine.  The engine moves a run when its definition says so, and
nothing of that waits for a person: this module supplies the missing
transition effect, a task that a transition raises and that the run
stands still behind until somebody answers it.

A task names the run it suspends and the transition that raised it, and
it carries who is asked, how urgent the work is and when it is due.  It
is offered to a user, to a group, or to an assignee the definition
derives from the record - the owner of the request, for instance.  The
run stands in the state the transition goes from until the task is
completed, and the outcome the completion declares selects the branch the
run continues down.

The task is worked in the inbox: a personal worklist and a group queue
are the two windows the module ships, a task is claimed to be worked on
and released back to its queue, and it is completed with an outcome.
Three further decisions are worth documenting.

- a task is a queue entry, not a copy of the work: the record, the
  definition and the history are read through the run, so a task never
  becomes a second, drifting copy of a record.
- a task is handed over, it is not moved around: a delegation keeps the
  original assignee and the delegate side by side with an audit row, and
  the user who delegated stays accountable - and able to complete the
  task - unless the deployment makes the handover a full one.
- a task that sits unwatched is escalated: a ladder of steps the
  definition declares reassigns the task or notifies a distribution list
  when a delay passes, and a reminder warns the assignee before the task
  is due.

Nothing of the module starts a thread.  The moments a task is escalated
at and the moment it is reminded at are timers of ``score_timer``, which
are performed by the scheduled job a deployment already runs, so one
scheduler serves the whole engine.  A task is read by the user it is
assigned to, by the members of the group it is offered to and by the user
who handed it over, and by nobody else: the rule that says so is an
``ir.rule`` of the module, and not a criterion a window carries.
