DurableActivityTrigger Interface
Implements
public interface DurableActivityTrigger
implements java.lang.annotation.Annotation
Azure Functions attribute for binding a function parameter to a Durable Task activity input.
The following is an example of an activity trigger function that accepts a String input and returns a String output.
@FunctionName("SayHello")
public String sayHello(
@DurableActivityTrigger(name = "name") String name,
final ExecutionContext context) {
context.getLogger().info("Saying hello to: " + name);
return String.format("Hello %s!", name);
}
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| abstract java.lang.String |
activity()
The name of the activity function. |
| abstract java.lang.String |
dataType()
Defines how Functions runtime should treat the parameter value. |
| abstract java.lang.String |
name()
The variable name used in function. |
Method Details
activity
public abstract String activity()
The name of the activity function.
If not specified, the function name is used as the name of the activity.
This property supports binding parameters.
Returns:
dataType
public abstract String dataType()
Defines how Functions runtime should treat the parameter value. Possible values are:
- "": get the value as a string, and try to deserialize to actual parameter type like POJO
- string: always get the value as a string
- binary: get the value as a binary data, and try to deserialize to actual parameter type byte[]
Returns:
name
public abstract String name()
The variable name used in function.json.
Returns: