Class MetadataExistsBranchingService

  • All Implemented Interfaces:
    AdaptrisComponent, ComponentLifecycle, ComponentLifecycleExtension, MessageEventGenerator, Service, StateManagedComponent

    @ComponentProfile(summary="Perform a branch based on whether one or more metadata keys exist or not",
                      tag="service,branching",
                      branchSelector=true)
    public class MetadataExistsBranchingService
    extends MetadataBranchingServiceImp

    Service which sets the ID of the Service to apply next based on whether any value is present against any configured metadata key.

    In the adapter configuration file this class is aliased as metadata-exists-branching-service which is the preferred alternative to the fully qualified classname when building your configuration.

    • Constructor Detail

      • MetadataExistsBranchingService

        public MetadataExistsBranchingService()
    • Method Detail

      • getMetadataExistsServiceId

        public java.lang.String getMetadataExistsServiceId()

        Returns the ServiceId to use next if metadata (other than "") exists against any of the configured keys.

        Returns:
        the ServiceId to use next if metadata (other than "") exists against any of the configured keys
      • setMetadataExistsServiceId

        public void setMetadataExistsServiceId​(java.lang.String s)

        Sets the ServiceId to use next if metadata (other than "") exists against any of the configured keys.

        Parameters:
        s - the ServiceId to use next if metadata (other than "") exists against any of the configured keys