Interface FlowExternalCommunication

All Superinterfaces:
CommonDecorator, ExternalCommunicationDecorator, FlowCommon
All Known Subinterfaces:
FlowAttachmentCommunication, FlowBindingLogicServerCommunication, FlowContext, FLowUserIdSettingCommunication
All Known Implementing Classes:
DefaultFlowContext

public interface FlowExternalCommunication extends FlowCommon, ExternalCommunicationDecorator
Flow-level communication for sending requests to external servers.
Since:
25.1
Author:
渔民小镇
date:
2025-10-09
  • Method Details

    • ofExternalRequestMessage

      default ExternalRequestMessage ofExternalRequestMessage(int templateId, byte[] payload)
      Create an ExternalRequestMessage targeting the specified external server template ID, with the given payload. Routing fields (user identity, trace ID, net ID, external server ID) are copied from the current request and server.
      Specified by:
      ofExternalRequestMessage in interface ExternalCommunicationDecorator
      Parameters:
      templateId - the external server template ID
      payload - the encoded byte payload (may be null)
      Returns:
      a new ExternalRequestMessage with routing fields populated