Package io.temporal.activity
Interface DynamicActivity
-
public interface DynamicActivityUse DynamicActivity to implement any number of activity types dynamically. When an activity implementation that extends DynamicActivity is registered it is called for any activity type invocation that doesn't have an explicitly registered handler. Only one instance that implements DynamicActivity perWorkeris allowed.The DynamicActivity can be useful for integrations with existing libraries. For example, it can be used to call some external HTTP API with each function exposed as a different activity type.
Use
Activity.getExecutionContext()to query information about the activity type that should be implemented dynamically.- See Also:
DynamicWorkflow
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Objectexecute(EncodedValues args)
-
-
-
Method Detail
-
execute
java.lang.Object execute(EncodedValues args)
-
-