Class ExecutionEntity

java.lang.Object
ai.nervemind.app.database.model.ExecutionEntity

@Entity public class ExecutionEntity extends Object
JPA Entity for Workflow Execution.
  • Constructor Details

    • ExecutionEntity

      protected ExecutionEntity()
      Default constructor for JPA.
    • ExecutionEntity

      public ExecutionEntity(Long workflowId, ai.nervemind.common.enums.TriggerType triggerType)
      Creates a new ExecutionEntity.
      Parameters:
      workflowId - the workflow ID
      triggerType - the trigger type
  • Method Details

    • getId

      public Long getId()
      Gets the execution ID.
      Returns:
      the execution ID
    • setId

      public void setId(Long id)
      Sets the execution ID.
      Parameters:
      id - the execution ID to set
    • getWorkflowId

      public Long getWorkflowId()
      Gets the workflow ID.
      Returns:
      the workflow ID
    • setWorkflowId

      public void setWorkflowId(Long workflowId)
      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

      public Instant getStartedAt()
      Gets the start timestamp.
      Returns:
      the start timestamp
    • setStartedAt

      public void setStartedAt(Instant startedAt)
      Sets the start timestamp.
      Parameters:
      startedAt - the start timestamp to set
    • getFinishedAt

      public Instant getFinishedAt()
      Gets the finish timestamp.
      Returns:
      the finish timestamp
    • setFinishedAt

      public void setFinishedAt(Instant finishedAt)
      Sets the finish timestamp.
      Parameters:
      finishedAt - the finish timestamp to set
    • getInputDataJson

      public String getInputDataJson()
      Gets the input data JSON.
      Returns:
      the input data JSON string
    • setInputDataJson

      public void setInputDataJson(String inputDataJson)
      Sets the input data JSON.
      Parameters:
      inputDataJson - the input data JSON string to set
    • getOutputDataJson

      public String getOutputDataJson()
      Gets the output data JSON.
      Returns:
      the output data JSON string
    • setOutputDataJson

      public void setOutputDataJson(String outputDataJson)
      Sets the output data JSON.
      Parameters:
      outputDataJson - the output data JSON string to set
    • getErrorMessage

      public String getErrorMessage()
      Gets the error message.
      Returns:
      the error message string
    • setErrorMessage

      public void setErrorMessage(String errorMessage)
      Sets the error message.
      Parameters:
      errorMessage - the error message string to set
    • getExecutionLog

      public String getExecutionLog()
      Gets the execution log.
      Returns:
      the execution log string
    • setExecutionLog

      public void setExecutionLog(String executionLog)
      Sets the execution log.
      Parameters:
      executionLog - the execution log string to set