Interface TaskActivityContext


public interface TaskActivityContext
Interface that provides TaskActivity implementations with activity context, such as an activity's name and its input.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    getInput(Class<T> targetType)
    Gets the deserialized activity input.
    Gets the name of the current task activity.
    Gets the execution id of the current task activity.
    int
    Gets the task id of the current task activity.
    Gets the trace parent id for the current workflow execution.
  • Method Details

    • getName

      String getName()
      Gets the name of the current task activity.
      Returns:
      the name of the current task activity
    • getInput

      <T> T getInput(Class<T> targetType)
      Gets the deserialized activity input.
      Type Parameters:
      T - the target type to deserialize the input into
      Parameters:
      targetType - the Class object associated with T
      Returns:
      the deserialized activity input value
    • getTaskExecutionId

      String getTaskExecutionId()
      Gets the execution id of the current task activity.
      Returns:
      the execution id of the current task activity
    • getTaskId

      int getTaskId()
      Gets the task id of the current task activity.
      Returns:
      the task id of the current task activity
    • getTraceParent

      String getTraceParent()
      Gets the trace parent id for the current workflow execution.
      Returns:
      trace parent id