Class BasicResult

java.lang.Object
java.util.EventObject
org.kuali.rice.krms.framework.engine.result.BasicResult
All Implemented Interfaces:
Serializable, org.kuali.rice.krms.api.engine.ResultEvent

public class BasicResult extends EventObject implements org.kuali.rice.krms.api.engine.ResultEvent
An implementation of ResultEvent
Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
  • Field Details

    • type

      protected String type
    • timestamp

      protected org.joda.time.DateTime timestamp
    • environment

      protected org.kuali.rice.krms.api.engine.ExecutionEnvironment environment
    • result

      protected Boolean result
    • description

      protected String description
    • resultDetails

      protected Map<String,?> resultDetails
  • Constructor Details

    • BasicResult

      public BasicResult(Map<String,?> resultDetails, String eventType, Object source, org.kuali.rice.krms.api.engine.ExecutionEnvironment environment, boolean result)
      Constructor
      Parameters:
      resultDetails - of the ResultEvent
      eventType - String of the ResultEvent
      source - Object of the ResultEvent
      environment - ExecutionEnvironment
      result - boolean of the ResultEvent
    • BasicResult

      public BasicResult(Map<String,?> resultDetails, String description, String eventType, Object source, org.kuali.rice.krms.api.engine.ExecutionEnvironment environment, boolean result)
      Constructor
      Parameters:
      resultDetails - of the ResultEvent
      description - String of the ResultEvent
      eventType - String of the ResultEvent
      source - Object of the ResultEvent
      environment - ExecutionEnvironment
      result - boolean of the ResultEvent
    • BasicResult

      public BasicResult(String description, String eventType, Object source, org.kuali.rice.krms.api.engine.ExecutionEnvironment environment, boolean result)
      Constructor
      Parameters:
      description - String of the ResultEvent
      eventType - String of the ResultEvent
      source - Object of the ResultEvent
      environment - ExecutionEnvironment
      result - boolean of the ResultEvent
    • BasicResult

      public BasicResult(String eventType, Object source, org.kuali.rice.krms.api.engine.ExecutionEnvironment environment, boolean result)
      Constructor
      Parameters:
      eventType - String of the ResultEvent
      source - Object of the ResultEvent
      environment - ExecutionEnvironment
      result - boolean of the ResultEvent
    • BasicResult

      public BasicResult(String eventType, Object source, org.kuali.rice.krms.api.engine.ExecutionEnvironment environment)
      Constructor
      Parameters:
      eventType - String of the ResultEvent
      source - Object of the ResultEvent
      environment - ExecutionEnvironment
  • Method Details

    • getType

      public String getType()
      Specified by:
      getType in interface org.kuali.rice.krms.api.engine.ResultEvent
    • getTimestamp

      public org.joda.time.DateTime getTimestamp()
      Specified by:
      getTimestamp in interface org.kuali.rice.krms.api.engine.ResultEvent
    • getEnvironment

      public org.kuali.rice.krms.api.engine.ExecutionEnvironment getEnvironment()
      Specified by:
      getEnvironment in interface org.kuali.rice.krms.api.engine.ResultEvent
    • getResult

      public Boolean getResult()
      Specified by:
      getResult in interface org.kuali.rice.krms.api.engine.ResultEvent
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface org.kuali.rice.krms.api.engine.ResultEvent
    • getResultDetails

      public Map<String,?> getResultDetails()
      Returns the result details of the ResultEvent as an unmodifiable Mapinvalid input: '<'?,?>
      Specified by:
      getResultDetails in interface org.kuali.rice.krms.api.engine.ResultEvent
      Returns:
      result details of the ResultEvent as an unmodifiable Mapinvalid input: '<'?,?>
    • toString

      public String toString()
      Overrides:
      toString in class EventObject