public interface ConnectorService
| Modifier and Type | Field and Description |
|---|---|
static String |
DONE |
static String |
FAILED |
static String |
SKIPPED |
static String |
TO_BE_EXECUTED |
static String |
TO_RE_EXECUTE |
| Modifier and Type | Method and Description |
|---|---|
void |
addConnectorImplementation(Long processDefinitionId,
String name,
byte[] content) |
void |
disconnect(ConnectorResult result) |
Map<String,Object> |
evaluateInputParameters(String connectorId,
Map<String,SExpression> parameters,
SExpressionContext sExpressionContext,
Map<String,Map<String,Serializable>> inputValues) |
ConnectorResult |
executeConnector(long processDefinitionId,
SConnectorInstance sConnectorInstance,
SConnectorImplementationDescriptor connectorImplementationDescriptor,
ClassLoader classLoader,
Map<String,Object> inputParameters) |
ConnectorResult |
executeMultipleEvaluation(long processDefinitionId,
String connectorDefinitionId,
String connectorDefinitionVersion,
Map<String,SExpression> connectorInputParameters,
Map<String,Map<String,Serializable>> inputValues,
ClassLoader classLoader,
SExpressionContext sexpContext)
Execute a connector instance by given connectorDefinitionId and connectorDefinitionVersion
|
void |
executeOutputOperation(List<SOperation> outputs,
SExpressionContext expressionContext,
ConnectorResult result) |
SConnectorImplementationDescriptor |
getConnectorImplementation(long processDefinitionId,
String connectorId,
String connectorVersion)
Get connector implementation descriptor for specified connector in a process definition.
|
SConnectorImplementationDescriptor |
getConnectorImplementationDescriptor(long processDefinitionId,
String connectorId,
String version) |
List<org.bonitasoft.engine.resources.SBARResource> |
getConnectorImplementations(long processDefinitionId,
int from,
int numberOfElements) |
List<SConnectorImplementationDescriptor> |
getConnectorImplementations(long processDefinitionId,
int fromIndex,
int numberPerPage,
String field,
OrderByType order)
Get a list of connector implementation descriptors for id specified process definition, the returned list is paginated
|
Long |
getNumberOfConnectorImplementations(long processDefinitionId) |
boolean |
loadConnectors(SProcessDefinition sDefinition)
Load connectors for given process definition and tenant, connectors will be stored in cache after loading
|
void |
removeConnectorImplementations(long processDefinitionId) |
void |
setConnectorImplementation(SProcessDefinition sProcessDefinition,
String connectorId,
String connectorVersion,
byte[] connectorImplementationArchive)
Set connector implementation for id and version specified connector.
|
static final String TO_BE_EXECUTED
static final String DONE
static final String FAILED
static final String SKIPPED
static final String TO_RE_EXECUTE
ConnectorResult executeMultipleEvaluation(long processDefinitionId, String connectorDefinitionId, String connectorDefinitionVersion, Map<String,SExpression> connectorInputParameters, Map<String,Map<String,Serializable>> inputValues, ClassLoader classLoader, SExpressionContext sexpContext) throws SConnectorException
processDefinitionId - The identifier of process definitionconnectorDefinitionId - The identifier of connector definitionconnectorDefinitionVersion - The version of connector definitionconnectorInputParameters - The input of connectorinputValues - The input values of connectorclassLoader - The class loader used to load and run connectorsexpContext - The expression contextSConnectorException - Error thrown if has exceptions during the connector executingboolean loadConnectors(SProcessDefinition sDefinition) throws SConnectorException
sDefinition - The process definitionSConnectorException - Error thrown if has exceptions during the connector loadingvoid setConnectorImplementation(SProcessDefinition sProcessDefinition, String connectorId, String connectorVersion, byte[] connectorImplementationArchive) throws SConnectorException, SInvalidConnectorImplementationException
sProcessDefinition - The process definition which the connector belongs toconnectorId - Id of connector definition.connectorVersion - Version of connector definitionconnectorImplementationArchive - zip byte array containing the connector implementation informationSConnectorException - Error thrown if has exceptions during the connector implementation settingSInvalidConnectorImplementationExceptionList<SConnectorImplementationDescriptor> getConnectorImplementations(long processDefinitionId, int fromIndex, int numberPerPage, String field, OrderByType order) throws SConnectorException
processDefinitionId - Identifier of process definitionfromIndex - Start index of connector recordnumberPerPage - Number of connectors we want to get. Maximum number of connectors returned.field - The field that the result ordered byorder - The order, ACS or DESCSConnectorException - Error thrown if has exceptions during the connector implementations retrieveSConnectorImplementationDescriptor getConnectorImplementation(long processDefinitionId, String connectorId, String connectorVersion) throws SConnectorException
processDefinitionId - Identifier of process definitionconnectorId - id of connector definitionconnectorVersion - version of connector definitionSConnectorException - Error thrown if has exceptions during the connector implementation getMap<String,Object> evaluateInputParameters(String connectorId, Map<String,SExpression> parameters, SExpressionContext sExpressionContext, Map<String,Map<String,Serializable>> inputValues) throws SExpressionTypeUnknownException, SExpressionEvaluationException, SExpressionDependencyMissingException, SInvalidExpressionException
parameters - sExpressionContext - inputValues - SExpressionTypeUnknownExceptionSExpressionEvaluationExceptionSExpressionDependencyMissingExceptionSInvalidExpressionExceptionSConnectorImplementationDescriptor getConnectorImplementationDescriptor(long processDefinitionId, String connectorId, String version) throws SConnectorException
SConnectorExceptionvoid executeOutputOperation(List<SOperation> outputs, SExpressionContext expressionContext, ConnectorResult result) throws SConnectorException
outputs - expressionContext - result - SConnectorExceptionConnectorResult executeConnector(long processDefinitionId, SConnectorInstance sConnectorInstance, SConnectorImplementationDescriptor connectorImplementationDescriptor, ClassLoader classLoader, Map<String,Object> inputParameters) throws SConnectorException
processDefinitionId - sConnectorInstance - connectorImplementationDescriptor - classLoader - inputParameters - SConnectorExceptionvoid disconnect(ConnectorResult result) throws SConnectorException
result - SConnectorExceptionLong getNumberOfConnectorImplementations(long processDefinitionId) throws SConnectorException
processDefinitionId - the id of the process definitionSConnectorExceptionList<org.bonitasoft.engine.resources.SBARResource> getConnectorImplementations(long processDefinitionId, int from, int numberOfElements) throws SBonitaReadException
SBonitaReadExceptionvoid addConnectorImplementation(Long processDefinitionId, String name, byte[] content) throws SRecorderException
SRecorderExceptionvoid removeConnectorImplementations(long processDefinitionId)
throws SBonitaReadException,
SRecorderException
Copyright © 2019 Bonitasoft S.A.. All rights reserved.