Class ArtifactDefinition


  • public class ArtifactDefinition
    extends Object
    Represents an artifact associated to an activity. An artifact is the product of the execution of an activity. Most of the times, it will be a form filled in by the user.
    Author:
    Charles Edward Bedon Cortazar <charles.bedon@kuwaiba.org>
    • Field Detail

      • TYPE_FORM

        public static final int TYPE_FORM
        The artifact is a form that should be filled in and submitted by the user
        See Also:
        Constant Field Values
      • TYPE_CONDITIONAL

        public static final int TYPE_CONDITIONAL
        The type used for the TYPE_CONTIDIONAL activities, and simply asks a question expecting a yes/no answer
        See Also:
        Constant Field Values
      • TYPE_ATTACHMENT

        public static final int TYPE_ATTACHMENT
        The activity only requires the user to submits a file
        See Also:
        Constant Field Values
    • Constructor Detail

      • ArtifactDefinition

        public ArtifactDefinition​(long id,
                                  String name,
                                  String description,
                                  String version,
                                  int type,
                                  byte[] definition,
                                  Boolean printable,
                                  String printableTemplate,
                                  String externalScripts)
    • 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)
      • getVersion

        public String getVersion()
      • setVersion

        public void setVersion​(String version)
      • getType

        public int getType()
      • setType

        public void setType​(int type)
      • getDefinition

        public byte[] getDefinition()
      • setDefinition

        public void setDefinition​(byte[] definition)
      • getSharedInformation

        public List<String> getSharedInformation()
      • setSharedInformation

        public void setSharedInformation​(List<String> sharedInformation)
      • setPreconditionsScript

        public void setPreconditionsScript​(byte[] preconditionsScript)
      • getPreconditionsScript

        public byte[] getPreconditionsScript()
      • setPostconditionsScript

        public void setPostconditionsScript​(byte[] postconditionsScript)
      • getPostconditionsScript

        public byte[] getPostconditionsScript()
      • isPrintable

        public Boolean isPrintable()
      • setPrintable

        public void setPrintable​(boolean printable)
      • getPrintableTemplate

        public String getPrintableTemplate()
      • setPrintableTemplate

        public void setPrintableTemplate​(String printableTemplate)
      • getExternalScripts

        public String getExternalScripts()
      • setExternalScripts

        public void setExternalScripts​(String externalScripts)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object