Class HealBadRecordAutomationStatusesProcessStep
java.lang.Object
com.kingsrook.qqq.backend.core.processes.implementations.automation.HealBadRecordAutomationStatusesProcessStep
- All Implemented Interfaces:
BackendStep
,MetaDataProducerInterface<QProcessMetaData>
public class HealBadRecordAutomationStatusesProcessStep
extends Object
implements BackendStep, MetaDataProducerInterface<QProcessMetaData>
Process to find records with a bad automation status, and repair them.
Bad status are defined as:
- failed insert or updates.
- running insert or updates for more than X minutes (see input field value).
Repair in this case means resetting their status to the corresponding (e.g.,
insert/update) pending status.
-
Field Summary
FieldsFields inherited from interface com.kingsrook.qqq.backend.core.model.metadata.MetaDataProducerInterface
DEFAULT_SORT_ORDER
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionProduce the metaData object.void
run
(RunBackendStepInput runBackendStepInput, RunBackendStepOutput runBackendStepOutput) Execute the backend step - using the request as input, and the result as output.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.kingsrook.qqq.backend.core.model.metadata.MetaDataProducerInterface
getSortOrder, getSourceClass, isEnabled, setSourceClass
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
HealBadRecordAutomationStatusesProcessStep
public HealBadRecordAutomationStatusesProcessStep()
-
-
Method Details
-
produce
Description copied from interface:MetaDataProducerInterface
Produce the metaData object. Generally, you don't want to add it to the instance yourself - but the instance is there in case you need it to get other metaData.- Specified by:
produce
in interfaceMetaDataProducerInterface<QProcessMetaData>
- Throws:
QException
-
run
public void run(RunBackendStepInput runBackendStepInput, RunBackendStepOutput runBackendStepOutput) throws QException Description copied from interface:BackendStep
Execute the backend step - using the request as input, and the result as output. TODO - think about - why take the Result object as a param, instead of return it? Is this way easier for inter-language operability maybe? Also - there's way too much "process-specific gunk" in the Request object - can we simplify it?- Specified by:
run
in interfaceBackendStep
- Throws:
QException
-