Interface GatewayInstanceService
-
- All Known Implementing Classes:
GatewayInstanceServiceImpl
public interface GatewayInstanceService- Since:
- 6.0
- Author:
- Feng Hui, Baptiste Mesta, Matthieu Chaffotte
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringFINISHstatic java.lang.StringGATEWAYINSTANCEstatic java.lang.StringGATEWAYINSTANCE_HITBYSstatic java.lang.StringGATEWAYINSTANCE_STATE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancheckMergingCondition(SProcessDefinition sDefinition, SGatewayInstance gatewayInstance)voidcreateGatewayInstance(SGatewayInstance gatewayInstance)Create gatewayInstance in DB according to the given gateway instance objectSGatewayInstancegetActiveGatewayInstanceOfTheProcess(long parentProcessInstanceId, java.lang.String name)Get active gatewayInstance in the specific process instanceSGatewayInstancegetGatewayInstance(long gatewayInstanceId)Get gateway instance by its idjava.util.List<SGatewayInstance>getInclusiveGatewaysOfProcessInstanceThatShouldFire(SProcessDefinition processDefinition, long processInstanceId)voidhitTransition(SGatewayInstance gatewayInstance, long transitionIndex)Add transitionDefinitionName to hitBy of specific gatewayInstancejava.util.List<SGatewayInstance>setFinishAndCreateNewGatewayForRemainingToken(SProcessDefinition processDefinition, SGatewayInstance gatewayInstance)voidsetState(SGatewayInstance gatewayInstance, int stateId)Change state of the specific gateway
-
-
-
Field Detail
-
FINISH
static final java.lang.String FINISH
- See Also:
- Constant Field Values
-
GATEWAYINSTANCE
static final java.lang.String GATEWAYINSTANCE
- See Also:
- Constant Field Values
-
GATEWAYINSTANCE_STATE
static final java.lang.String GATEWAYINSTANCE_STATE
- See Also:
- Constant Field Values
-
GATEWAYINSTANCE_HITBYS
static final java.lang.String GATEWAYINSTANCE_HITBYS
- See Also:
- Constant Field Values
-
-
Method Detail
-
createGatewayInstance
void createGatewayInstance(SGatewayInstance gatewayInstance) throws SGatewayCreationException
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
void setState(SGatewayInstance gatewayInstance, int stateId) throws SGatewayModificationException
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, java.lang.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
java.util.List<SGatewayInstance> setFinishAndCreateNewGatewayForRemainingToken(SProcessDefinition processDefinition, SGatewayInstance gatewayInstance) throws SBonitaException
- Throws:
SBonitaException
-
getInclusiveGatewaysOfProcessInstanceThatShouldFire
java.util.List<SGatewayInstance> getInclusiveGatewaysOfProcessInstanceThatShouldFire(SProcessDefinition processDefinition, long processInstanceId) throws SBonitaReadException
- Throws:
SBonitaReadException
-
-