Interface Activity

All Superinterfaces:
WorkflowElement

public interface Activity extends WorkflowElement
This interface represents an activity in an workflow-model.
Since:
3.0
  • Field Details

    • PROPERTY_SCRIPT

      static final String PROPERTY_SCRIPT
      Name of script property.
      Since:
      3.0
      See Also:
    • PROPERTY_LOCATION

      static final String PROPERTY_LOCATION
      Name of location property.
      Since:
      3.0
      See Also:
    • PROPERTY_AUTOMATIC

      static final String PROPERTY_AUTOMATIC
      Name of transition mode automatic property.
      Since:
      3.0
      See Also:
    • PROPERTY_EMAIL_SEND

      static final String PROPERTY_EMAIL_SEND
      Name of e-mail activation property.
      Since:
      3.0
      See Also:
    • PROPERTY_EMAIL_RESPONSIBLE

      static final String PROPERTY_EMAIL_RESPONSIBLE
      Name of activation property to send e-mails to beneficiaries.
      Since:
      3.0
      See Also:
    • PROPERTY_EMAIL_TASK_CREATOR

      static final String PROPERTY_EMAIL_TASK_CREATOR
      Name of activation property to send e-mails to task creators.
      Since:
      3.0
      See Also:
    • PROPERTY_EMAIL_EDITORS

      static final String PROPERTY_EMAIL_EDITORS
      Name of activation property to send e-mails to editors.
      Since:
      3.0.4
      See Also:
    • PROPERTY_EMAIL_LAST_AGENT

      static final String PROPERTY_EMAIL_LAST_AGENT
      Name of activation property to send e-mails to the last editor.
      Since:
      3.0
      See Also:
    • PROPERTY_EMAIL_LIST

      static final String PROPERTY_EMAIL_LIST
      Name of activation property to send e-mails to a list of e-mail receivers.
      Since:
      3.0
      See Also:
    • PROPERTY_EMAIL_SUBJECT

      static final String PROPERTY_EMAIL_SUBJECT
      Name of e-mail subject property.
      Since:
      3.0
      See Also:
    • PROPERTY_EMAIL_BODY

      static final String PROPERTY_EMAIL_BODY
      Name of e-mail body property.
      Since:
      3.0
      See Also:
    • PROPERTY_EMAIL_USER

      static final String PROPERTY_EMAIL_USER
      Name of property defining a list of e-mail receivers by user names.
      Since:
      3.0
      See Also:
    • PROPERTY_EMAIL_GROUPS

      static final String PROPERTY_EMAIL_GROUPS
      Name of property defining a list of e-mail receivers by group names.
      Since:
      3.0.6
      See Also:
    • EMAIL_SEND

      static final int EMAIL_SEND
      E-mail property bit value on whether to send e-mails.
      Since:
      3.0
      See Also:
    • EMAIL_RESPONSIBLE

      static final int EMAIL_RESPONSIBLE
      E-mail property bit value on whether to send to beneficiaries.
      Since:
      3.0
      See Also:
    • EMAIL_TASK_CREATOR

      static final int EMAIL_TASK_CREATOR
      E-mail property bit value on whether to send to the task creator.
      Since:
      3.0
      See Also:
    • EMAIL_LAST_AGENT

      static final int EMAIL_LAST_AGENT
      E-mail property bit value on whether to send to the last editor.
      Since:
      3.0
      See Also:
    • EMAIL_LIST

      static final int EMAIL_LIST
      E-mail property bit value on whether to send to a list.
      Since:
      3.0
      See Also:
    • EMAIL_EDITORS

      static final int EMAIL_EDITORS
      E-mail property bit value on whether to send to editos.
      Since:
      3.0.4
      See Also:
  • Method Details

    • getSourceTransitions

      List<? extends Transition> getSourceTransitions()
      Returns all transitions that points TO this activity.
      Returns:
      an list with all transitions or an empty list if there is no transition.
      Since:
      3.0
    • getTargetTransitions

      List<? extends Transition> getTargetTransitions()
      Returns all Transitions which points FROM this activity.
      Returns:
      an list with all transitions or an empty list if there is no transitions.
      Since:
      3.0
    • getScript

      String getScript()
      Returns the script name that belongs to this activity.
      Returns:
      an unique script name; null if there is no script assigned.
      Since:
      3.0
    • isAutomatic

      boolean isAutomatic()
      Returns if this activity is exectued autmaticallly.
      Returns:
      true if this activity executed automatically; false if this activity must be executed manually.
      Since:
      3.0
    • getEmailProperty

      boolean getEmailProperty(int property)
      Returns true if this activity has the given property
      Parameters:
      property - one of the email properties defined by this interface
      Returns:
      true if the given property is correct
      Since:
      3.0
    • getEmailSubject

      String getEmailSubject()
      Returns the title from the email. Is only valid with email-send property.
      Returns:
      the title as a string
      Since:
      3.0
    • getEmailBody

      String getEmailBody()
      Returns the text from the email. Is only valid with email-send property.
      Returns:
      the text as a string
      Since:
      3.0
    • getEmailUser

      List<String> getEmailUser()
      Returns the user who are selected to be notified by mail. Only valid with email-list property.
      Returns:
      a list with the selected users
      Since:
      3.0
    • getEmailGroups

      List<String> getEmailGroups()
      Provides the groups who are selected to be notified by mail. Only valid with e-mail list property.
      Returns:
      A list of groups.
      Since:
      3.0.6