Interface ProcessStarterVerifier

All Known Implementing Classes:
ProcessStarterVerifierImpl

public interface ProcessStarterVerifier
Define rules to be executed before the start of a process, right after its creation.
  • Method Summary

    Modifier and Type
    Method
    Description
    default long
    Get the current number of started process instances.
    void
    verify(SProcessInstance processInstance)
    Verify that a process is ready to be started right after its creation.
  • Method Details

    • verify

      void verify(SProcessInstance processInstance) throws SProcessInstanceCreationException
      Verify that a process is ready to be started right after its creation.
      Parameters:
      processInstance - the process instance that is going to be started
      Throws:
      SProcessInstanceCreationException - if the process is not in a valid state to start
    • getCurrentNumberOfStartedProcessInstances

      default long getCurrentNumberOfStartedProcessInstances()
      Get the current number of started process instances.
      Returns:
      -1 if non relevant in this context