Package org.bonitasoft.engine.execution
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 TypeMethodDescriptiondefault longGet the current number of started process instances.voidverify(SProcessInstance processInstance) Verify that a process is ready to be started right after its creation.
-
Method Details
-
verify
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
-