An activity is a manifestation of a particular task in the business logic.
Activities are defined as methods of a plain Java interface annotated with
Each method defines a single activity type. A single workflow can use more than one activity interface and call more
that one activity method from the same interface.
The only requirement is that activity method arguments and return values are serializable to a byte array using the provided
interface. The default implementation uses a JSON serializer, but an alternative implementation can be easily configured.
Following is an example of an interface that defines four activities:
We recommend to use a single value type argument for activity methods. In this way, adding new arguments as fields to the value type is a backwards-compatible change.
@ActivityMethod annotation can be used to override a default activity name.