Class TaskSubscriptionHandle

  • All Implemented Interfaces:
    dev.bpmcrafters.processengineapi.task.TaskSubscription

    
    public final class TaskSubscriptionHandle
     implements TaskSubscription
                        

    Task subscription handle.

    Since:

    0.0.1

    • Constructor Detail

      • TaskSubscriptionHandle

        TaskSubscriptionHandle(TaskType taskType, Set<String> payloadDescription, Map<String, String> restrictions, String taskDescriptionKey, TaskHandler action, TaskTerminationHandler termination)
    • Method Detail

      • getTaskType

         final TaskType getTaskType()

        Type of the task.

      • getPayloadDescription

         final Set<String> getPayloadDescription()

        Set of variable names delivered as payload. If null, no limitation is provided and the entire payload is delivered. If empty set, no variables will be delivered. If contain any values, only variable names contained in the set will be delivered.

      • getTaskDescriptionKey

         final String getTaskDescriptionKey()

        Optionally restricts the subscription to a task description key. By default, we consider the element ID from BPMN XML to be the description key. Adapter may implement this differently.

      • getAction

         final TaskHandler getAction()

        Action handler to execute if the task is delivered.

      • getTermination

         final TaskTerminationHandler getTermination()

        Termination callback to signal that the task is gone.