Package io.dapr.workflows.runtime
Class WorkflowActivityContext
java.lang.Object
io.dapr.workflows.runtime.WorkflowActivityContext
- All Implemented Interfaces:
com.microsoft.durabletask.TaskActivityContext
public class WorkflowActivityContext
extends Object
implements com.microsoft.durabletask.TaskActivityContext
Wrapper for Durable Task Framework
TaskActivityContext
.-
Constructor Summary
ConstructorDescriptionWorkflowActivityContext
(com.microsoft.durabletask.TaskActivityContext context) Constructor for WorkflowActivityContext. -
Method Summary
-
Constructor Details
-
WorkflowActivityContext
public WorkflowActivityContext(com.microsoft.durabletask.TaskActivityContext context) throws IllegalArgumentException Constructor for WorkflowActivityContext.- Parameters:
context
- TaskActivityContext- Throws:
IllegalArgumentException
- if context is null
-
-
Method Details
-
getName
Gets the name of the current activity.- Specified by:
getName
in interfacecom.microsoft.durabletask.TaskActivityContext
- Returns:
- the name of the current activity
-
getInput
Gets the input of the current activity.- Specified by:
getInput
in interfacecom.microsoft.durabletask.TaskActivityContext
- Type Parameters:
T
- the type of the input- Parameters:
targetType
- targetType of the input- Returns:
- the input of the current activity
-