Interface DynamicActivity
public interface DynamicActivity
Use 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 per
Worker is 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:
-
Method Summary
-
Method Details
-
execute
-