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(CacheService cacheService,
ConnectorExecutor connectorExecutor,
ExpressionResolverService expressionResolverService,
OperationService operationService,
DependencyService dependencyService,
TechnicalLoggerService logger,
TimeTracker timeTracker,
org.bonitasoft.engine.resources.ProcessResourcesService processResourcesService) |
| Modifier and Type | Method and Description |
|---|---|
void |
addConnectorImplementation(Long processDefinitionId,
String name,
byte[] content) |
protected String |
buildConnectorImplementationKey(long rootDefinitionId,
String connectorId,
String version) |
protected void |
checkConnectorImplementationIsValid(org.bonitasoft.engine.core.connector.parser.SConnectorImplementationDescriptor connectorImplementationDescriptor,
String connectorId,
String connectorVersion) |
void |
disconnect(org.bonitasoft.engine.core.connector.ConnectorResult result) |
Map<String,Object> |
evaluateInputParameters(String connectorId,
Map<String,SExpression> parameters,
SExpressionContext sExpressionContext,
Map<String,Map<String,Serializable>> inputValues) |
org.bonitasoft.engine.core.connector.ConnectorResult |
executeConnector(long processDefinitionId,
org.bonitasoft.engine.core.process.instance.model.SConnectorInstance sConnectorInstance,
org.bonitasoft.engine.core.connector.parser.SConnectorImplementationDescriptor connectorImplementationDescriptor,
ClassLoader classLoader,
Map<String,Object> inputParameters) |
org.bonitasoft.engine.core.connector.ConnectorResult |
executeMultipleEvaluation(long processDefinitionId,
String connectorDefinitionId,
String connectorDefinitionVersion,
Map<String,SExpression> connectorInputParameters,
Map<String,Map<String,Serializable>> inputValues,
ClassLoader classLoader,
SExpressionContext expressionContext) |
void |
executeOutputOperation(List<SOperation> outputs,
SExpressionContext expressionContext,
org.bonitasoft.engine.core.connector.ConnectorResult result) |
org.bonitasoft.engine.core.connector.parser.SConnectorImplementationDescriptor |
getConnectorImplementation(long processDefinitionId,
String connectorId,
String connectorVersion) |
org.bonitasoft.engine.core.connector.parser.SConnectorImplementationDescriptor |
getConnectorImplementationDescriptor(long processDefinitionId,
String connectorId,
String version) |
List<org.bonitasoft.engine.resources.SBARResource> |
getConnectorImplementations(long processDefinitionId,
int from,
int numberOfElements) |
List<org.bonitasoft.engine.core.connector.parser.SConnectorImplementationDescriptor> |
getConnectorImplementations(long processDefinitionId,
int fromIndex,
int numberPerPage,
String field,
org.bonitasoft.engine.persistence.OrderByType order) |
Long |
getNumberOfConnectorImplementations(long processDefinitionId) |
protected boolean |
loadConnectors(long processDefinitionId) |
boolean |
loadConnectors(SProcessDefinition sDefinition) |
void |
removeConnectorImplementations(long processDefinitionId) |
void |
setConnectorImplementation(SProcessDefinition sProcessDefinition,
String connectorId,
String connectorVersion,
byte[] connectorImplementationArchive) |
protected static final String CONNECTOR_CACHE_NAME
public ConnectorServiceImpl(CacheService cacheService, ConnectorExecutor connectorExecutor, ExpressionResolverService expressionResolverService, OperationService operationService, DependencyService dependencyService, TechnicalLoggerService logger, TimeTracker timeTracker, org.bonitasoft.engine.resources.ProcessResourcesService processResourcesService)
public org.bonitasoft.engine.core.connector.ConnectorResult executeConnector(long processDefinitionId,
org.bonitasoft.engine.core.process.instance.model.SConnectorInstance sConnectorInstance,
org.bonitasoft.engine.core.connector.parser.SConnectorImplementationDescriptor connectorImplementationDescriptor,
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 org.bonitasoft.engine.core.connector.parser.SConnectorImplementationDescriptor getConnectorImplementationDescriptor(long processDefinitionId,
String connectorId,
String version)
throws org.bonitasoft.engine.core.connector.exception.SConnectorException
getConnectorImplementationDescriptor in interface org.bonitasoft.engine.core.connector.ConnectorServiceorg.bonitasoft.engine.core.connector.exception.SConnectorExceptionpublic void executeOutputOperation(List<SOperation> outputs, 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 executeMultipleEvaluation(long processDefinitionId,
String connectorDefinitionId,
String connectorDefinitionVersion,
Map<String,SExpression> connectorInputParameters,
Map<String,Map<String,Serializable>> inputValues,
ClassLoader classLoader,
SExpressionContext expressionContext)
throws org.bonitasoft.engine.core.connector.exception.SConnectorException
executeMultipleEvaluation in interface org.bonitasoft.engine.core.connector.ConnectorServiceorg.bonitasoft.engine.core.connector.exception.SConnectorExceptionpublic Map<String,Object> evaluateInputParameters(String connectorId, Map<String,SExpression> parameters, SExpressionContext sExpressionContext, Map<String,Map<String,Serializable>> inputValues) throws SExpressionTypeUnknownException, SExpressionEvaluationException, SExpressionDependencyMissingException, SInvalidExpressionException
evaluateInputParameters in interface org.bonitasoft.engine.core.connector.ConnectorServiceSExpressionTypeUnknownExceptionSExpressionEvaluationExceptionSExpressionDependencyMissingExceptionSInvalidExpressionExceptionpublic boolean loadConnectors(SProcessDefinition sDefinition) 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)
throws org.bonitasoft.engine.core.connector.exception.SConnectorException
org.bonitasoft.engine.core.connector.exception.SConnectorExceptionpublic void setConnectorImplementation(SProcessDefinition sProcessDefinition, 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(org.bonitasoft.engine.core.connector.parser.SConnectorImplementationDescriptor connectorImplementationDescriptor,
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) 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, 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)
throws org.bonitasoft.engine.core.connector.exception.SConnectorException
getConnectorImplementation in interface org.bonitasoft.engine.core.connector.ConnectorServiceorg.bonitasoft.engine.core.connector.exception.SConnectorExceptionpublic List<org.bonitasoft.engine.resources.SBARResource> getConnectorImplementations(long processDefinitionId, int from, int numberOfElements) throws org.bonitasoft.engine.persistence.SBonitaReadException
getConnectorImplementations in interface org.bonitasoft.engine.core.connector.ConnectorServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionpublic void addConnectorImplementation(Long processDefinitionId, String name, byte[] content) throws SRecorderException
addConnectorImplementation in interface org.bonitasoft.engine.core.connector.ConnectorServiceSRecorderExceptionpublic void removeConnectorImplementations(long processDefinitionId)
throws org.bonitasoft.engine.persistence.SBonitaReadException,
SRecorderException
removeConnectorImplementations in interface org.bonitasoft.engine.core.connector.ConnectorServiceorg.bonitasoft.engine.persistence.SBonitaReadExceptionSRecorderExceptionCopyright © 2018 Bonitasoft S.A.. All rights reserved.