Class ExecuteConnectorOfActivity
- java.lang.Object
-
- org.bonitasoft.engine.work.BonitaWork
-
- org.bonitasoft.engine.execution.work.TenantAwareBonitaWork
-
- org.bonitasoft.engine.execution.work.ExecuteConnectorWork
-
- org.bonitasoft.engine.execution.work.ExecuteConnectorOfActivity
-
public class ExecuteConnectorOfActivity extends ExecuteConnectorWork
- Author:
- Baptiste Mesta, Celine Souchet, Matthieu Chaffotte
-
-
Field Summary
-
Fields inherited from class org.bonitasoft.engine.execution.work.ExecuteConnectorWork
connectorDefinitionName, connectorInstanceId, processDefinitionId
-
Fields inherited from class org.bonitasoft.engine.execution.work.TenantAwareBonitaWork
TENANT_ACCESSOR
-
Fields inherited from class org.bonitasoft.engine.work.BonitaWork
tenantId
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcontinueFlow(java.util.Map<java.lang.String,java.lang.Object> context)protected SThrowEventInstancecreateThrowErrorEventInstance(java.util.Map<java.lang.String,java.lang.Object> context, SEndEventDefinition eventDefinition)protected voiderrorEventOnFail(java.util.Map<java.lang.String,java.lang.Object> context, SConnectorDefinition sConnectorDefinition, java.lang.Throwable exception)protected voidevaluateOutput(java.util.Map<java.lang.String,java.lang.Object> context, ConnectorResult result, SConnectorDefinition sConnectorDefinition)java.lang.StringgetDescription()protected SConnectorDefinitiongetSConnectorDefinition(ProcessDefinitionService processDefinitionService)protected voidsetContainerInFail(java.util.Map<java.lang.String,java.lang.Object> context)-
Methods inherited from class org.bonitasoft.engine.execution.work.ExecuteConnectorWork
canBeRecoveredByTheRecoveryMechanism, evaluateOutput, getClassLoader, handleFailure, setConnectorAndContainerToFailed, setConnectorOnlyToFailed, work
-
Methods inherited from class org.bonitasoft.engine.execution.work.TenantAwareBonitaWork
getTenantAccessor
-
Methods inherited from class org.bonitasoft.engine.work.BonitaWork
equals, getParent, getRecoveryProcedure, getRootWork, getTenantId, getUuid, hashCode, setParent, setTenantId
-
-
-
-
Method Detail
-
evaluateOutput
protected void evaluateOutput(java.util.Map<java.lang.String,java.lang.Object> context, ConnectorResult result, SConnectorDefinition sConnectorDefinition) throws STransactionException, SBonitaException- Specified by:
evaluateOutputin classExecuteConnectorWork- Throws:
STransactionExceptionSBonitaException
-
continueFlow
protected void continueFlow(java.util.Map<java.lang.String,java.lang.Object> context) throws SBonitaException- Specified by:
continueFlowin classExecuteConnectorWork- Throws:
SBonitaException
-
setContainerInFail
protected void setContainerInFail(java.util.Map<java.lang.String,java.lang.Object> context) throws SBonitaException- Specified by:
setContainerInFailin classExecuteConnectorWork- Throws:
SBonitaException
-
createThrowErrorEventInstance
protected SThrowEventInstance createThrowErrorEventInstance(java.util.Map<java.lang.String,java.lang.Object> context, SEndEventDefinition eventDefinition) throws SBonitaException
- Specified by:
createThrowErrorEventInstancein classExecuteConnectorWork- Throws:
SBonitaException
-
errorEventOnFail
protected void errorEventOnFail(java.util.Map<java.lang.String,java.lang.Object> context, SConnectorDefinition sConnectorDefinition, java.lang.Throwable exception) throws SBonitaException- Specified by:
errorEventOnFailin classExecuteConnectorWork- Throws:
SBonitaException
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescriptionin classBonitaWork
-
getSConnectorDefinition
protected SConnectorDefinition getSConnectorDefinition(ProcessDefinitionService processDefinitionService) throws SBonitaException
- Specified by:
getSConnectorDefinitionin classExecuteConnectorWork- Throws:
SBonitaException
-
-