Class ActivityDefinitionLight

  • Direct Known Subclasses:
    ActivityDefinition

    public class ActivityDefinitionLight
    extends Object
    An activity is an step in a process. Conditionals are a particular type of activities from the point of view of this API. This class is a representation of a definition of an activity, which is basically a description of what it does (like presenting a form for the user to fill it in). The activity definition has at least one artifact definition, which contains (in our example) the actual form. This is a simplified version of a step
    Author:
    Charles Edward Bedon Cortazar <charles.bedon@kuwaiba.org>
    • Field Detail

      • TYPE_NORMAL

        public static int TYPE_NORMAL
        An activity that represents a step in the process. There's always an action associated to it
      • TYPE_START

        public static int TYPE_START
        A start event. When a process instance is created, the "pointer" to the current activity is set there
      • TYPE_END

        public static int TYPE_END
        An end event. When a process instance doesn't have any more normal actions to be executed, the "pointer" to the current activity is set there. This means that the process instance ended.
      • TYPE_CONDITIONAL

        public static int TYPE_CONDITIONAL
        A conditional (a logical branch)
      • TYPE_PARALLEL

        public static int TYPE_PARALLEL
        Activity with parallel paths
    • Constructor Detail

      • ActivityDefinitionLight

        public ActivityDefinitionLight​(long id,
                                       String name,
                                       String description,
                                       int type,
                                       ArtifactDefinition arfifact,
                                       boolean idling,
                                       boolean confirm,
                                       String color)
    • Method Detail

      • getId

        public long getId()
      • setId

        public void setId​(long id)
      • getName

        public String getName()
      • setName

        public void setName​(String name)
      • getDescription

        public String getDescription()
      • setDescription

        public void setDescription​(String description)
      • getType

        public int getType()
      • setType

        public void setType​(int type)
      • isIdling

        public boolean isIdling()
      • setIdling

        public void setIdling​(boolean idling)
      • confirm

        public boolean confirm()
      • setConfirm

        public void setConfirm​(boolean confirm)
      • getColor

        public String getColor()
      • setColor

        public void setColor​(String color)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object