public interface GatewayInstanceService
| Modifier and Type | Field and Description |
|---|---|
static String |
FINISH |
static String |
GATEWAYINSTANCE |
static String |
GATEWAYINSTANCE_HITBYS |
static String |
GATEWAYINSTANCE_STATE |
| 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) |
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
|
static final String FINISH
static final String GATEWAYINSTANCE
static final String GATEWAYINSTANCE_STATE
static final String GATEWAYINSTANCE_HITBYS
void createGatewayInstance(SGatewayInstance gatewayInstance) throws SGatewayCreationException
gatewayInstance - the gatewayInsttance objectSGatewayCreationExceptionSGatewayInstance getGatewayInstance(long gatewayInstanceId) throws SGatewayNotFoundException, SGatewayReadException
gatewayInstanceId - identifier of gateway instanceSGatewayNotFoundExceptionSGatewayReadExceptionvoid setState(SGatewayInstance gatewayInstance, int stateId) throws SGatewayModificationException
gatewayInstance - the gateway instance will be updatedstateId - identifier of gateway stateSGatewayModificationExceptionboolean checkMergingCondition(SProcessDefinition sDefinition, SGatewayInstance gatewayInstance) throws org.bonitasoft.engine.commons.exceptions.SBonitaException
sDefinition - gatewayInstance - org.bonitasoft.engine.commons.exceptions.SBonitaExceptionvoid hitTransition(SGatewayInstance gatewayInstance, long transitionIndex) throws SGatewayModificationException, SGatewayCreationException
gatewayInstance - the gateway instance will be updatedtransitionIndex - value will be added to hitBy of gatewayInstanceSGatewayModificationExceptionSGatewayCreationExceptionSGatewayInstance getActiveGatewayInstanceOfTheProcess(long parentProcessInstanceId, String name) throws SGatewayNotFoundException, SGatewayReadException
parentProcessInstanceId - identifier of parent process instancename - name of gateway instanceSGatewayNotFoundExceptionSGatewayReadExceptionList<SGatewayInstance> setFinishAndCreateNewGatewayForRemainingToken(SProcessDefinition processDefinition, SGatewayInstance gatewayInstance) throws org.bonitasoft.engine.commons.exceptions.SBonitaException
org.bonitasoft.engine.commons.exceptions.SBonitaExceptionList<SGatewayInstance> getInclusiveGatewaysOfProcessInstanceThatShouldFire(SProcessDefinition processDefinition, long processInstanceId) throws SBonitaReadException
SBonitaReadExceptionCopyright © 2019 Bonitasoft S.A.. All rights reserved.