Class RunProcessAction
java.lang.Object
com.kingsrook.qqq.backend.core.actions.processes.RunProcessAction
- Direct Known Subclasses:
CancelProcessAction
Action handler for running q-processes (which are a sequence of q-steps).
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
determineBasepullKeyValue
(QProcessMetaData process, RunProcessInput runProcessInput, BasepullConfiguration basepullConfiguration) execute
(RunProcessInput runProcessInput) static Optional
<ProcessState> public method to get a process state just by UUID.getStateMachineStepContainingSubStep
(QProcessMetaData process, String stepName) static StateProviderInterface
Load an instance of the appropriate state providerprotected void
persistLastRunTime
(RunProcessInput runProcessInput, QProcessMetaData process, BasepullConfiguration basepullConfiguration) Lookup the last runtime for this basepull, and set it (plus now) in the process's values.protected void
storeLastRunTime
(RunProcessInput runProcessInput, QProcessMetaData process, BasepullConfiguration basepullConfiguration) Insert or update the last runtime value for this basepull into the backend.
-
Field Details
-
BASEPULL_KEY_VALUE
- See Also:
-
BASEPULL_THIS_RUNTIME_KEY
- See Also:
-
BASEPULL_LAST_RUNTIME_KEY
- See Also:
-
BASEPULL_TIMESTAMP_FIELD
- See Also:
-
BASEPULL_CONFIGURATION
- See Also:
-
PROCESS_TRACER_CODE_REFERENCE_FIELD
- See Also:
-
BASEPULL_READY_TO_UPDATE_TIMESTAMP_FIELD
/////////////////////////////////////////////////////////////////////////////////////////////- See Also:
-
BASEPULL_DID_QUERY_USING_TIMESTAMP_FIELD
- See Also:
-
-
Constructor Details
-
RunProcessAction
public RunProcessAction()
-
-
Method Details
-
execute
- Throws:
QException
-
getStateMachineStepContainingSubStep
public QStateMachineStep getStateMachineStepContainingSubStep(QProcessMetaData process, String stepName) -
getStateProvider
Load an instance of the appropriate state provider -
getState
public method to get a process state just by UUID. -
determineBasepullKeyValue
protected String determineBasepullKeyValue(QProcessMetaData process, RunProcessInput runProcessInput, BasepullConfiguration basepullConfiguration) throws QException - Throws:
QException
-
storeLastRunTime
protected void storeLastRunTime(RunProcessInput runProcessInput, QProcessMetaData process, BasepullConfiguration basepullConfiguration) throws QException Insert or update the last runtime value for this basepull into the backend.- Throws:
QException
-
persistLastRunTime
protected void persistLastRunTime(RunProcessInput runProcessInput, QProcessMetaData process, BasepullConfiguration basepullConfiguration) throws QException Lookup the last runtime for this basepull, and set it (plus now) in the process's values.- Throws:
QException
-