com.taleo.integration.client.customstep.error
Class RaiseExportErrorPostStep
java.lang.Object
com.taleo.integration.client.step.BaseStep
com.taleo.integration.client.step.BaseCustomStep
com.taleo.integration.client.customstep.BaseCustomStep
com.taleo.integration.client.customstep.error.RaiseExportErrorPostStep
- All Implemented Interfaces:
- com.taleo.integration.client.step.CustomStep, com.taleo.integration.client.step.Step
public class RaiseExportErrorPostStep
- extends BaseCustomStep
Post-processing step to raise an exception when an export error is detected
in the results file. It works as well for CSV or XML format.
This step is useful because the behavior of TCC is not to raise an exception
when an error is reported inside the results file. For example, when the
volume limit has been reached. This is a problem because in this case the
monitoring does not report the error and the LRD is updated as normal.
This step takes all parameters from its base class
BaseCustomStep
.
It should be defined first in the post processing steps. Here is an example
of how to define this custom step in the TCC configuration file:
- Author:
- Romain Guay, Taleo Corporation
Fields inherited from class com.taleo.integration.client.step.BaseCustomStep |
parameters |
Fields inherited from class com.taleo.integration.client.step.BaseStep |
commType, ERROR_NULL_GLOBAL_CONFIG, ERROR_NULL_PIPELINE, ERROR_NULL_STEP_CONFIG, productCode, tempFolder, type, version |
Methods inherited from class com.taleo.integration.client.step.BaseCustomStep |
getSupportedPipeline, getType, init |
Methods inherited from class com.taleo.integration.client.step.BaseStep |
getAllProcessSupportPipeline, getCurrentFile, getCurrentFile, getCurrentMessage, getPostProcessSupportPipeline, getPreProcessSupportPipeline, validateLastStepType, validateMessageType, validatePipeline |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.taleo.integration.client.step.Step |
validatePipeline |
RaiseExportErrorPostStep
public RaiseExportErrorPostStep()
- Constructor without arguments.
getIdentifier
public String getIdentifier()
- Specified by:
getIdentifier
in interface com.taleo.integration.client.step.CustomStep
- Specified by:
getIdentifier
in interface com.taleo.integration.client.step.Step
- Specified by:
getIdentifier
in class com.taleo.integration.client.step.BaseCustomStep
getDescription
public String getDescription()
- Specified by:
getDescription
in interface com.taleo.integration.client.step.CustomStep
- Specified by:
getDescription
in interface com.taleo.integration.client.step.Step
- Specified by:
getDescription
in class com.taleo.integration.client.step.BaseCustomStep
getName
public String getName()
- Specified by:
getName
in interface com.taleo.integration.client.step.CustomStep
- Specified by:
getName
in interface com.taleo.integration.client.step.Step
- Specified by:
getName
in class com.taleo.integration.client.step.BaseCustomStep
execute
public void execute(com.taleo.ws.integration.client.Pipeline pipeline)
throws com.taleo.integration.client.step.StepException
- Throws:
com.taleo.integration.client.step.StepException
execute
public void execute(File file)
throws IOException,
com.taleo.integration.client.workflow.WorkflowException
- Execute the step by detecting and raising errors in the file.
- Parameters:
file
- The file to upload.
- Throws:
IOException
com.taleo.integration.client.workflow.WorkflowException