Class Execution

java.lang.Object
org.kie.kogito.trusty.storage.api.model.Execution
Direct Known Subclasses:
Decision, Process

public class Execution extends Object
Base abstract class for Execution
  • Field Details

  • Constructor Details

    • Execution

      public Execution()
    • Execution

      public Execution(org.kie.kogito.ModelDomain modelDomain)
    • Execution

      public Execution(@NotNull @NotNull String executionId, String sourceUrl, String serviceUrl, Long executionTimestamp, Boolean hasSucceeded, String executorName, String executedModelName, org.kie.kogito.ModelDomain modelDomain)
  • Method Details

    • getExecutionId

      public String getExecutionId()
      Gets the execution id.
      Returns:
      The execution id.
    • setExecutionId

      public void setExecutionId(String executionId)
      Sets the execution id.
      Parameters:
      executionId - The execution Id.
    • getSourceUrl

      public String getSourceUrl()
      Gets the source URL of the Cloud Event where the execution happened.
      Returns:
      The source URL.
    • setSourceUrl

      public void setSourceUrl(String sourceUrl)
      Sets the source URL of the Cloud Event where the execution happened.
      Parameters:
      sourceUrl - The source URL.
    • getServiceUrl

      public String getServiceUrl()
      Gets the source URL of the service where the execution happened.
      Returns:
      The service URL.
    • setServiceUrl

      public void setServiceUrl(String serviceUrl)
      Sets the service URL of the service where the execution happened.
      Parameters:
      serviceUrl - The service URL.
    • getExecutionTimestamp

      public Long getExecutionTimestamp()
      Gets the execution date.
      Returns:
      The execution date.
    • setExecutionTimestamp

      public void setExecutionTimestamp(Long executionTimestamp)
      Sets the execution timestamp.
      Parameters:
      executionTimestamp - The execution timestamp.
    • hasSucceeded

      public Boolean hasSucceeded()
      Gets the information of the operational success of the execution.
      Returns:
      true if the execution was successful from an technical point of view, false otherwise.
    • getExecutorName

      public String getExecutorName()
      Gets the executor name.
      Returns:
      The executor name.
    • setExecutorName

      public void setExecutorName(String executorName)
      Sets the executor name.
      Parameters:
      executorName - The executor name.
    • getExecutedModelName

      public String getExecutedModelName()
      Gets the name of the executed model.
      Returns:
      The name of the executed model.
    • setExecutedModelName

      public void setExecutedModelName(String executedModelName)
      Sets the executed model name.
      Parameters:
      executedModelName - The executed model name.
    • getExecutionType

      public org.kie.kogito.ModelDomain getExecutionType()
      Gets the execution type.
      Returns:
      The execution type.
    • setExecutionType

      public void setExecutionType(org.kie.kogito.ModelDomain executionType)
      Sets the execution type.
      Parameters:
      executionType - The execution type.
    • setSuccess

      public void setSuccess(Boolean hasSucceeded)
      Sets the success information.
      Parameters:
      hasSucceeded - Success value.