Interface TaskActivityContext


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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      <T> T getInput​(java.lang.Class<T> targetType)
      Gets the deserialized activity input.
      java.lang.String getName()
      Gets the name of the current task activity.
    • Method Detail

      • getName

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

        <T> T getInput​(java.lang.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