symphony.bdk.core.activity.form.FormReplyContext#
- class symphony.bdk.core.activity.form.FormReplyContext(initiator: symphony.bdk.gen.agent_model.v4_initiator.V4Initiator, source_event: symphony.bdk.gen.agent_model.v4_symphony_elements_action.V4SymphonyElementsAction)#
Bases:
symphony.bdk.core.activity.api.ActivityContext
[symphony.bdk.gen.agent_model.v4_symphony_elements_action.V4SymphonyElementsAction
]Default implementation of the :py:class`ActivityContext` handled by the
FormReplyActivity
- __init__(initiator: symphony.bdk.gen.agent_model.v4_initiator.V4Initiator, source_event: symphony.bdk.gen.agent_model.v4_symphony_elements_action.V4SymphonyElementsAction)#
- Parameters
initiator – The activity initiator (i.e. the Symphony user that triggered an event in the chat)
source_event – The activity source real-time event.
Methods
__init__
(initiator, source_event)- param initiator
The activity initiator (i.e. the Symphony user that triggered an event in the chat)
get_form_value
(field_name)Get the value of specified form field
Attributes
form_id
form_values
- return
The activity initiator (i.e. the Symphony user that triggered an event in the chat)
- return
The activity source real-time event.
- get_form_value(field_name: str) str #
Get the value of specified form field
- Parameters
field_name – the form field name
- Returns
the form field value if it is present, None otherwise
- property initiator#
- Returns
The activity initiator (i.e. the Symphony user that triggered an event in the chat)
- property source_event#
- Returns
The activity source real-time event.