public interface GatewayInstanceService
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FINISH |
static java.lang.String |
GATEWAYINSTANCE |
static java.lang.String |
GATEWAYINSTANCE_HITBYS |
static java.lang.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,
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) |
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
|
static final java.lang.String FINISH
static final java.lang.String GATEWAYINSTANCE
static final java.lang.String GATEWAYINSTANCE_STATE
static final java.lang.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 SBonitaException
sDefinition - gatewayInstance - 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, java.lang.String name) throws SGatewayNotFoundException, SGatewayReadException
parentProcessInstanceId - identifier of parent process instancename - name of gateway instanceSGatewayNotFoundExceptionSGatewayReadExceptionjava.util.List<SGatewayInstance> setFinishAndCreateNewGatewayForRemainingToken(SProcessDefinition processDefinition, SGatewayInstance gatewayInstance) throws SBonitaException
SBonitaExceptionjava.util.List<SGatewayInstance> getInclusiveGatewaysOfProcessInstanceThatShouldFire(SProcessDefinition processDefinition, long processInstanceId) throws SBonitaReadException
SBonitaReadException