public abstract class AbstractDataParserWFT<C extends ApplicationContext> extends DataParserTask<C> implements WorkflowTask<C>
WorkflowTask implementations. Such a task is being run
as a child task within an AbstractWorkflow.childTaskRef, isTestMode, monitorController, resultRef, stateFlag| Modifier | Constructor and Description |
|---|---|
|
AbstractDataParserWFT(AbstractWorkflow<C> workflow) |
|
AbstractDataParserWFT(AbstractWorkflow<C> workflow,
DataParser parser) |
|
AbstractDataParserWFT(AbstractWorkflow<C> workflow,
java.lang.String name) |
protected |
AbstractDataParserWFT(AbstractWorkflow<C> workflow,
java.lang.String name,
DataParser parser) |
| Modifier and Type | Method and Description |
|---|---|
void |
enterTask(WorkflowTask previousTask)
Runs in the ET before the task starts to run async
|
void |
executeAsync()
Must be overridden to perform the async part.
|
void |
executeAsyncImpl()
This method is executed asynchronously
|
void |
exitTask()
Runs in the ET after the task has run async
|
int |
getTaskIndex()
Returns the index of this task within the controlling workflow
|
<W extends AbstractWorkflow<C>> |
getWorkflow()
Returns the workflow this task obtains to.
|
java.io.File |
getWorkingDir()
Returns the working-dir of the executing task.
|
boolean |
isDeciderTask()
Tells, whether this is a decider-WFT.
|
boolean |
isTaskRepeating()
Is called after the task has been executed.
|
void |
setName(java.lang.String taskName)
Overridden to allow dynamic taskName setting.
|
void |
setTaskIndex(int taskIndex,
WorkflowTask previousTask)
Sets the previous task from which this task may have to overtake results
|
void |
updateTaskName()
Is called when a change in the task-naming may be required.
|
getParser, setParseraddMonitor, addTaskListener, awaitEventsDone, doneChildFinished, doneChildStarted, doneTaskCancelled, doneTaskFailed, doneTaskFinished, doneTaskProceeded, doneTaskStarted, doneTaskStateChanged, doneTaskSucceeded, getActionCancel, getRenderColor, getRenderIcon, getRenderText, getSwingTaskMonitor, isRegisterInTaskList, removeTaskListener, showError, showError, showError, showInfo, showInfo, showWarning, showWarningawaitFinished, awaitFinished, awaitStarted, cancel, createTaskId, deregisterTask, doOnFinish, doOnStart, doOnSuccess, executeChildTask, executeChildTask, getCurrentFuture, getMaxChildTasks, getPriority, getProcessingDuration, getStartTime, getStopWatch, handleFinish, handleStart, handleSuccess, isRegisterForCancel, isRunning, notifyProceeded, registerTask, releaseStart, run, setCurrentFuture, setMaxChildTasks, setPriority, setRegisterForCancel, setReleaseTimeout, submit, submit, submitInternal, toString, wasSucceededcheckCancelled, checkForErrorAndRethrow, clearMonitors, createRunStateFlag, doOnCancel, doOnFailure, execute, executeSubTask, getError, getMaxProgressSteps, getMonitorCount, getMonitors, getName, getProgressStepCount, getResult, getRunStateFlag, getTaskId, getType, handleCancellation, handleFailure, hasError, hasMonitor, isCancellable, registerTaskStateChange, removeMonitor, resetProgress, setCancellable, setLogLevel, setMaxProgressSteps, setMonitor, setName, setResult, setRunStateFlag, setTaskId, setType, shouldFireMonitor, sleepChecked, wasCancelledgetApplicationContext, getLogChannel, isLogDebug, isLogVerbose, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setLogChannelconfigureDumpHeadlineLength, configureDumpMaxElementsPrinted, copyDumpStringValues, copyToStringValues, createDumpHeader, toDumpString, toDumpString, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitawaitFinished, awaitFinished, awaitStarted, executeChildTask, executeChildTask, getError, getProcessingDuration, hasError, isRegisterForCancel, isRunning, releaseStart, setName, setReleaseTimeout, submit, submitcheckCancelled, checkForErrorAndRethrow, executeSubTask, getName, getResult, getRunStateFlag, getTaskId, getType, handleCancellation, handleFailure, isCancellable, notifyProceeded, setCancellable, setResult, setRunStateFlag, sleepCheckedgetApplicationContextexecuteaddMonitor, clearMonitors, getMonitorCount, getMonitors, hasMonitor, removeMonitorgetLogChannel, isLogDebug, isLogVerbose, logDebug, logDump, logError, logError, logFatal, logInfo, logVerbose, logWarning, setLogChannelcancelwasCancelledgetTaskIdtoDumpString, toDumpString, toString, toStringpublic AbstractDataParserWFT(AbstractWorkflow<C> workflow)
public AbstractDataParserWFT(AbstractWorkflow<C> workflow, java.lang.String name)
public AbstractDataParserWFT(AbstractWorkflow<C> workflow, DataParser parser)
protected AbstractDataParserWFT(AbstractWorkflow<C> workflow, java.lang.String name, DataParser parser)
public void setTaskIndex(int taskIndex,
WorkflowTask previousTask)
WorkflowTasksetTaskIndex in interface WorkflowTask<C extends ApplicationContext>public int getTaskIndex()
WorkflowTaskgetTaskIndex in interface WorkflowTask<C extends ApplicationContext>public void setName(java.lang.String taskName)
TaskCheckLabel in the
WorkflowMonitorDialogsetName in interface AsyncExecutable<C extends ApplicationContext>setName in class AbstractAsyncExecutable<C extends ApplicationContext>public void enterTask(WorkflowTask previousTask) throws java.lang.Exception
WorkflowTaskenterTask in interface WorkflowTask<C extends ApplicationContext>java.lang.Exceptionpublic void executeAsyncImpl()
throws java.lang.Exception
WorkflowTaskexecuteAsyncImpl in interface WorkflowTask<C extends ApplicationContext>java.lang.Exceptionpublic void exitTask()
throws java.lang.Exception
WorkflowTaskexitTask in interface WorkflowTask<C extends ApplicationContext>java.lang.Exceptionpublic boolean isTaskRepeating()
WorkflowTaskisTaskRepeating in interface WorkflowTask<C extends ApplicationContext>public <W extends AbstractWorkflow<C>> W getWorkflow()
WorkflowTaskgetWorkflow in interface WorkflowTask<C extends ApplicationContext>public java.io.File getWorkingDir()
WorkflowTaskgetWorkingDir in interface WorkflowTask<C extends ApplicationContext>public final void executeAsync()
throws java.lang.Exception
AbstractAsyncTaskAbstractAsyncTask.notifyProceeded(Object, int, int, String) in order to notify
about task progress. Note: the running task should periodically call
AbstractAsyncExecutable.checkCancelled() in order to detect cancellation.executeAsync in interface AsyncExecutable<C extends ApplicationContext>executeAsync in class DataParserTask<C extends ApplicationContext>java.lang.Exceptionfor synchronous executionpublic boolean isDeciderTask()
WorkflowTaskCheckOptions.isDeciderTask in interface WorkflowTask<C extends ApplicationContext>public void updateTaskName()
WorkflowTaskupdateTaskName in interface WorkflowTask<C extends ApplicationContext>Copyright © 2014 EsprIT-Systems. All Rights Reserved.