public class GatewayInstanceServiceImpl extends java.lang.Object implements GatewayInstanceService
| Modifier and Type | Field and Description |
|---|---|
static java.lang.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,
java.lang.String name)
Get active gatewayInstance in the specific process instance
|
SGatewayInstance |
getGatewayInstance(long gatewayInstanceId)
Get gateway instance by its id
|
java.util.List<SGatewayInstance> |
getInclusiveGatewaysOfProcessInstanceThatShouldFire(SProcessDefinition processDefinition,
long processInstanceId) |
protected java.util.List<STransitionDefinition> |
getTransitionDefinitions(SGatewayInstance gatewayInstance,
SProcessDefinition processDefinition) |
void |
hitTransition(SGatewayInstance gatewayInstance,
long transitionIndex)
Add transitionDefinitionName to hitBy of specific gatewayInstance
|
java.util.List<SGatewayInstance> |
setFinishAndCreateNewGatewayForRemainingToken(SProcessDefinition processDefinition,
SGatewayInstance gatewayInstance) |
void |
setState(SGatewayInstance gatewayInstance,
int stateId)
Change state of the specific gateway
|
public static final java.lang.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 SBonitaException
checkMergingCondition in interface GatewayInstanceServiceSBonitaExceptionprotected java.util.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, java.lang.String name) throws SGatewayNotFoundException, SGatewayReadException
GatewayInstanceServicegetActiveGatewayInstanceOfTheProcess in interface GatewayInstanceServiceparentProcessInstanceId - identifier of parent process instancename - name of gateway instanceSGatewayNotFoundExceptionSGatewayReadExceptionpublic java.util.List<SGatewayInstance> setFinishAndCreateNewGatewayForRemainingToken(SProcessDefinition processDefinition, SGatewayInstance gatewayInstance) throws SBonitaException
setFinishAndCreateNewGatewayForRemainingToken in interface GatewayInstanceServiceSBonitaExceptionpublic java.util.List<SGatewayInstance> getInclusiveGatewaysOfProcessInstanceThatShouldFire(SProcessDefinition processDefinition, long processInstanceId) throws SBonitaReadException
getInclusiveGatewaysOfProcessInstanceThatShouldFire in interface GatewayInstanceServiceSBonitaReadException