| Modifier and Type | Field and Description |
|---|---|
protected APIAccessor |
apiAccessor |
| Constructor and Description |
|---|
AbstractConnector() |
| Modifier and Type | Method and Description |
|---|---|
void |
connect()
Called by the engine before the connector is executed
This method can be implemented by connectors to handle here opening of connections like database connection
|
void |
disconnect()
Called by the engine after the connector and its output operations are executed
This method can be implemented by connectors to close connections here.
|
Map<String,Object> |
execute()
Execute the connector.
|
protected abstract void |
executeBusinessLogic() |
APIAccessor |
getAPIAccessor() |
EngineExecutionContext |
getExecutionContext() |
protected Object |
getInputParameter(String paramName) |
protected Object |
getInputParameter(String parameterKey,
Serializable defaultValue)
get the input parameter or the default value if the parameter is not set
|
protected Map<String,Object> |
getOutputParameters() |
void |
setAPIAccessor(APIAccessor apiAccessor) |
void |
setExecutionContext(EngineExecutionContext executionContext) |
void |
setInputParameters(Map<String,Object> parameters)
Set the input parameter for a connector.
|
protected void |
setOutputParameter(String paramName,
Object value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvalidateInputParametersprotected APIAccessor apiAccessor
public void setInputParameters(Map<String,Object> parameters)
ConnectorsetInputParameters in interface Connectorparameters - parameters is a map with parameter names and their value.protected Object getInputParameter(String parameterKey, Serializable defaultValue)
parameterKey - defaultValue - public final Map<String,Object> execute() throws ConnectorException
Connectorexecute in interface ConnectorConnectorExceptionpublic void connect()
throws ConnectorException
Connectorconnect in interface ConnectorConnectorExceptionpublic void disconnect()
throws ConnectorException
Connectordisconnect in interface ConnectorConnectorExceptionprotected abstract void executeBusinessLogic()
throws ConnectorException
ConnectorExceptionpublic void setAPIAccessor(APIAccessor apiAccessor)
public APIAccessor getAPIAccessor()
public EngineExecutionContext getExecutionContext()
public void setExecutionContext(EngineExecutionContext executionContext)
Copyright © 2013 BonitaSoft. All Rights Reserved.