Represents one unit of work that needs to be executed. It contains
all the information that it necessary to execute this unit of work
as parameters, and (possibly) results related to its execution.
WorkItems represent a unit of work in an abstract, high-level and
implementation-independent manner. They are created by the engine
whenever an external task needs to be performed. The engine will
delegate the work item to the appropriate
for execution. Whenever a work item is completed (or whenever the work
item cannot be executed and should be aborted), the work item manager
should be notified.
For example, a work item could be created whenever an email needs to
be sent. This work item would have a name that represents the type of
work that needs to be executed (e.g. "Email") and parameters related to
its execution (e.g. "From" = "email@example.com", "To" = ..., "Body" = ..., ...).
Result parameters can contain results related to the execution of this
work item (e.g. "Success" = true).
- See also: