public class EngineUtils extends Object
| Constructor and Description |
|---|
EngineUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
endStateMachine(ProcessContext context)
end StateMachine
|
static void |
failStateMachine(ProcessContext context,
Exception exp)
fail StateMachine
|
static String |
generateParentId(StateInstance stateInstance)
generate parent id
|
static String |
getOriginStateName(StateInstance stateInstance)
get origin state name without suffix like fork
|
static void |
handleException(ProcessContext context,
AbstractTaskState state,
Throwable e)
Handle exceptions while ServiceTask or ScriptTask Executing
|
static boolean |
isTimeout(Date gmtUpdated,
int timeoutMillis)
test if is timeout
|
public static String generateParentId(StateInstance stateInstance)
stateInstance - the state instancepublic static String getOriginStateName(StateInstance stateInstance)
stateInstance - the state instanceLoopTaskUtils.generateLoopStateName(ProcessContext, String)public static void endStateMachine(ProcessContext context)
context - the process contextpublic static void failStateMachine(ProcessContext context, Exception exp)
context - the process contextexp - the exceptionpublic static boolean isTimeout(Date gmtUpdated, int timeoutMillis)
gmtUpdated - the engine update gmttimeoutMillis - the timeout millispublic static void handleException(ProcessContext context, AbstractTaskState state, Throwable e)
context - the process contextstate - the task statee - the throwableCopyright © 2023 Seata. All rights reserved.