public class ConnectorServiceImpl extends Object implements org.bonitasoft.engine.core.connector.ConnectorService
| Modifier and Type | Field and Description |
|---|---|
protected static String |
CONNECTOR_CACHE_NAME |
| Constructor and Description |
|---|
ConnectorServiceImpl(org.bonitasoft.engine.cache.CacheService cacheService,
ConnectorExecutor connectorExecutor,
ParserFactory parserFactory,
org.bonitasoft.engine.sessionaccessor.ReadSessionAccessor sessionAccessor,
org.bonitasoft.engine.core.expression.control.api.ExpressionResolverService expressionResolverService,
org.bonitasoft.engine.core.operation.OperationService operationService,
org.bonitasoft.engine.dependency.DependencyService dependencyService,
org.bonitasoft.engine.log.technical.TechnicalLoggerService logger,
TimeTracker timeTracker) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
buildConnectorImplementationKey(long rootDefinitionId,
String connectorId,
String version) |
protected void |
checkConnectorImplementationIsValid(byte[] connectorImplementationArchive,
String connectorId,
String connectorVersion) |
void |
disconnect(org.bonitasoft.engine.core.connector.ConnectorResult result) |
Map<String,Object> |
evaluateInputParameters(String connectorId,
Map<String,org.bonitasoft.engine.expression.model.SExpression> parameters,
org.bonitasoft.engine.core.expression.control.model.SExpressionContext sExpressionContext,
Map<String,Map<String,Serializable>> inputValues) |
org.bonitasoft.engine.core.connector.ConnectorResult |
executeConnector(long rootDefinitionId,
org.bonitasoft.engine.core.process.instance.model.SConnectorInstance sConnectorInstance,
ClassLoader classLoader,
Map<String,Object> inputParameters) |
org.bonitasoft.engine.core.connector.ConnectorResult |
executeMutipleEvaluation(long processDefinitionId,
String connectorDefinitionId,
String connectorDefinitionVersion,
Map<String,org.bonitasoft.engine.expression.model.SExpression> connectorInputParameters,
Map<String,Map<String,Serializable>> inputValues,
ClassLoader classLoader,
org.bonitasoft.engine.core.expression.control.model.SExpressionContext sexpContext) |
void |
executeOutputOperation(List<org.bonitasoft.engine.core.operation.model.SOperation> outputs,
org.bonitasoft.engine.core.expression.control.model.SExpressionContext expressionContext,
org.bonitasoft.engine.core.connector.ConnectorResult result) |
org.bonitasoft.engine.core.connector.parser.SConnectorImplementationDescriptor |
getConnectorImplementation(long processDefinitionId,
String connectorId,
String connectorVersion,
long tenantId) |
List<org.bonitasoft.engine.core.connector.parser.SConnectorImplementationDescriptor> |
getConnectorImplementations(long processDefinitionId,
long tenantId,
int fromIndex,
int numberPerPage,
String field,
org.bonitasoft.engine.persistence.OrderByType order) |
Long |
getNumberOfConnectorImplementations(long processDefinitionId,
long tenantId) |
protected boolean |
loadConnectors(long processDefinitionId,
long tenantId) |
boolean |
loadConnectors(SProcessDefinition sDefinition,
long tenantId) |
void |
setConnectorImplementation(SProcessDefinition sProcessDefinition,
long tenantId,
String connectorId,
String connectorVersion,
byte[] connectorImplementationArchive) |
protected static final String CONNECTOR_CACHE_NAME
public ConnectorServiceImpl(org.bonitasoft.engine.cache.CacheService cacheService,
ConnectorExecutor connectorExecutor,
ParserFactory parserFactory,
org.bonitasoft.engine.sessionaccessor.ReadSessionAccessor sessionAccessor,
org.bonitasoft.engine.core.expression.control.api.ExpressionResolverService expressionResolverService,
org.bonitasoft.engine.core.operation.OperationService operationService,
org.bonitasoft.engine.dependency.DependencyService dependencyService,
org.bonitasoft.engine.log.technical.TechnicalLoggerService logger,
TimeTracker timeTracker)
public org.bonitasoft.engine.core.connector.ConnectorResult executeConnector(long rootDefinitionId,
org.bonitasoft.engine.core.process.instance.model.SConnectorInstance sConnectorInstance,
ClassLoader classLoader,
Map<String,Object> inputParameters)
throws org.bonitasoft.engine.core.connector.exception.SConnectorException
executeConnector in interface org.bonitasoft.engine.core.connector.ConnectorServiceorg.bonitasoft.engine.core.connector.exception.SConnectorExceptionpublic void executeOutputOperation(List<org.bonitasoft.engine.core.operation.model.SOperation> outputs, org.bonitasoft.engine.core.expression.control.model.SExpressionContext expressionContext, org.bonitasoft.engine.core.connector.ConnectorResult result) throws org.bonitasoft.engine.core.connector.exception.SConnectorException
executeOutputOperation in interface org.bonitasoft.engine.core.connector.ConnectorServiceorg.bonitasoft.engine.core.connector.exception.SConnectorExceptionpublic void disconnect(org.bonitasoft.engine.core.connector.ConnectorResult result)
throws org.bonitasoft.engine.core.connector.exception.SConnectorException
disconnect in interface org.bonitasoft.engine.core.connector.ConnectorServiceorg.bonitasoft.engine.core.connector.exception.SConnectorExceptionprotected String buildConnectorImplementationKey(long rootDefinitionId, String connectorId, String version)
public org.bonitasoft.engine.core.connector.ConnectorResult executeMutipleEvaluation(long processDefinitionId,
String connectorDefinitionId,
String connectorDefinitionVersion,
Map<String,org.bonitasoft.engine.expression.model.SExpression> connectorInputParameters,
Map<String,Map<String,Serializable>> inputValues,
ClassLoader classLoader,
org.bonitasoft.engine.core.expression.control.model.SExpressionContext sexpContext)
throws org.bonitasoft.engine.core.connector.exception.SConnectorException
executeMutipleEvaluation in interface org.bonitasoft.engine.core.connector.ConnectorServiceorg.bonitasoft.engine.core.connector.exception.SConnectorExceptionpublic Map<String,Object> evaluateInputParameters(String connectorId, Map<String,org.bonitasoft.engine.expression.model.SExpression> parameters, org.bonitasoft.engine.core.expression.control.model.SExpressionContext sExpressionContext, Map<String,Map<String,Serializable>> inputValues) throws org.bonitasoft.engine.expression.exception.SExpressionTypeUnknownException, org.bonitasoft.engine.expression.exception.SExpressionEvaluationException, org.bonitasoft.engine.expression.exception.SExpressionDependencyMissingException, org.bonitasoft.engine.expression.exception.SInvalidExpressionException
evaluateInputParameters in interface org.bonitasoft.engine.core.connector.ConnectorServiceorg.bonitasoft.engine.expression.exception.SExpressionTypeUnknownExceptionorg.bonitasoft.engine.expression.exception.SExpressionEvaluationExceptionorg.bonitasoft.engine.expression.exception.SExpressionDependencyMissingExceptionorg.bonitasoft.engine.expression.exception.SInvalidExpressionExceptionpublic boolean loadConnectors(SProcessDefinition sDefinition, long tenantId) throws org.bonitasoft.engine.core.connector.exception.SConnectorException
loadConnectors in interface org.bonitasoft.engine.core.connector.ConnectorServiceorg.bonitasoft.engine.core.connector.exception.SConnectorExceptionprotected boolean loadConnectors(long processDefinitionId,
long tenantId)
throws org.bonitasoft.engine.core.connector.exception.SConnectorException
org.bonitasoft.engine.core.connector.exception.SConnectorExceptionpublic void setConnectorImplementation(SProcessDefinition sProcessDefinition, long tenantId, String connectorId, String connectorVersion, byte[] connectorImplementationArchive) throws org.bonitasoft.engine.core.connector.exception.SConnectorException, org.bonitasoft.engine.core.connector.exception.SInvalidConnectorImplementationException
setConnectorImplementation in interface org.bonitasoft.engine.core.connector.ConnectorServiceorg.bonitasoft.engine.core.connector.exception.SConnectorExceptionorg.bonitasoft.engine.core.connector.exception.SInvalidConnectorImplementationExceptionprotected void checkConnectorImplementationIsValid(byte[] connectorImplementationArchive,
String connectorId,
String connectorVersion)
throws org.bonitasoft.engine.core.connector.exception.SConnectorException,
org.bonitasoft.engine.core.connector.exception.SInvalidConnectorImplementationException
org.bonitasoft.engine.core.connector.exception.SConnectorExceptionorg.bonitasoft.engine.core.connector.exception.SInvalidConnectorImplementationExceptionpublic Long getNumberOfConnectorImplementations(long processDefinitionId, long tenantId) throws org.bonitasoft.engine.core.connector.exception.SConnectorException
getNumberOfConnectorImplementations in interface org.bonitasoft.engine.core.connector.ConnectorServiceorg.bonitasoft.engine.core.connector.exception.SConnectorExceptionpublic List<org.bonitasoft.engine.core.connector.parser.SConnectorImplementationDescriptor> getConnectorImplementations(long processDefinitionId, long tenantId, int fromIndex, int numberPerPage, String field, org.bonitasoft.engine.persistence.OrderByType order) throws org.bonitasoft.engine.core.connector.exception.SConnectorException
getConnectorImplementations in interface org.bonitasoft.engine.core.connector.ConnectorServiceorg.bonitasoft.engine.core.connector.exception.SConnectorExceptionpublic org.bonitasoft.engine.core.connector.parser.SConnectorImplementationDescriptor getConnectorImplementation(long processDefinitionId,
String connectorId,
String connectorVersion,
long tenantId)
throws org.bonitasoft.engine.core.connector.exception.SConnectorException
getConnectorImplementation in interface org.bonitasoft.engine.core.connector.ConnectorServiceorg.bonitasoft.engine.core.connector.exception.SConnectorExceptionCopyright © 2014 Bonitasoft S.A.. All rights reserved.