public class XslTransormTask extends Object implements OnTask, SupportsRecording, SupportsCodeUpdate
Task
Modifier and Type | Field and Description |
---|---|
static String |
CODE_ATTR |
static String |
CONNECTION_ATTR |
static String |
DESTINATION_FILE_VAR
The DESTINATION_FILE_VAR - the value of this variable defines destination
file name.
|
static String |
MAX_NUMBER_OF_THRERADS_VAR
The MAX_NUMBER_OF_THERADS_VAR.
|
static String |
SOURCE_FILE_VAR
The SOURCE_FILE_VAR - the value of this variable defines source file
name.
|
static String |
XSL_FILE_VAR
The XSL_FILE_VAR - the value of this variable defines xsl file name.
|
Constructor and Description |
---|
XslTransormTask() |
Modifier and Type | Method and Description |
---|---|
TaskResult |
executeBeforeEtlTask(EtlConfig config,
Task task,
Scenario scenario)
Executes
task before etl process is started. |
TaskResult |
executeInlineTask(EtlConfig config,
Task task,
long index,
Scenario scenario)
Executes
task for each row of the data set. |
TaskResult |
executePostTask(EtlConfig config,
Task task,
DataSet dataSet,
Scenario scenario)
Executes
task after extract or load finished. |
TaskResult |
executePreTask(EtlConfig config,
Task task,
Scenario scenario)
Executes
task before extract or load started. |
String |
getCodeLanguage(Task task)
Gets the code language.
|
Map<String,Object> |
getDefaultValues(Task task)
Gets the default values for the model used to edit task.
|
String |
getResourceName(Task task)
Gets the name of the xml file used to create a model for the task editor.
|
String |
getTitle(Task task)
Gets the title.
|
void |
init(EtlConfig config,
Task task)
Initializes task.
|
boolean |
isInlineTask()
Checks if this is inline task.
|
boolean |
isPostTask()
Checks if it is a post task.
|
boolean |
isPreEtlTask()
Checks if it is a pre etl task.
|
boolean |
isPreTask()
Checks if it is a pre task.
|
public static final String MAX_NUMBER_OF_THRERADS_VAR
public static final String CONNECTION_ATTR
public static final String CODE_ATTR
public static final String SOURCE_FILE_VAR
public static final String DESTINATION_FILE_VAR
public static final String XSL_FILE_VAR
public TaskResult executeBeforeEtlTask(EtlConfig config, Task task, Scenario scenario) throws Exception
OnTask
task
before etl process is started.executeBeforeEtlTask
in interface OnTask
config
- the etl configtask
- the task to executescenario
- the scenarioException
- in case of any errorpublic TaskResult executeInlineTask(EtlConfig config, Task task, long index, Scenario scenario) throws Exception
OnTask
task
for each row of the data set.executeInlineTask
in interface OnTask
config
- the etl configtask
- the task to executeindex
- the current row numberscenario
- the scenarioException
- in case of any errorpublic TaskResult executePostTask(EtlConfig config, Task task, DataSet dataSet, Scenario scenario) throws Exception
OnTask
task
after extract or load finished.executePostTask
in interface OnTask
config
- the etl configtask
- the task to executedataSet
- the data setscenario
- the scenarioException
- in case of any errorpublic TaskResult executePreTask(EtlConfig config, Task task, Scenario scenario) throws Exception
OnTask
task
before extract or load started.executePreTask
in interface OnTask
config
- the etl configtask
- the task to executescenario
- the scenarioException
- in case of any errorpublic Map<String,Object> getDefaultValues(Task task)
OnTask
getDefaultValues
in interface OnTask
task
- the taskpublic String getResourceName(Task task)
OnTask
getResourceName
in interface OnTask
task
- the taskpublic void init(EtlConfig config, Task task) throws Exception
OnTask
public boolean isInlineTask()
OnTask
isInlineTask
in interface OnTask
public boolean isPostTask()
OnTask
isPostTask
in interface OnTask
public boolean isPreEtlTask()
OnTask
isPreEtlTask
in interface OnTask
public boolean isPreTask()
OnTask
public String getTitle(Task task)
OnTask
public String getCodeLanguage(Task task)
OnTask
getCodeLanguage
in interface OnTask
task
- the taskCopyright © 2010-2020 Toolsverse. All Rights Reserved.