Class WorkflowState

java.lang.Object
de.xima.cmn.dao.model.AEntity<Long>
All Implemented Interfaces:
de.xima.cmn.dao.interfaces.IEntity<Long>, de.xima.cmn.dao.interfaces.ILockableEntity<Long>, IDescriptionProviding, ILockingVersionProviding, INameProviding, ITransferable, ITransferableEntity, ITransferableLockableEntity, IUUIDEntity, IUuidProviding, Serializable, Comparable<de.xima.cmn.dao.interfaces.IEntity<Long>>

@Entity public class WorkflowState extends AbstractLockableEntity implements IUUIDEntity, IUuidProviding, INameProviding, IDescriptionProviding
Describes the state of a Vorgang. A form record can only have one state at a time, such as archived or in_progress. This is the closest analog of the Status from the old workflow. The state can be used, for example, to restrict which users or user groups can access the form, or which form elements should be available.
Since:
7.0.0
Author:
XIMA MEDIA GmbH
See Also:
  • Field Details

  • Constructor Details

    • WorkflowState

      public WorkflowState()
  • Method Details

    • cloneBasics

      public WorkflowState cloneBasics()
      Returns:
      A new state instance with all fields that do not reference other entities copied from this instance.
    • isExternalAccessPermitted

      public boolean isExternalAccessPermitted()
      Returns:
      Whether or not it is allowed to access form records in this state. If true then getAuthenticatorConfigs() determines the available authentication methods
    • setExternalAccessPermitted

      public void setExternalAccessPermitted(boolean externalAccessPermitted)
      Parameters:
      externalAccessPermitted - Whether or not it is allowed to access form records in this state
    • isAllowAccessToApplicant

      public boolean isAllowAccessToApplicant()
      Returns:
      Whether or not the applicant is allowed to access a form record in this state.
    • setAllowAccessToApplicant

      public void setAllowAccessToApplicant(boolean allowAccessToApplicant)
      Parameters:
      allowAccessToApplicant - Whether or not the applicant is allowed to access a form record in this state.
    • isAllowAccessToAnonymousApplicant

      public boolean isAllowAccessToAnonymousApplicant()
      Returns:
      Whether or not anonymous applicants are allowed to access form records in this state.
    • setAllowAccessToAnonymousApplicant

      public void setAllowAccessToAnonymousApplicant(boolean allowAccessToAnonymousApplicant)
      Parameters:
      allowAccessToAnonymousApplicant - Whether or not anonymous applicants are allowed to access form records in this state.
    • getAuthenticatorConfigs

      public List<WorkflowStateAuthenticatorConfig> getAuthenticatorConfigs()
      Returns:
      custom authenticator configuration of this workflow state
    • getAccessUserGroups

      public List<BenutzerGruppe> getAccessUserGroups()
    • getBeschreibung

      @Deprecated public String getBeschreibung()
      Deprecated.
      Specified by:
      getBeschreibung in interface IDescriptionProviding
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface IDescriptionProviding
      Returns:
      A human-readable description for this object.
    • getDescription

      @Deprecated public String getDescription(Locale locale)
      Deprecated.
      Parameters:
      locale - Locale for which to get the description.
      Returns:
      The description of this state.
    • getId

      public Long getId()
      Specified by:
      getId in interface de.xima.cmn.dao.interfaces.IEntity<Long>
    • getName

      public String getName()
      Specified by:
      getName in interface INameProviding
      Returns:
      The name of this object.
    • getName

      @Deprecated public String getName(Locale locale)
      Deprecated.
      Parameters:
      locale - Locale for which to get the name.
      Returns:
      The name of this state.
    • getOrderIndex

      public int getOrderIndex()
      Returns:
      The 0-based position where this state appears on the UI for managing the states of a workflow version.
    • getType

      public EWorkflowStateType getType()
      Returns:
      The type of this state, whether it is a special system state, or a custom state defined by the user.
    • getUuid

      public UUID getUuid()
      Specified by:
      getUuid in interface IUuidProviding
      Returns:
      The UUID of this workflow state that identifies it. Please note that this UUID is unique only within the WorkflowVersion.getStates() of a certain workflow version. Two states of different workflow version may share the same UUID.
    • getUUID

      public String getUUID()
      Specified by:
      getUUID in interface IUUIDEntity
      Returns:
      The UUID of this workflow state that identifies it. Please note that this UUID is unique only within the WorkflowVersion.getStates() of a certain workflow version. Two states of different workflow version may share the same UUID.
    • getUUIDObject

      public UUID getUUIDObject()
      Specified by:
      getUUIDObject in interface IUUIDEntity
      Returns:
      The UUID of this workflow state that identifies it. Please note that this UUID is unique only within the WorkflowVersion.getStates() of a certain workflow version. Two states of different workflow version may share the same UUID.
    • getVersion

      public WorkflowVersion getVersion()
      Returns:
      The version to which this workflow state belongs, see WorkflowVersion.getStates().
    • isFormRecordDeletable

      public boolean isFormRecordDeletable()
      Returns:
      Whether a form record in this state can be deleted manually by a user in the inbox.
    • setAuthenticatorConfigs

      public void setAuthenticatorConfigs(List<WorkflowStateAuthenticatorConfig> authenticatorConfigs)
      Parameters:
      authenticatorConfigs - custom authenticator configuration of this workflow state
    • setAccessUserGroups

      public void setAccessUserGroups(List<BenutzerGruppe> userGroups)
    • setDescription

      public void setDescription(String description)
      Parameters:
      description - The description of this item, as entered by the user.
    • setFormRecordDeletable

      public void setFormRecordDeletable(boolean formRecordDeletable)
      Parameters:
      formRecordDeletable - Whether a form record in this state can be deleted manually by a user in the inbox.
    • setName

      public void setName(String name)
      Parameters:
      name - The name of this item, as entered by the user.
    • setOrderIndex

      public void setOrderIndex(int orderIndex)
      Parameters:
      orderIndex - The 0-based position where this state appears on the UI for managing the states of a workflow version.
    • setType

      public void setType(EWorkflowStateType type)
      Parameters:
      type - The type of this state, whether it is a special system state, or a custom state defined by the user.
    • setUUID

      public void setUUID(String uuid)
      Specified by:
      setUUID in interface IUUIDEntity
      Parameters:
      uuid - The UUID of this workflow state that identifies it. Please note that this UUID is unique only within the WorkflowVersion.getStates() of a certain workflow version. Two states of different workflow version may share the same UUID.
    • setUUIDObject

      public void setUUIDObject(UUID uuid)
      Parameters:
      uuid - The UUID of this workflow state that identifies it. Please note that this UUID is unique only within the WorkflowVersion.getStates() of a certain workflow version. Two states of different workflow version may share the same UUID.
    • setVersion

      public void setVersion(WorkflowVersion version)
      Parameters:
      version - The version to which this workflow state belongs.
    • toString

      public String toString()
      Overrides:
      toString in class AbstractLockableEntity
    • isUseSystemAuthentication

      @Deprecated public boolean isUseSystemAuthentication()
      Deprecated.
      Returns:
      Whether to use the default system authentication or a custom authentication config when accessing the form records in this state
    • setUseSystemAuthentication

      @Deprecated public void setUseSystemAuthentication(boolean useSystemAuthentication)
      Deprecated.
      Parameters:
      useSystemAuthentication - sets whether or not to use the default system authentication or a custom authentication config when accessing the form records in this state
    • applyAuthOrderIndex

      public void applyAuthOrderIndex()