Package org.bonitasoft.engine.connector
Interface SConnector
- All Known Implementing Classes:
AbstractSConnector,SConnectorAdapter,SConnectorUserFilterAdapter
public interface SConnector
- Author:
- Feng Hui
-
Method Summary
Modifier and TypeMethodDescriptionvoidconnect()Called by the engine before the connector is executed This method can be implemented by connectors to handle here opening of connections like database connectionvoidCalled by the engine after the connector and its output operations are executed This method can be implemented by connectors to close connections here.execute()Execute the connector.voidsetInputParameters(Map<String, Object> parameters) Set the input parameter for a connector.voidvalidate()Validate the input parameters.
-
Method Details
-
setInputParameters
Set the input parameter for a connector.- Parameters:
parameters- parameters is a map with parameter names and their value.
-
validate
Validate the input parameters. Check the parameters types and boundaries.- Throws:
SConnectorValidationException
-
execute
Execute the connector.- Returns:
- the connector outputs map corresponding to the output definition.
- Throws:
SConnectorException
-
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- Throws:
SConnectorException
-
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. 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
-