symphony.bdk.core.activity.form.FormReplyActivity#
- class symphony.bdk.core.activity.form.FormReplyActivity(*args, **kwds)#
Bases:
symphony.bdk.core.activity.api.AbstractActivity
[symphony.bdk.core.activity.form.FormReplyContext
]A form reply activity corresponds to an Elements form submission.
- __init__()#
Methods
__init__
()before_matcher
(context)This callback can be used to prepare
ActivityContext
before actually processing the matches method.matches
(context)Matches the
ActivityContext
to decide whether anAbstractActivity
can be executed or not.on_activity
(context)Contains the activity business logic.
- before_matcher(context: symphony.bdk.core.activity.api.C)#
This callback can be used to prepare
ActivityContext
before actually processing the matches method.- Parameters
context – an instance of
ActivityContext
- matches(context: symphony.bdk.core.activity.form.FormReplyContext) bool #
Matches the
ActivityContext
to decide whether anAbstractActivity
can be executed or not.- Parameters
context – an instance of
ActivityContext
- Returns
True if activity has to be triggered, False otherwise.
- async on_activity(context: symphony.bdk.core.activity.form.FormReplyContext)#
Contains the activity business logic. Executed only if the matches method returned a true value.
- Parameters
context – an instance of
ActivityContext