in azure/durable_functions/decorators/durable_app.py [0:0]
def activity_trigger(self, input_name: str,
activity: Optional[str] = None):
"""Register an Activity Function.
Parameters
----------
input_name: str
Parameter name of the Activity input.
activity: Optional[str]
Name of Activity Function.
The value is None by default, in which case the name of the method is used.
"""
@self._configure_function_builder
def wrap(fb):
def decorator():
fb.add_trigger(
trigger=ActivityTrigger(name=input_name,
activity=activity))
return fb
return decorator()
return wrap