public class GatewayInstanceServiceImpl extends Object implements GatewayInstanceService
| Modifier and Type | Field and Description |
|---|---|
static Class<GatewayInstanceServiceImpl> |
TAG |
FINISH, GATEWAYINSTANCE, GATEWAYINSTANCE_HITBYS, GATEWAYINSTANCE_STATE| Constructor and Description |
|---|
GatewayInstanceServiceImpl(Recorder recorder,
EventService eventService,
ReadPersistenceService persistenceRead,
TechnicalLoggerService logger,
FlowNodeInstanceService flowNodeInstanceService) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkMergingCondition(SProcessDefinition sDefinition,
SGatewayInstance gatewayInstance) |
void |
createGatewayInstance(SGatewayInstance gatewayInstance)
Create gatewayInstance in DB according to the given gateway instance object
|
SGatewayInstance |
getActiveGatewayInstanceOfTheProcess(long parentProcessInstanceId,
String name)
Get active gatewayInstance in the specific process instance
|
SGatewayInstance |
getGatewayInstance(long gatewayInstanceId)
Get gateway instance by its id
|
List<SGatewayInstance> |
getInclusiveGatewaysOfProcessInstanceThatShouldFire(SProcessDefinition processDefinition,
long processInstanceId) |
protected List<STransitionDefinition> |
getTransitionDefinitions(SGatewayInstance gatewayInstance,
SProcessDefinition processDefinition) |
void |
hitTransition(SGatewayInstance gatewayInstance,
long transitionIndex)
Add transitionDefinitionName to hitBy of specific gatewayInstance
|
List<SGatewayInstance> |
setFinishAndCreateNewGatewayForRemainingToken(SProcessDefinition processDefinition,
SGatewayInstance gatewayInstance) |
void |
setState(SGatewayInstance gatewayInstance,
int stateId)
Change state of the specific gateway
|
public static final Class<GatewayInstanceServiceImpl> TAG
public GatewayInstanceServiceImpl(Recorder recorder, EventService eventService, ReadPersistenceService persistenceRead, TechnicalLoggerService logger, FlowNodeInstanceService flowNodeInstanceService)
public void createGatewayInstance(SGatewayInstance gatewayInstance) throws SGatewayCreationException
GatewayInstanceServicecreateGatewayInstance in interface GatewayInstanceServicegatewayInstance - the gatewayInsttance objectSGatewayCreationExceptionpublic SGatewayInstance getGatewayInstance(long gatewayInstanceId) throws SGatewayNotFoundException, SGatewayReadException
GatewayInstanceServicegetGatewayInstance in interface GatewayInstanceServicegatewayInstanceId - identifier of gateway instanceSGatewayNotFoundExceptionSGatewayReadExceptionpublic boolean checkMergingCondition(SProcessDefinition sDefinition, SGatewayInstance gatewayInstance) throws org.bonitasoft.engine.commons.exceptions.SBonitaException
checkMergingCondition in interface GatewayInstanceServiceorg.bonitasoft.engine.commons.exceptions.SBonitaExceptionprotected List<STransitionDefinition> getTransitionDefinitions(SGatewayInstance gatewayInstance, SProcessDefinition processDefinition)
public void setState(SGatewayInstance gatewayInstance, int stateId) throws SGatewayModificationException
GatewayInstanceServicesetState in interface GatewayInstanceServicegatewayInstance - the gateway instance will be updatedstateId - identifier of gateway stateSGatewayModificationExceptionpublic void hitTransition(SGatewayInstance gatewayInstance, long transitionIndex) throws SGatewayModificationException
GatewayInstanceServicehitTransition in interface GatewayInstanceServicegatewayInstance - the gateway instance will be updatedtransitionIndex - value will be added to hitBy of gatewayInstanceSGatewayModificationExceptionpublic SGatewayInstance getActiveGatewayInstanceOfTheProcess(long parentProcessInstanceId, String name) throws SGatewayNotFoundException, SGatewayReadException
GatewayInstanceServicegetActiveGatewayInstanceOfTheProcess in interface GatewayInstanceServiceparentProcessInstanceId - identifier of parent process instancename - name of gateway instanceSGatewayNotFoundExceptionSGatewayReadExceptionpublic List<SGatewayInstance> setFinishAndCreateNewGatewayForRemainingToken(SProcessDefinition processDefinition, SGatewayInstance gatewayInstance) throws org.bonitasoft.engine.commons.exceptions.SBonitaException
setFinishAndCreateNewGatewayForRemainingToken in interface GatewayInstanceServiceorg.bonitasoft.engine.commons.exceptions.SBonitaExceptionpublic List<SGatewayInstance> getInclusiveGatewaysOfProcessInstanceThatShouldFire(SProcessDefinition processDefinition, long processInstanceId) throws SBonitaReadException
getInclusiveGatewaysOfProcessInstanceThatShouldFire in interface GatewayInstanceServiceSBonitaReadExceptionCopyright © 2019 Bonitasoft S.A.. All rights reserved.