Class WorkDescriptor

java.lang.Object
org.bonitasoft.engine.work.WorkDescriptor
All Implemented Interfaces:
Serializable

public class WorkDescriptor extends Object implements Serializable
Author:
Baptiste Mesta.
See Also:
  • Constructor Details

    • WorkDescriptor

      public WorkDescriptor(String type)
  • Method Details

    • getUuid

      public String getUuid()
    • getType

      public String getType()
    • getParameter

      public Serializable getParameter(String key)
    • getLong

      public Long getLong(String key)
    • getInteger

      public Integer getInteger(String key)
    • getBoolean

      public Boolean getBoolean(String key)
    • getString

      public String getString(String key)
    • create

      public static WorkDescriptor create(String type)
    • withParameter

      public WorkDescriptor withParameter(String key, Serializable value)
    • getExecutionThreshold

      public Instant getExecutionThreshold()
    • mustBeExecutedAfter

      public WorkDescriptor mustBeExecutedAfter(Instant mustBeExecutedAfter)
    • getRetryCount

      public int getRetryCount()
    • incrementRetryCount

      public void incrementRetryCount()
    • getExecutionCount

      public int getExecutionCount()
    • incrementExecutionCount

      public void incrementExecutionCount()
    • setRegistrationDate

      public void setRegistrationDate(Instant registrationDate)
    • getRegistrationDate

      public Instant getRegistrationDate()
    • abnormalExecutionDetected

      public WorkDescriptor abnormalExecutionDetected()
    • isAbnormalExecutionDetected

      public boolean isAbnormalExecutionDetected()
    • getDescription

      public String getDescription()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object