Package com.groiss.wf

Interface ActivityInstance

All Superinterfaces:
Serializable
All Known Subinterfaces:
ProcessInstance

public interface ActivityInstance extends Serializable
The activity instance represents a step of a process instance. This interface contains only getters, use the WfEngine interface to manipulate this object.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
    Defines the last action of the activity.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final short
    Instance has been aborted.
    static final short
    Instance is active.
    static final int
     
    static final int
    An andjoin node, end of andpar.
    static final int
    batch
    static final int
    A begin node.
    static final int
    A branch node.
    static final int
    Start of a choice construct.
    static final int
    A branch of a choice.
    static final short
    Instance has been compensated.
    static final short
    Step is currently beeing compensated
    static final int
    An else-if node.
    static final int
    An end node.
    static final int
    A branch end node.
    static final int
     
    static final int
    end scope
    static final int
    parallel for end
    static final short
    Step is in error state
    static final int
    An exit-when node.
    static final short
    Instance is finished.
    static final int
    A goto node.
    static final int
    An if node.
    static final int
    A loop node, starts a loop construct.
    static final short
    The user sees the instance via an augmented worklist
    static final short
    The user sees the instance because of assignment to himself or one of his roles
    static final short
    The user sees the instance via substitution
    static final short
    The origin of the instance is unknown
    static final int
    An orjoin node, end of orpar.
    static final int
    A par node, start of orpar or andpar.
    static final int
    parallel for
    static final int
    A (sub)process node.
    static final int
    start a new scope
    static final short
    Instance is in idle state.
    static final short
    Instance is in suspension list.
    static final int
    A system step which is translated in another wdl expression, e.g. raiseEvent
    static final int
    A system task.
    static final int
    A system step which makes no finish
    static final int
    A task node.
    static final int
     
    static final short
    Instance is finished, but post finish actions are pending (for example selection of choice path).
    static final int
    A while node.
    static final int
     
    static final int
     
    static final int
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the agent of the object
    Returns the application the activity belogs to.
    Returns the description
    Returns the duedate
    Returns the finish date.
    Returns the id of the activity instance.
    Returns a enum for the last action that changed the state of this ai
    long
    Returns the unique oid of the object.
    Returns the organizational unit.
    short
    Returns the origin of this ActivityInstance.
    Returns the parent node in the process execution graph, normally the process instance, but for example in parfors, the parfor node
    Returns the process definition the activity instance belongs to.
    Returns the process instance the activity instance belongs to.
    Returns the start date.
    short
    Returns the status of the activity instance.
    Returns the step-agent of the object.
    Get the label of the step the activity instance belongs to.
    Get the name of the step the activity belongs to.
    Returns the date when a user has taken the activity.
    Returns the task
    int
    Returns the type of the activity instance.
    Returns the UserFolder of the ActivityInstance.
    boolean
    Returns true if the activity instance has been created in a go back action.
    boolean
    Returns true if the activity instance has been created in a reactivate action.
    Get all SystemNotes, which are attached to this activityinstance
  • Field Details

  • Method Details

    • getOid

      long getOid()
      Returns the unique oid of the object.
      Returns:
      the oid
    • getAgent

      Agent getAgent()
      Returns the agent of the object
      Returns:
      the agent (User or Role)
    • getStepAgent

      Agent getStepAgent()
      Returns the step-agent of the object. This is the agent, as it appears in the process definition, normally a role
      Returns:
      the step-agent (User or Role)
    • getStarted

      Date getStarted()
      Returns the start date.
      Returns:
      a date object
    • getTaken

      Date getTaken()
      Returns the date when a user has taken the activity.
      Returns:
      a date object or null if not yet taken.
    • getFinished

      Date getFinished()
      Returns the finish date.
      Returns:
      a date object, is null when the activity is not finished.
    • getDuedate

      Date getDuedate()
      Returns the duedate
      Returns:
      a date, null when no duedate is set.
    • getDescription

      String getDescription()
      Returns the description
      Returns:
      a string object, may be null
    • getStatus

      short getStatus()
      Returns the status of the activity instance. See the programming guide for the possible values.
      Returns:
      the status
    • getOrgUnit

      OrgUnit getOrgUnit()
      Returns the organizational unit.
      Returns:
      the OrgUnit
    • getApplication

      Application getApplication()
      Returns the application the activity belogs to.
      Returns:
      the application
    • getType

      int getType()
      Returns the type of the activity instance.
      Returns:
      the type
    • getTask

      Task getTask()
      Returns the task
      Returns:
      the task, may be null if activity instance is not of type task.
    • getProcessDefinition

      ProcessDefinition getProcessDefinition()
      Returns the process definition the activity instance belongs to.
      Returns:
      the process definition
    • getProcessInstance

      ProcessInstance getProcessInstance()
      Returns the process instance the activity instance belongs to.
      Returns:
      the process instance
    • getStepName

      String getStepName()
      Get the name of the step the activity belongs to.
      Returns:
      the step name, may be null.
    • getStepLabel

      String getStepLabel()
      Get the label of the step the activity instance belongs to.
      Returns:
      the step label, may be null.
    • getParent

      ActivityInstance getParent()
      Returns the parent node in the process execution graph, normally the process instance, but for example in parfors, the parfor node
      Returns:
      an activity instance
    • getOrigin

      short getOrigin()
      Returns the origin of this ActivityInstance. Works only when the Instance was retrieved via the WorklistCache.
      Returns:
      ORIGIN_UNKNOWN, ORIGIN_DIRECT, ORIGIN_SUBSTITUTION, or ORIGIN_AUGMENTATION
    • isInGoBack

      boolean isInGoBack()
      Returns true if the activity instance has been created in a go back action.
    • isInReactivate

      boolean isInReactivate()
      Returns true if the activity instance has been created in a reactivate action.
    • getId

      String getId()
      Returns the id of the activity instance.
      Returns:
      the id
    • listSystemNotes

      List<DMSNote> listSystemNotes()
      Get all SystemNotes, which are attached to this activityinstance
      Returns:
      a list of systemnotes attached to this activityinstance
    • getLastAction

      Returns a enum for the last action that changed the state of this ai
    • getUserFolder

      UserFolder getUserFolder()
      Returns the UserFolder of the ActivityInstance.
      Returns:
      the UserFolder the ActivityInstance is in