public class StateLogStoreImpl extends Object implements StateLogStore
| Modifier and Type | Method and Description |
|---|---|
void |
clearUp(ProcessContext context)
clear the LocalThread
|
StateInstance |
getStateInstance(String stateInstanceId,
String machineInstId)
Get state instance
|
StateMachineInstance |
getStateMachineInstance(String stateMachineInstanceId)
Get state machine instance
|
StateMachineInstance |
getStateMachineInstanceByBusinessKey(String businessKey,
String tenantId)
Get state machine instance by businessKey
|
List<StateInstance> |
queryStateInstanceListByMachineInstanceId(String stateMachineInstanceId)
Get a list of state instances by state machine instance id
|
List<StateMachineInstance> |
queryStateMachineInstanceByParentId(String parentId)
Query the list of state machine instances by parent id
|
void |
recordStateFinished(StateInstance stateInstance,
ProcessContext context)
Record state execution end event
|
void |
recordStateMachineFinished(StateMachineInstance machineInstance,
ProcessContext context)
Record status end event
|
void |
recordStateMachineRestarted(StateMachineInstance machineInstance,
ProcessContext context)
Record state machine restarted
|
void |
recordStateMachineStarted(StateMachineInstance machineInstance,
ProcessContext context)
Record state machine startup events
|
void |
recordStateStarted(StateInstance stateInstance,
ProcessContext context)
Record state start execution event
|
StateLogStore |
unwrap() |
static StateLogStore |
wrap(StateLogStore actual) |
public void recordStateMachineStarted(StateMachineInstance machineInstance, ProcessContext context)
StateLogStorerecordStateMachineStarted in interface StateLogStoremachineInstance - the state machine instancecontext - the state machine process contextpublic void recordStateMachineFinished(StateMachineInstance machineInstance, ProcessContext context)
StateLogStorerecordStateMachineFinished in interface StateLogStoremachineInstance - the state machine instancecontext - the state machine process contextpublic void recordStateMachineRestarted(StateMachineInstance machineInstance, ProcessContext context)
StateLogStorerecordStateMachineRestarted in interface StateLogStoremachineInstance - the state machine instancecontext - the state machine process contextpublic void recordStateStarted(StateInstance stateInstance, ProcessContext context)
StateLogStorerecordStateStarted in interface StateLogStorestateInstance - the state machine instancecontext - the state machine process contextpublic void recordStateFinished(StateInstance stateInstance, ProcessContext context)
StateLogStorerecordStateFinished in interface StateLogStorestateInstance - the state machine instancecontext - the state machine process contextpublic StateMachineInstance getStateMachineInstance(String stateMachineInstanceId)
StateLogStoregetStateMachineInstance in interface StateLogStorestateMachineInstanceId - the state machine instance idpublic StateMachineInstance getStateMachineInstanceByBusinessKey(String businessKey, String tenantId)
StateLogStoregetStateMachineInstanceByBusinessKey in interface StateLogStorebusinessKey - the businessKeytenantId - the tenant idpublic List<StateMachineInstance> queryStateMachineInstanceByParentId(String parentId)
StateLogStorequeryStateMachineInstanceByParentId in interface StateLogStoreparentId - the state machine parent's idpublic StateInstance getStateInstance(String stateInstanceId, String machineInstId)
StateLogStoregetStateInstance in interface StateLogStorestateInstanceId - the state instance idmachineInstId - the machine instance idpublic List<StateInstance> queryStateInstanceListByMachineInstanceId(String stateMachineInstanceId)
StateLogStorequeryStateInstanceListByMachineInstanceId in interface StateLogStorestateMachineInstanceId - the state machine instance idpublic void clearUp(ProcessContext context)
StateLogStoreclearUp in interface StateLogStorecontext - the contextpublic static StateLogStore wrap(StateLogStore actual)
public StateLogStore unwrap()
Copyright © 2025 Apache. All rights reserved.