Class TaskSubscriptionHandle
-
- All Implemented Interfaces:
-
dev.bpmcrafters.processengineapi.task.TaskSubscription
public final class TaskSubscriptionHandle implements TaskSubscriptionTask subscription handle.
- Since:
0.0.1
-
-
Field Summary
Fields Modifier and Type Field Description private final TaskTypetaskTypeprivate final Set<String>payloadDescriptionprivate final Map<String, String>restrictionsprivate final StringtaskDescriptionKeyprivate final TaskHandleractionprivate final TaskTerminationHandlertermination
-
Method Summary
Modifier and Type Method Description final TaskTypegetTaskType()Type of the task. final Set<String>getPayloadDescription()Set of variable names delivered as payload. final Map<String, String>getRestrictions()Restricts the subscription. final StringgetTaskDescriptionKey()Optionally restricts the subscription to a task description key. final TaskHandlergetAction()Action handler to execute, if the task is delivered. final TaskTerminationHandlergetTermination()Termination callback to signal that the task is gone. StringtoString()-
-
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. Ifempty set, no variables will be delivered. If contain any values, only variable names contained in the set will be delivered.
-
getRestrictions
final Map<String, String> getRestrictions()
Restricts the subscription.
-
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.
-
-
-
-