Package io.process4j.core
Class Execution
- java.lang.Object
-
- io.process4j.core.Execution
-
public final class Execution extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Execution.Completion
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
completedNormally()
Execution.Completion
getCompletion()
State
getCompletionState()
String
getCurrentContext()
Flow
getCurrentPosition()
String
getCurrentPositionName()
State
getCurrentState()
long
getDuration(TimeUnit timeUnit)
long
getDurationInMicros()
long
getDurationInMillis()
String
getErrorMessage()
String
getErrorType()
Exception
getException()
String
getPath()
Returns a string representing the execution flow in the format. : , where 'context' is the name of the node containing the executed (sub)process, 'position' is the name of the flow exiting the executed node and 'iteration' is the direct or indirect (outer) iteration of the node execution String
getProcessName()
String
getStartTime()
List<State>
getStates()
void
setCompleted(long completed)
void
setCompletion(Execution.Completion completion)
void
setException(Exception exception)
-
-
-
Constructor Detail
-
Execution
public Execution(String processName)
-
-
Method Detail
-
getProcessName
public String getProcessName()
-
getStartTime
public String getStartTime()
-
setCompleted
public void setCompleted(long completed)
-
getCompletion
public Execution.Completion getCompletion()
-
setCompletion
public void setCompletion(Execution.Completion completion)
-
getCompletionState
public State getCompletionState()
-
getErrorType
public String getErrorType()
-
getErrorMessage
public String getErrorMessage()
-
getException
public Exception getException()
-
setException
public void setException(Exception exception)
-
getCurrentState
public State getCurrentState()
-
getCurrentContext
public String getCurrentContext()
-
getCurrentPosition
public Flow getCurrentPosition()
-
getCurrentPositionName
public String getCurrentPositionName()
-
getDurationInMicros
public long getDurationInMicros()
-
getDurationInMillis
public long getDurationInMillis()
-
getDuration
public long getDuration(TimeUnit timeUnit)
-
completedNormally
public boolean completedNormally()
-
getPath
public String getPath()
Returns a string representing the execution flow in the format. : , where 'context' is the name of the node containing the executed (sub)process, 'position' is the name of the flow exiting the executed node and 'iteration' is the direct or indirect (outer) iteration of the node execution - Returns:
-
-