Class ExecutionEntity
java.lang.Object
ai.nervemind.app.database.model.ExecutionEntity
JPA Entity for Workflow Execution.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for JPA.ExecutionEntity(Long workflowId, ai.nervemind.common.enums.TriggerType triggerType) Creates a new ExecutionEntity. -
Method Summary
Modifier and TypeMethodDescriptionGets the error message.Gets the execution log.Gets the finish timestamp.getId()Gets the execution ID.Gets the input data JSON.Gets the output data JSON.Gets the start timestamp.ai.nervemind.common.enums.ExecutionStatusGets the execution status.ai.nervemind.common.enums.TriggerTypeGets the trigger type.Gets the workflow ID.voidsetErrorMessage(String errorMessage) Sets the error message.voidsetExecutionLog(String executionLog) Sets the execution log.voidsetFinishedAt(Instant finishedAt) Sets the finish timestamp.voidSets the execution ID.voidsetInputDataJson(String inputDataJson) Sets the input data JSON.voidsetOutputDataJson(String outputDataJson) Sets the output data JSON.voidsetStartedAt(Instant startedAt) Sets the start timestamp.voidsetStatus(ai.nervemind.common.enums.ExecutionStatus status) Sets the execution status.voidsetTriggerType(ai.nervemind.common.enums.TriggerType triggerType) Sets the trigger type.voidsetWorkflowId(Long workflowId) Sets the workflow ID.
-
Constructor Details
-
ExecutionEntity
protected ExecutionEntity()Default constructor for JPA. -
ExecutionEntity
Creates a new ExecutionEntity.- Parameters:
workflowId- the workflow IDtriggerType- the trigger type
-
-
Method Details
-
getId
-
setId
-
getWorkflowId
-
setWorkflowId
Sets the workflow ID.- Parameters:
workflowId- the workflow ID to set
-
getStatus
public ai.nervemind.common.enums.ExecutionStatus getStatus()Gets the execution status.- Returns:
- the execution status
-
setStatus
public void setStatus(ai.nervemind.common.enums.ExecutionStatus status) Sets the execution status.- Parameters:
status- the execution status to set
-
getTriggerType
public ai.nervemind.common.enums.TriggerType getTriggerType()Gets the trigger type.- Returns:
- the trigger type
-
setTriggerType
public void setTriggerType(ai.nervemind.common.enums.TriggerType triggerType) Sets the trigger type.- Parameters:
triggerType- the trigger type to set
-
getStartedAt
-
setStartedAt
Sets the start timestamp.- Parameters:
startedAt- the start timestamp to set
-
getFinishedAt
-
setFinishedAt
Sets the finish timestamp.- Parameters:
finishedAt- the finish timestamp to set
-
getInputDataJson
-
setInputDataJson
Sets the input data JSON.- Parameters:
inputDataJson- the input data JSON string to set
-
getOutputDataJson
-
setOutputDataJson
Sets the output data JSON.- Parameters:
outputDataJson- the output data JSON string to set
-
getErrorMessage
-
setErrorMessage
Sets the error message.- Parameters:
errorMessage- the error message string to set
-
getExecutionLog
-
setExecutionLog
Sets the execution log.- Parameters:
executionLog- the execution log string to set
-