Interface HumanTask<P,O extends Enum<O>>

Type Parameters:
P - process payload type
O - closed set of outcomes that can complete this task

public interface HumanTask<P,O extends Enum<O>>
A typed unit of human work in a business process.
  • Method Summary

    Modifier and Type
    Method
    Description
    assignment(P payload)
    Candidate users/roles allowed to see and claim this task.
    Enum class used to validate that the process route handles every possible outcome.
    default Ref<?>
    subject(P payload)
    Typed business object this task concerns; rendered as a direct link when present.
    default String
    subjectLabel(P payload)
    Human-readable snapshot for subject(Object), such as an order number.
    default String
    title(P payload)
    Human-facing task title.
  • Method Details

    • outcomeType

      Class<O> outcomeType()
      Enum class used to validate that the process route handles every possible outcome.
    • title

      default String title(P payload)
      Human-facing task title.
    • assignment

      TaskAssignment assignment(P payload)
      Candidate users/roles allowed to see and claim this task.
    • subject

      default Ref<?> subject(P payload)
      Typed business object this task concerns; rendered as a direct link when present.
    • subjectLabel

      default String subjectLabel(P payload)
      Human-readable snapshot for subject(Object), such as an order number.

      The value is persisted with the task so its link remains understandable even when the referenced record later changes.