Interface GatewayInstanceService
- All Known Implementing Classes:
GatewayInstanceServiceImpl
public interface GatewayInstanceService
- Since:
- 6.0
- Author:
- Feng Hui, Baptiste Mesta, Matthieu Chaffotte
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckMergingCondition(SProcessDefinition sDefinition, SGatewayInstance gatewayInstance) voidcreateGatewayInstance(SGatewayInstance gatewayInstance) Create gatewayInstance in DB according to the given gateway instance objectgetActiveGatewayInstanceOfTheProcess(long parentProcessInstanceId, String name) Get active gatewayInstance in the specific process instancegetGatewayInstance(long gatewayInstanceId) Get gateway instance by its idgetInclusiveGatewaysOfProcessInstanceThatShouldFire(SProcessDefinition processDefinition, long processInstanceId) voidhitTransition(SGatewayInstance gatewayInstance, long transitionIndex) Add transitionDefinitionName to hitBy of specific gatewayInstancesetFinishAndCreateNewGatewayForRemainingToken(SProcessDefinition processDefinition, SGatewayInstance gatewayInstance) voidsetState(SGatewayInstance gatewayInstance, int stateId) Change state of the specific gateway
-
Field Details
-
FINISH
- See Also:
-
GATEWAYINSTANCE
- See Also:
-
GATEWAYINSTANCE_STATE
- See Also:
-
GATEWAYINSTANCE_HITBYS
- See Also:
-
-
Method Details
-
createGatewayInstance
Create gatewayInstance in DB according to the given gateway instance object- Parameters:
gatewayInstance- the gatewayInsttance object- Throws:
SGatewayCreationException
-
getGatewayInstance
SGatewayInstance getGatewayInstance(long gatewayInstanceId) throws SGatewayNotFoundException, SGatewayReadException Get gateway instance by its id- Parameters:
gatewayInstanceId- identifier of gateway instance- Returns:
- an SGatewayInstance object
- Throws:
SGatewayNotFoundExceptionSGatewayReadException
-
setState
Change state of the specific gateway- Parameters:
gatewayInstance- the gateway instance will be updatedstateId- identifier of gateway state- Throws:
SGatewayModificationException
-
checkMergingCondition
boolean checkMergingCondition(SProcessDefinition sDefinition, SGatewayInstance gatewayInstance) throws SBonitaException - Parameters:
sDefinition-gatewayInstance-- Returns:
- Throws:
SBonitaException
-
hitTransition
void hitTransition(SGatewayInstance gatewayInstance, long transitionIndex) throws SGatewayModificationException, SGatewayCreationException Add transitionDefinitionName to hitBy of specific gatewayInstance- Parameters:
gatewayInstance- the gateway instance will be updatedtransitionIndex- value will be added to hitBy of gatewayInstance- Throws:
SGatewayModificationExceptionSGatewayCreationException
-
getActiveGatewayInstanceOfTheProcess
SGatewayInstance getActiveGatewayInstanceOfTheProcess(long parentProcessInstanceId, String name) throws SGatewayNotFoundException, SGatewayReadException Get active gatewayInstance in the specific process instance- Parameters:
parentProcessInstanceId- identifier of parent process instancename- name of gateway instance- Returns:
- Throws:
SGatewayNotFoundExceptionSGatewayReadException
-
setFinishAndCreateNewGatewayForRemainingToken
List<SGatewayInstance> setFinishAndCreateNewGatewayForRemainingToken(SProcessDefinition processDefinition, SGatewayInstance gatewayInstance) throws SBonitaException - Throws:
SBonitaException
-
getInclusiveGatewaysOfProcessInstanceThatShouldFire
List<SGatewayInstance> getInclusiveGatewaysOfProcessInstanceThatShouldFire(SProcessDefinition processDefinition, long processInstanceId) throws SBonitaReadException - Throws:
SBonitaReadException
-