Class QProcessMetaData
java.lang.Object
com.kingsrook.qqq.backend.core.model.metadata.processes.QProcessMetaData
- All Implemented Interfaces:
QAppChildMetaData,MetaDataProducerOutput,MetaDataWithName,MetaDataWithPermissionRules,SourceQBitAware,QMetaDataObject,TopLevelMetaDataInterface,Serializable
public class QProcessMetaData
extends Object
implements QAppChildMetaData, MetaDataWithPermissionRules, TopLevelMetaDataInterface, SourceQBitAware
Meta-Data to define a process in a QQQ instance.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddOptionalStep(QStepMetaData step) Deprecated.voidaddSelfToInstance(QInstance qInstance) call the appropriate methods on a QInstance to add ourselves to it.addStep(int index, QStepMetaData step) Deprecated.addStep(QStepMetaData step) Deprecated.Getter for the full map of all steps (not the step list!)getBackendStep(String name) Wrapper to getStep, that internally casts to BackendStepMetaDataGetter for basepullConfigurationGetter for cancelStepgetFrontendStep(String name) Wrapper to getStep, that internally casts to FrontendStepMetaDatagetIcon()Getter for icongetInputField(String name) Get the (optional, first) input field on this process with the given name.Get a list of all the *unique* input fields used by all the steps in this process.booleanGetter for isHiddengetLabel()Getter for labelGetter for maxInputRecordsGetter for minInputRecordsgetName()Getter for nameGet a list of all the *unique* output fields used by all the steps in this process.Getter for permissionRulesGetter for processTracerCodeReferenceGetter for scheduleGetter for sourceQBitNameGetter for stepFlowGetter for stepListGetter for supplementalMetaDataGetter for supplementalMetaDataGetter for tableNameGetter for variantBackendGetter for variantRunStrategyvoidsetBasepullConfiguration(BasepullConfiguration basepullConfiguration) Setter for basepullConfigurationvoidsetCancelStep(QBackendStepMetaData cancelStep) Setter for cancelStepvoidSetter for iconvoidsetIsHidden(boolean isHidden) Setter for isHiddenvoidSetter for labelvoidsetMaxInputRecords(Integer maxInputRecords) Setter for maxInputRecordsvoidsetMinInputRecords(Integer minInputRecords) Setter for minInputRecordsvoidSetter for namevoidsetPermissionRules(QPermissionRules permissionRules) Setter for permissionRulesvoidsetProcessTracerCodeReference(QCodeReference processTracerCodeReference) Setter for processTracerCodeReferencevoidsetSchedule(QScheduleMetaData schedule) Setter for schedulevoidsetSourceQBitName(String sourceQBitName) Setter for sourceQBitNamevoidsetStepFlow(ProcessStepFlow stepFlow) Setter for stepFlowvoidsetStepList(List<QStepMetaData> stepList) Setter for stepList - note - calling this method ALSO overwrites the steps map!voidsetSupplementalMetaData(Map<String, QSupplementalProcessMetaData> supplementalMetaData) Setter for supplementalMetaDatavoidsetTableName(String tableName) Setter for tableNamevoidsetVariantBackend(String variantBackend) Setter for variantBackendvoidsetVariantRunStrategy(VariantRunStrategy variantRunStrategy) Setter for variantRunStrategytoString()withBasepullConfiguration(BasepullConfiguration basepullConfiguration) Fluent setter for basepullConfigurationwithCancelStep(QBackendStepMetaData cancelStep) Fluent setter for cancelStepFluent setter for iconwithIsHidden(boolean isHidden) Fluent Setter for isHiddenSetter for labelwithMaxInputRecords(Integer maxInputRecords) Fluent setter for maxInputRecordswithMinInputRecords(Integer minInputRecords) Fluent setter for minInputRecordsSetter for nameadd a step ONLY to the step map - NOT the list w/ default execution order.withPermissionRules(QPermissionRules permissionRules) Fluent setter for permissionRuleswithProcessTracerCodeReference(QCodeReference processTracerCodeReference) Fluent setter for processTracerCodeReferencewithSchedule(QScheduleMetaData schedule) Fluent setter for schedulewithSourceQBitName(String sourceQBitName) Fluent setter for sourceQBitNamewithStep(int index, QStepMetaData step) add a step to the stepList (at the specified index) and the step mapwithStep(QStepMetaData step) withStepFlow(ProcessStepFlow stepFlow) Fluent setter for stepFlowwithStepList(List<QStepMetaData> stepList) Setter for stepListwithSupplementalMetaData(QSupplementalProcessMetaData supplementalMetaData) Fluent setter for supplementalMetaDatawithSupplementalMetaData(Map<String, QSupplementalProcessMetaData> supplementalMetaData) Fluent setter for supplementalMetaDatawithTableName(String tableName) Setter for tableNamewithVariantBackend(String variantBackend) Fluent setter for variantBackendwithVariantRunStrategy(VariantRunStrategy variantRunStrategy) Fluent setter for variantRunStrategyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.kingsrook.qqq.backend.core.model.metadata.qbits.SourceQBitAware
getSourceQBit, getSourceQBitConfig
-
Constructor Details
-
QProcessMetaData
public QProcessMetaData()
-
-
Method Details
-
toString
-
getName
Getter for name- Specified by:
getNamein interfaceMetaDataWithName- Specified by:
getNamein interfaceQAppChildMetaData- Specified by:
getNamein interfaceTopLevelMetaDataInterface
-
setName
Setter for name- Specified by:
setNamein interfaceMetaDataWithName
-
withName
Setter for name -
getLabel
Getter for label- Specified by:
getLabelin interfaceMetaDataWithName- Specified by:
getLabelin interfaceQAppChildMetaData
-
setLabel
Setter for label- Specified by:
setLabelin interfaceMetaDataWithName
-
withLabel
Setter for label -
getTableName
Getter for tableName -
setTableName
Setter for tableName -
withTableName
Setter for tableName -
getStepList
Getter for stepList -
withStepList
Setter for stepList -
withStep
-
addStep
Deprecated.add a step to the stepList and map -
withStep
add a step to the stepList (at the specified index) and the step map -
addStep
@Deprecated(since="withStep was added") public QProcessMetaData addStep(int index, QStepMetaData step) Deprecated.add a step to the stepList (at the specified index) and the step map -
withOptionalStep
add a step ONLY to the step map - NOT the list w/ default execution order. -
addOptionalStep
@Deprecated(since="withOptionalStep was added") public QProcessMetaData addOptionalStep(QStepMetaData step) Deprecated.add a step ONLY to the step map - NOT the list w/ default execution order. -
setStepList
Setter for stepList - note - calling this method ALSO overwrites the steps map! -
getStep
-
getBackendStep
Wrapper to getStep, that internally casts to BackendStepMetaData -
getFrontendStep
Wrapper to getStep, that internally casts to FrontendStepMetaData -
getInputFields
Get a list of all the *unique* input fields used by all the steps in this process. -
getInputField
Get the (optional, first) input field on this process with the given name.- Parameters:
name- name of the field to be returned- Returns:
- the first input field found in the process's steps that has that name, or empty if none are found (where first is based on: the order of steps in the stepList, then any optional steps, in the order in which they come out of the step map (which internally is always built as LinkedHashMap, so it preserves insertion order - but - if the caller supplied their own map, then results could potentially get into undefined behavior!)
-
getOutputFields
Get a list of all the *unique* output fields used by all the steps in this process. -
getIsHidden
public boolean getIsHidden()Getter for isHidden -
setIsHidden
public void setIsHidden(boolean isHidden) Setter for isHidden -
withIsHidden
Fluent Setter for isHidden -
getIcon
-
setIcon
Setter for icon -
withIcon
Fluent setter for icon -
getSchedule
Getter for schedule -
setSchedule
Setter for schedule -
withSchedule
Fluent setter for schedule -
getBasepullConfiguration
Getter for basepullConfiguration -
setBasepullConfiguration
Setter for basepullConfiguration -
withBasepullConfiguration
Fluent setter for basepullConfiguration -
getPermissionRules
Getter for permissionRules- Specified by:
getPermissionRulesin interfaceMetaDataWithPermissionRules
-
setPermissionRules
Setter for permissionRules- Specified by:
setPermissionRulesin interfaceMetaDataWithPermissionRules
-
withPermissionRules
Fluent setter for permissionRules -
addSelfToInstance
Description copied from interface:MetaDataProducerOutputcall the appropriate methods on a QInstance to add ourselves to it.- Specified by:
addSelfToInstancein interfaceMetaDataProducerOutput- Specified by:
addSelfToInstancein interfaceTopLevelMetaDataInterface
-
getSupplementalMetaData
Getter for supplementalMetaData -
getSupplementalMetaData
Getter for supplementalMetaData -
setSupplementalMetaData
Setter for supplementalMetaData -
withSupplementalMetaData
public QProcessMetaData withSupplementalMetaData(Map<String, QSupplementalProcessMetaData> supplementalMetaData) Fluent setter for supplementalMetaData -
withSupplementalMetaData
Fluent setter for supplementalMetaData -
getMinInputRecords
Getter for minInputRecords -
setMinInputRecords
Setter for minInputRecords -
withMinInputRecords
Fluent setter for minInputRecords -
getMaxInputRecords
Getter for maxInputRecords -
setMaxInputRecords
Setter for maxInputRecords -
withMaxInputRecords
Fluent setter for maxInputRecords -
getVariantRunStrategy
Getter for variantRunStrategy -
setVariantRunStrategy
Setter for variantRunStrategy -
withVariantRunStrategy
Fluent setter for variantRunStrategy -
getVariantBackend
Getter for variantBackend -
setVariantBackend
Setter for variantBackend -
withVariantBackend
Fluent setter for variantBackend -
getAllSteps
Getter for the full map of all steps (not the step list!) -
getCancelStep
Getter for cancelStep -
setCancelStep
Setter for cancelStep -
withCancelStep
Fluent setter for cancelStep -
getStepFlow
Getter for stepFlow -
setStepFlow
Setter for stepFlow -
withStepFlow
Fluent setter for stepFlow -
getProcessTracerCodeReference
Getter for processTracerCodeReference -
setProcessTracerCodeReference
Setter for processTracerCodeReference -
withProcessTracerCodeReference
Fluent setter for processTracerCodeReference -
getSourceQBitName
Getter for sourceQBitName- Specified by:
getSourceQBitNamein interfaceSourceQBitAware
-
setSourceQBitName
Setter for sourceQBitName- Specified by:
setSourceQBitNamein interfaceSourceQBitAware
-
withSourceQBitName
Fluent setter for sourceQBitName- Specified by:
withSourceQBitNamein interfaceSourceQBitAware
-