The abstract class for normal steps.
More...
The abstract class for normal steps.
- Example
%new-style
%require-types
%strict-types
%enable-all-warnings
class MyNormalStepClass inherits QorusNormalStep {
primary() {
}
string validation() {
if (checkAction()) {
return OMQ::StatComplete;
}
return checkPending() ? OMQ::StatAsyncWaiting : OMQ::StatRetry;
}
bool checkAction() {
}
bool checkPending() {
}
}
- Note
- Qorus step constructors do not take any arguments; see Class-Based Step Constructors and Static Initialization for information about constructors and static class initialization.
- See also
- Normal Steps
◆ validation()
public string OMQ::UserApi::Workflow::QorusNormalStep::validation |
( |
| ) |
|
Validation logic for the step.
This method must be overridden for steps that can only execute once; by default this method will return OMQ::StatRetry, meaning that the primary step logic will be repeated.
- Returns
- this must be one of the following step status constants:
- StatComplete: do not run the primary step logic; mark the step as
"COMPLETE"
and continue
- StatError: do not run the primary step logic; mark the step as
"ERROR"
and stop running any further dependencies of this step
- StatRetry: run the step function again immediately
- Note
- if any other value than the above is returned, an error is raised and the return value is treated like OMQ::StatError
- See also
-
The documentation for this class was generated from the following file: