finos/symphony-bdk-java

Add Message ID and Stream ID to FormReplyActivity's FormReplyContext

ystxn opened this issue · 2 comments

ystxn commented

Feature Request

Description of Problem:

Using FormReplyActivity to capture Elements form submissions currently does not provide the Message ID from the originating form. This blocks workflows attempting to either suppress or update the message containing the form that was just submitted.

For message update, message id alone is not sufficient and stream id is also required. Obtaining stream id currently requires a call 3 levels deep: context.getSourceEvent().getStream().getStreamId().

Potential Solutions:

Add getMessageId() and getStreamId() to FormReplyContext. This will allow the most commonly-used identifiers - Form ID, Message ID and Stream ID - to be accessed easily when processing form submissions.

Good idea, seems like a small and easy improvement!

PR created @ystan- #622 :)