Class DefaultScriptTrace
java.lang.Object
org.flowable.common.engine.impl.scripting.DefaultScriptTrace
- All Implemented Interfaces:
ScriptTrace,ScriptTraceEnhancer.ScriptTraceContext
public class DefaultScriptTrace
extends Object
implements ScriptTrace, ScriptTraceEnhancer.ScriptTraceContext
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefaultScriptTrace(Duration duration, ScriptEngineRequest request, Throwable caughtException) -
Method Summary
Modifier and TypeMethodDescriptionaddTraceTag(String tag, String value) Adds a tracing tag to this script trace.static DefaultScriptTraceerrorTrace(Duration duration, ScriptEngineRequest request, Throwable caughtException) static DefaultScriptTracesuccessTrace(Duration duration, ScriptEngineRequest request) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.flowable.common.engine.impl.scripting.ScriptTrace
hasException, isSuccessMethods inherited from interface org.flowable.common.engine.impl.scripting.ScriptTraceEnhancer.ScriptTraceContext
getVariableContainer
-
Field Details
-
duration
-
request
-
exception
-
traceTags
-
-
Constructor Details
-
DefaultScriptTrace
public DefaultScriptTrace(Duration duration, ScriptEngineRequest request, Throwable caughtException)
-
-
Method Details
-
successTrace
-
errorTrace
public static DefaultScriptTrace errorTrace(Duration duration, ScriptEngineRequest request, Throwable caughtException) -
addTraceTag
Description copied from interface:ScriptTraceEnhancer.ScriptTraceContextAdds a tracing tag to this script trace. Tags are used to identify the origin of a script invocation and can also be used to classify script invocations e.g. to distinguish different use-cases etc.- Specified by:
addTraceTagin interfaceScriptTraceEnhancer.ScriptTraceContext
-
getRequest
- Specified by:
getRequestin interfaceScriptTrace- Specified by:
getRequestin interfaceScriptTraceEnhancer.ScriptTraceContext- Returns:
- the processed request which lead to this script trace.
-
getException
- Specified by:
getExceptionin interfaceScriptTrace- Specified by:
getExceptionin interfaceScriptTraceEnhancer.ScriptTraceContext- Returns:
- the exception (if the request ended in an error). Or
nullif the request was successful.
-
getTraceTags
- Specified by:
getTraceTagsin interfaceScriptTrace
-
getDuration
- Specified by:
getDurationin interfaceScriptTrace
-
toString
-