org.bonitasoft.engine.core.process.instance.impl
public class GatewayInstanceServiceImpl extends Object implements org.bonitasoft.engine.core.process.instance.api.GatewayInstanceService
| Constructor and Description |
|---|
GatewayInstanceServiceImpl(org.bonitasoft.engine.recorder.Recorder recorder,
org.bonitasoft.engine.events.EventService eventService,
org.bonitasoft.engine.persistence.ReadPersistenceService persistenceRead,
org.bonitasoft.engine.services.QueriableLoggerService queriableLoggerService,
org.bonitasoft.engine.log.technical.TechnicalLoggerService logger,
org.bonitasoft.engine.core.process.instance.api.TokenService tokenService) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkMergingCondition(SProcessDefinition sDefinition,
org.bonitasoft.engine.core.process.instance.model.SGatewayInstance gatewayInstance) |
void |
createGatewayInstance(org.bonitasoft.engine.core.process.instance.model.SGatewayInstance gatewayInstance) |
org.bonitasoft.engine.core.process.instance.model.SGatewayInstance |
getActiveGatewayInstanceOfTheProcess(long parentProcessInstanceId,
String name) |
org.bonitasoft.engine.core.process.instance.model.SGatewayInstance |
getGatewayInstance(long gatewayInstanceId) |
org.bonitasoft.engine.core.process.instance.model.SGatewayInstance |
getGatewayMergingToken(long processInstanceId,
Long tokenRefId) |
protected List<STransitionDefinition> |
getTransitionDefinitions(org.bonitasoft.engine.core.process.instance.model.SGatewayInstance gatewayInstance,
SProcessDefinition processDefinition) |
void |
hitTransition(org.bonitasoft.engine.core.process.instance.model.SGatewayInstance gatewayInstance,
long transitionIndex) |
void |
setFinish(org.bonitasoft.engine.core.process.instance.model.SGatewayInstance gatewayInstance) |
void |
setState(org.bonitasoft.engine.core.process.instance.model.SGatewayInstance gatewayInstance,
int stateId) |
public GatewayInstanceServiceImpl(org.bonitasoft.engine.recorder.Recorder recorder,
org.bonitasoft.engine.events.EventService eventService,
org.bonitasoft.engine.persistence.ReadPersistenceService persistenceRead,
org.bonitasoft.engine.services.QueriableLoggerService queriableLoggerService,
org.bonitasoft.engine.log.technical.TechnicalLoggerService logger,
org.bonitasoft.engine.core.process.instance.api.TokenService tokenService)
public void createGatewayInstance(org.bonitasoft.engine.core.process.instance.model.SGatewayInstance gatewayInstance)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.SGatewayCreationException
createGatewayInstance in interface org.bonitasoft.engine.core.process.instance.api.GatewayInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.SGatewayCreationExceptionpublic org.bonitasoft.engine.core.process.instance.model.SGatewayInstance getGatewayInstance(long gatewayInstanceId)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.SGatewayNotFoundException,
org.bonitasoft.engine.core.process.instance.api.exceptions.SGatewayReadException
getGatewayInstance in interface org.bonitasoft.engine.core.process.instance.api.GatewayInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.SGatewayNotFoundExceptionorg.bonitasoft.engine.core.process.instance.api.exceptions.SGatewayReadExceptionpublic boolean checkMergingCondition(SProcessDefinition sDefinition, org.bonitasoft.engine.core.process.instance.model.SGatewayInstance gatewayInstance) throws org.bonitasoft.engine.commons.exceptions.SBonitaException
checkMergingCondition in interface org.bonitasoft.engine.core.process.instance.api.GatewayInstanceServiceorg.bonitasoft.engine.commons.exceptions.SBonitaExceptionprotected List<STransitionDefinition> getTransitionDefinitions(org.bonitasoft.engine.core.process.instance.model.SGatewayInstance gatewayInstance, SProcessDefinition processDefinition)
public void setState(org.bonitasoft.engine.core.process.instance.model.SGatewayInstance gatewayInstance,
int stateId)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.SGatewayModificationException
setState in interface org.bonitasoft.engine.core.process.instance.api.GatewayInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.SGatewayModificationExceptionpublic void hitTransition(org.bonitasoft.engine.core.process.instance.model.SGatewayInstance gatewayInstance,
long transitionIndex)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.SGatewayModificationException
hitTransition in interface org.bonitasoft.engine.core.process.instance.api.GatewayInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.SGatewayModificationExceptionpublic org.bonitasoft.engine.core.process.instance.model.SGatewayInstance getActiveGatewayInstanceOfTheProcess(long parentProcessInstanceId,
String name)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.SGatewayNotFoundException,
org.bonitasoft.engine.core.process.instance.api.exceptions.SGatewayReadException
getActiveGatewayInstanceOfTheProcess in interface org.bonitasoft.engine.core.process.instance.api.GatewayInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.SGatewayNotFoundExceptionorg.bonitasoft.engine.core.process.instance.api.exceptions.SGatewayReadExceptionpublic void setFinish(org.bonitasoft.engine.core.process.instance.model.SGatewayInstance gatewayInstance)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.SGatewayModificationException
setFinish in interface org.bonitasoft.engine.core.process.instance.api.GatewayInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.SGatewayModificationExceptionpublic org.bonitasoft.engine.core.process.instance.model.SGatewayInstance getGatewayMergingToken(long processInstanceId,
Long tokenRefId)
throws org.bonitasoft.engine.core.process.instance.api.exceptions.SGatewayReadException
getGatewayMergingToken in interface org.bonitasoft.engine.core.process.instance.api.GatewayInstanceServiceorg.bonitasoft.engine.core.process.instance.api.exceptions.SGatewayReadExceptionCopyright © 2014 Bonitasoft S.A.. All rights reserved.