Package org.bonitasoft.engine.connector
Interface SConnector
-
- All Known Implementing Classes:
AbstractSConnector,SConnectorAdapter,SConnectorUserFilterAdapter
public interface SConnector- Author:
- Feng Hui
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidconnect()Called by the engine before the connector is executed This method can be implemented by connectors to handle here opening of connections like database connectionvoiddisconnect()Called by the engine after the connector and its output operations are executed This method can be implemented by connectors to close connections here.java.util.Map<java.lang.String,java.lang.Object>execute()Execute the connector.voidsetInputParameters(java.util.Map<java.lang.String,java.lang.Object> parameters)Set the input parameter for a connector.voidvalidate()Validate the input parameters.
-
-
-
Method Detail
-
setInputParameters
void setInputParameters(java.util.Map<java.lang.String,java.lang.Object> parameters)
Set the input parameter for a connector.- Parameters:
parameters- parameters is a map with parameter names and their value.
-
validate
void validate() throws SConnectorValidationExceptionValidate the input parameters. Check the parameters types and boundaries.- Throws:
SConnectorValidationException
-
execute
java.util.Map<java.lang.String,java.lang.Object> execute() throws SConnectorExceptionExecute the connector.- Returns:
- the connector outputs map corresponding to the output definition.
- Throws:
SConnectorException
-
connect
void connect() throws SConnectorExceptionCalled by the engine before the connector is executed This method can be implemented by connectors to handle here opening of connections like database connection- Throws:
SConnectorException
-
disconnect
void disconnect() throws SConnectorExceptionCalled by the engine after the connector and its output operations are executed This method can be implemented by connectors to close connections here. The typical use of this is to be able to return connected objects that will be used in output operation and then disconnect them.- Throws:
SConnectorException
-
-