|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.processing.pipelets.ExecPipelet
public class ExecPipelet
Executes a program using Runtime.exec(String).
Copyright (c) 2012 Attensity Europe GmbH
| Field Summary | |
|---|---|
static java.lang.String |
COMMAND_PROPERTY
The name of the property that contains the program (including its path). |
static java.lang.String |
DIRECTORY_PROPERTY
The name of the property that contains the working directory for the command. |
static java.lang.String |
ERROR_ATTACHMENT_PROPERTY
The name of the property that contains the name of attachment that receives the error output of the program. |
static java.lang.String |
EXIT_CODE_ATTRIBUTE_PROPERTY
The name of the property that contains the name of attribute that receives the exit code of the program. |
static java.lang.String |
FAIL_ON_ERROR_PROPERTY
The name of the property that indicates to mark a record as failed if the program returns an error code. |
static java.lang.String |
INPUT_ATTACHMENT_PROPERTY
The name of the property that contains the name of the input attribute or attachment for the program. |
static java.lang.String |
OUTPUT_ATTACHMENT_PROPERTY
The name of the property that contains the name of attachment that receives the standard output of the program. |
static java.lang.String |
PARAMETERS_ATTRIBUTE_PROPERTY
The name of the property that contains the attribute name of the parameters to execute. |
static java.lang.String |
PARAMETERS_PROPERTY
The name of the property that contains the parameters to execute (ignored if the content of the parameter attribute exists). |
| Constructor Summary | |
|---|---|
ExecPipelet()
|
|
| Method Summary | |
|---|---|
void |
configure(AnyMap configuration)
set configuration of pipelet. called once after instantiation before the pipelet is actually used in a workflow. |
java.lang.String[] |
process(Blackboard blackboard,
java.lang.String[] recordIds)
process given records. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String COMMAND_PROPERTY
public static final java.lang.String DIRECTORY_PROPERTY
public static final java.lang.String PARAMETERS_PROPERTY
public static final java.lang.String PARAMETERS_ATTRIBUTE_PROPERTY
public static final java.lang.String INPUT_ATTACHMENT_PROPERTY
public static final java.lang.String OUTPUT_ATTACHMENT_PROPERTY
public static final java.lang.String ERROR_ATTACHMENT_PROPERTY
public static final java.lang.String EXIT_CODE_ATTRIBUTE_PROPERTY
public static final java.lang.String FAIL_ON_ERROR_PROPERTY
| Constructor Detail |
|---|
public ExecPipelet()
| Method Detail |
|---|
public void configure(AnyMap configuration)
throws ProcessingException
Pipelet
configure in interface Pipeletconfiguration - configuration of pipelet.
ProcessingException - configuration is not applicable for pipelet (missing properties, wrong datatypes)Pipelet.configure(AnyMap)
public java.lang.String[] process(Blackboard blackboard,
java.lang.String[] recordIds)
throws ProcessingException
Pipelet
process in interface Pipeletblackboard - Blackboard holding and managing the records.recordIds - Ids of records to process.
ProcessingException - error during processing.Pipelet.process(Blackboard, String[])
|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||