Class FlowStartContext

  • All Implemented Interfaces:
    java.io.Externalizable , java.io.Serializable , java.lang.Comparable , org.apache.avro.generic.GenericContainer , org.apache.avro.generic.GenericRecord , org.apache.avro.generic.IndexedRecord , org.apache.avro.specific.SpecificRecord

    
    public class FlowStartContext
    extends SpecificRecordBase implements SpecificRecord
                        

    The Start Flow event represents the information needed to initiate a flow.

    • Constructor Detail

      • FlowStartContext

        FlowStartContext()
        Default constructor.
      • FlowStartContext

        FlowStartContext(FlowKey statusKey, FlowInitiatorType initiatorType, String requestId, HoldingIdentity identity, String cpiId, HoldingIdentity initiatedBy, String flowClassName, String startArgs, KeyValuePairList contextPlatformProperties, Instant createdTimestamp)
        All-args constructor.
        Parameters:
        statusKey - The unique ID for tracking the flow status
        initiatorType - The type of initiator that started the flow
        requestId - The request ID assigned by the client or session that created the flow.
        identity - The identity of the party executing the flow.
        cpiId - The CPI ID for the package containing the flow.
        initiatedBy - The identity of the party that initiated the flow.
        flowClassName - The fully qualified class name of the flow.
        startArgs - The body of the request provided when the flow was started if this flow was started via RPC.
        contextPlatformProperties - A map of platform context properties made available to the flow which will also be propagated to sub flows, initiated flows and services, associating the entire end to end flow execution path with a notion of a context.
        createdTimestamp - The date and time the flow was created.
    • Method Detail

      • setStatusKey

         void setStatusKey(FlowKey value)

        Sets the value of the 'statusKey' field. The unique ID for tracking the flow status

        Parameters:
        value - the value to set.
      • setInitiatorType

         void setInitiatorType(FlowInitiatorType value)

        Sets the value of the 'initiatorType' field. The type of initiator that started the flow

        Parameters:
        value - the value to set.
      • setRequestId

         void setRequestId(String value)

        Sets the value of the 'requestId' field. The request ID assigned by the client or session that created the flow.

        Parameters:
        value - the value to set.
      • setIdentity

         void setIdentity(HoldingIdentity value)

        Sets the value of the 'identity' field. The identity of the party executing the flow.

        Parameters:
        value - the value to set.
      • setCpiId

         void setCpiId(String value)

        Sets the value of the 'cpiId' field. The CPI ID for the package containing the flow.

        Parameters:
        value - the value to set.
      • setInitiatedBy

         void setInitiatedBy(HoldingIdentity value)

        Sets the value of the 'initiatedBy' field. The identity of the party that initiated the flow.

        Parameters:
        value - the value to set.
      • setFlowClassName

         void setFlowClassName(String value)

        Sets the value of the 'flowClassName' field. The fully qualified class name of the flow.

        Parameters:
        value - the value to set.
      • setStartArgs

         void setStartArgs(String value)

        Sets the value of the 'startArgs' field. The body of the request provided when the flow was started if this flow was started via RPC. Null otherwise.

        Parameters:
        value - the value to set.
      • setContextPlatformProperties

         void setContextPlatformProperties(KeyValuePairList value)

        Sets the value of the 'contextPlatformProperties' field. A map of platform context properties made available to the flow which will also be propagated to sub flows, initiated flows and services, associating the entire end to end flow execution path with a notion of a context. Only populated if this flow was started via RPC. Empty otherwise.

        Parameters:
        value - the value to set.
      • setCreatedTimestamp

         void setCreatedTimestamp(Instant value)

        Sets the value of the 'createdTimestamp' field. The date and time the flow was created.

        Parameters:
        value - the value to set.
      • getEncoder

         static BinaryMessageEncoder<FlowStartContext> getEncoder()

        Return the BinaryMessageEncoder instance used by this class.

      • getDecoder

         static BinaryMessageDecoder<FlowStartContext> getDecoder()

        Return the BinaryMessageDecoder instance used by this class.

      • createDecoder

         static BinaryMessageDecoder<FlowStartContext> createDecoder(SchemaStore resolver)

        Create a new BinaryMessageDecoder instance for this class that uses the specified SchemaStore.

        Parameters:
        resolver - a SchemaStore used to find schemas by fingerprint
      • fromByteBuffer

         static FlowStartContext fromByteBuffer(ByteBuffer b)

        Deserializes a FlowStartContext from a ByteBuffer.

        Parameters:
        b - a byte buffer holding serialized data for an instance of this class