Class ActionStart
- java.lang.Object
-
- org.apache.hop.workflow.action.ActionBase
-
- org.apache.hop.workflow.actions.start.ActionStart
-
- All Implemented Interfaces:
Cloneable,IAttributes,ICheckResultSource,IExtensionData,IHasLogChannel,ILoggingObject,IVariables,IResourceHolder,IAction
@Action(id="SPECIAL", image="ui/images/start.svg", name="i18n::ActionStart.Name", description="i18n::ActionStart.Description", categoryDescription="i18n:org.apache.hop.workflow:ActionCategory.Category.General", keywords="i18n::ActionStart.keyword", documentationUrl="/workflow/actions/start.html") public class ActionStart extends ActionBase implements Cloneable, IAction
The start action is starting point for workflow execution.
-
-
Field Summary
Fields Modifier and Type Field Description static intDAILYstatic StringIDAction unique identifier"static intINTERVALstatic intMONTHLYstatic intNOSCHEDULINGstatic intWEEKLY-
Fields inherited from class org.apache.hop.workflow.action.ActionBase
attributesMap, containerObjectId, entryTransformSetVariablesMap, extensionDataMap, log, parentWorkflow, parentWorkflowMeta
-
-
Constructor Summary
Constructors Constructor Description ActionStart()ActionStart(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheck(List<ICheckResult> remarks, WorkflowMeta workflowMeta, IVariables variables, IHopMetadataProvider metadataProvider)Allows Action objects to check themselves for consistencyActionStartclone()This method is called when a action is duplicated in HopGui.booleanevaluates()Resultexecute(Result previousResult, int nr)Execute the action.intgetDayOfMonth()intgetHour()intgetIntervalMinutes()intgetIntervalSeconds()intgetMinutes()intgetSchedulerType()intgetWeekDay()booleanisRepeat()booleanisStart()Checks if the action has startedbooleanisUnconditional()This method must return true if the action supports the unconditional outgoing hop.voidsetDayOfMonth(int dayOfMonth)voidsetHour(int hour)voidsetIntervalMinutes(int intervalMinutes)voidsetIntervalSeconds(int intervalSeconds)voidsetMinutes(int minutes)voidsetRepeat(boolean repeat)voidsetSchedulerType(int schedulerType)voidsetWeekDay(int weekDay)-
Methods inherited from class org.apache.hop.workflow.action.ActionBase
clear, copyFrom, equals, exportResources, getAttribute, getAttributes, getAttributesMap, getContainerId, getDescription, getDialogClassName, getEntryTransformSetVariable, getEntryTransformSetVariablesMap, getExtensionDataMap, getFilename, getLogChannel, getLogChannelId, getLogLevel, getMetadataProvider, getName, getObjectCopy, getObjectName, getObjectType, getParent, getParentVariables, getParentWorkflow, getParentWorkflowMeta, getPluginId, getRealFilename, getReferencedObjectDescriptions, getRegistrationDate, getResourceDependencies, getSqlStatements, getTypeDesc, getTypeId, getUsedDatabaseConnections, getVariable, getVariable, getVariableBoolean, getVariableNames, getVariables, getXml, hasChanged, hashCode, initializeFrom, isBasic, isDebug, isDetailed, isEvaluation, isForcingSeparateLogging, isGatheringMetrics, isPipeline, isReferencedObjectEnabled, isRowlevel, isWorkflow, loadReferencedObject, loadXml, loadXml, logBasic, logBasic, logDebug, logDebug, logDetailed, logDetailed, logError, logError, logError, logMinimal, logMinimal, logRowlevel, logRowlevel, resetErrorsBeforeExecution, resolve, resolve, resolve, setAttribute, setAttributes, setAttributesMap, setChanged, setChanged, setContainerObjectId, setDescription, setEntryTransformSetVariable, setForcingSeparateLogging, setGatheringMetrics, setLogLevel, setMetadataProvider, setName, setParentVariables, setParentWorkflow, setParentWorkflowMeta, setPluginId, setVariable, setVariables, shareWith, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.hop.workflow.action.IAction
clear, exportResources, getDescription, getDialogClassName, getFilename, getLogChannel, getName, getParentWorkflow, getParentWorkflowMeta, getPluginId, getRealFilename, getReferencedObjectDescriptions, getResourceDependencies, getSqlStatements, getXml, hasChanged, isEvaluation, isPipeline, isReferencedObjectEnabled, isWorkflow, loadReferencedObject, loadXml, resetErrorsBeforeExecution, setChanged, setChanged, setDescription, setMetadataProvider, setName, setParentWorkflow, setParentWorkflowMeta, setPluginId
-
Methods inherited from interface org.apache.hop.core.IExtensionData
getExtensionDataMap
-
Methods inherited from interface org.apache.hop.core.variables.IVariables
copyFrom, getParentVariables, getVariable, getVariable, getVariableBoolean, getVariableNames, initializeFrom, resolve, resolve, resolve, setParentVariables, setVariable, setVariables, shareWith
-
-
-
-
Field Detail
-
ID
public static final String ID
Action unique identifier"- See Also:
- Constant Field Values
-
NOSCHEDULING
public static final int NOSCHEDULING
- See Also:
- Constant Field Values
-
INTERVAL
public static final int INTERVAL
- See Also:
- Constant Field Values
-
DAILY
public static final int DAILY
- See Also:
- Constant Field Values
-
WEEKLY
public static final int WEEKLY
- See Also:
- Constant Field Values
-
MONTHLY
public static final int MONTHLY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ActionStart
public ActionStart()
-
ActionStart
public ActionStart(String name)
-
-
Method Detail
-
clone
public ActionStart clone()
Description copied from class:ActionBaseThis method is called when a action is duplicated in HopGui. It needs to return a deep copy of this action object. It is essential that the implementing class creates proper deep copies if the action configuration is stored in modifiable objects, such as lists or custom helper objects.- Specified by:
clonein interfaceIAction- Overrides:
clonein classActionBase- Returns:
- a clone of the object
-
execute
public Result execute(Result previousResult, int nr) throws HopWorkflowException
Description copied from interface:IActionExecute the action. The previous result and number of rows are provided to the method for the purpose of chaining actions, pipelines, etc.- Specified by:
executein interfaceIAction- Parameters:
previousResult- the previous resultnr- the number of rows- Returns:
- the Result object from execution of this action
- Throws:
HopWorkflowException
-
evaluates
public boolean evaluates()
-
isUnconditional
public boolean isUnconditional()
Description copied from class:ActionBaseThis method must return true if the action supports the unconditional outgoing hop. For ActionBase, this method always returns true- Specified by:
isUnconditionalin interfaceIAction- Overrides:
isUnconditionalin classActionBase- Returns:
- true
-
getSchedulerType
public int getSchedulerType()
-
getHour
public int getHour()
-
getMinutes
public int getMinutes()
-
getWeekDay
public int getWeekDay()
-
getDayOfMonth
public int getDayOfMonth()
-
setDayOfMonth
public void setDayOfMonth(int dayOfMonth)
-
setHour
public void setHour(int hour)
-
setMinutes
public void setMinutes(int minutes)
-
setWeekDay
public void setWeekDay(int weekDay)
-
setSchedulerType
public void setSchedulerType(int schedulerType)
-
isStart
public boolean isStart()
Description copied from class:ActionBaseChecks if the action has started- Specified by:
isStartin interfaceIAction- Overrides:
isStartin classActionBase- Returns:
- true if the action has started, false otherwise
-
isRepeat
public boolean isRepeat()
-
setRepeat
public void setRepeat(boolean repeat)
-
getIntervalSeconds
public int getIntervalSeconds()
-
setIntervalSeconds
public void setIntervalSeconds(int intervalSeconds)
-
getIntervalMinutes
public int getIntervalMinutes()
-
setIntervalMinutes
public void setIntervalMinutes(int intervalMinutes)
-
check
public void check(List<ICheckResult> remarks, WorkflowMeta workflowMeta, IVariables variables, IHopMetadataProvider metadataProvider)
Description copied from class:ActionBaseAllows Action objects to check themselves for consistency- Specified by:
checkin interfaceIAction- Overrides:
checkin classActionBase- Parameters:
remarks- List of CheckResult objects indicating consistency statusworkflowMeta- the metadata object for the actionvariables- the variable variables to resolve string expressions with variables withmetadataProvider- the MetaStore to load common elements from
-
-