Class AdjudicateCompanyEvent


public class AdjudicateCompanyEvent extends SystemEvent<PrincipalCompany>
Event that will be called when it is necessary to resolve the company related to a user principal
  • Field Details

    • username

      protected String username
  • Constructor Details

    • AdjudicateCompanyEvent

      public AdjudicateCompanyEvent(String username)
      Create a new system event that will be called when it is necessary to resolve the company related to a user principal The first busines task defininig a valid PrincipalCompany will interrupt the seuqnce of tasks and wins.
      Parameters:
      username - the principal username
  • Method Details

    • getUsername

      public String getUsername()
      Returns the principal username
      Returns:
      the principal username
    • defineInterruptor

      protected Predicate<Journal<PrincipalCompany>> defineInterruptor()
      Description copied from class: GenericEvent
      Predicate to define an interruption over the event binded tasks elaboration. By defaultthe seuqnence of tasks is not interrupted.
      Overrides:
      defineInterruptor in class GenericEvent<PrincipalCompany>
      Returns:
      the predicate used to decide if the elaboration sequence must be interrupted