Package org.bonitasoft.engine.execution
Class ProcessStarterVerifierImpl
java.lang.Object
org.bonitasoft.engine.execution.ProcessStarterVerifierImpl
- All Implemented Interfaces:
ProcessStarterVerifier
@Component
@ConditionalOnSingleCandidate(ProcessStarterVerifier.class)
public class ProcessStarterVerifierImpl
extends Object
implements ProcessStarterVerifier
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intprotected static final intprotected static final long -
Constructor Summary
ConstructorsConstructorDescriptionProcessStarterVerifierImpl(PlatformRetriever platformRetriever, PlatformInformationService platformInformationService, TransactionService transactionService, ProcessInstanceService processInstanceService) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddCounter(long counter) longGet the current number of started process instances.voidverify(SProcessInstance processInstance) Verify that a process is ready to be started right after its creation.voidverifyCountersCoherence(List<Long> counters, Long oldestValidDate)
-
Field Details
-
LIMIT
public static final int LIMIT- See Also:
-
PERIOD_IN_DAYS
protected static final int PERIOD_IN_DAYS- See Also:
-
PERIOD_IN_MILLIS
protected static final long PERIOD_IN_MILLIS- See Also:
-
THRESHOLDS_IN_PERCENT
-
-
Constructor Details
-
ProcessStarterVerifierImpl
@Autowired public ProcessStarterVerifierImpl(PlatformRetriever platformRetriever, PlatformInformationService platformInformationService, TransactionService transactionService, ProcessInstanceService processInstanceService) throws Exception - Throws:
Exception
-
-
Method Details
-
getCounters
-
addCounter
protected void addCounter(long counter) -
verify
Description copied from interface:ProcessStarterVerifierVerify that a process is ready to be started right after its creation.- Specified by:
verifyin interfaceProcessStarterVerifier- 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
public long getCurrentNumberOfStartedProcessInstances()Description copied from interface:ProcessStarterVerifierGet the current number of started process instances.- Specified by:
getCurrentNumberOfStartedProcessInstancesin interfaceProcessStarterVerifier- Returns:
- -1 if non relevant in this context
-
verifyCountersCoherence
- Throws:
Exception
-