Class Data

  • All Implemented Interfaces:
    java.io.Serializable

    public class Data
    extends java.lang.Object
    implements java.io.Serializable

    Workflow activity data

    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      Data​(java.lang.String group, java.lang.String name, java.lang.String val)
      Add dynamically a data to the activity
      Data​(java.lang.String id, java.lang.String group, java.lang.String name, java.lang.String val, ObjectField field)
      Data from repository
    • Method Summary

      Modifier and Type Method Description
      ObjectField getField()
      Related field (of conditional template)
      java.lang.String getGroup()
      Data group
      java.lang.String getId()
      Data unique id
      java.lang.String getName()
      Data name
      java.lang.String getValue()
      Definition value
      org.json.JSONObject toJSONObject()
      Generates a JSON object representation of the data
      java.lang.String toString()
      Generates a string representation of the data
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Data

        public Data​(java.lang.String id,
                    java.lang.String group,
                    java.lang.String name,
                    java.lang.String val,
                    ObjectField field)
        Data from repository
        Parameters:
        id - Data unique id
        group - Group of data
        name - Data name
        val - Value
        field - Optional field
      • Data

        public Data​(java.lang.String group,
                    java.lang.String name,
                    java.lang.String val)
        Add dynamically a data to the activity
        Parameters:
        group - Group of data
        name - Name
        val - Value
    • Method Detail

      • getId

        public java.lang.String getId()
        Data unique id
        Returns:
        id
      • getGroup

        public java.lang.String getGroup()
        Data group
        Returns:
        group
      • getName

        public java.lang.String getName()
        Data name
        Returns:
        name
      • getValue

        public java.lang.String getValue()
        Definition value
        Returns:
        value
      • getField

        public ObjectField getField()
        Related field (of conditional template)
        Returns:
        ObjectField
      • toJSONObject

        public org.json.JSONObject toJSONObject()
        Generates a JSON object representation of the data
        Returns:
        data as JSON object
      • toString

        public java.lang.String toString()
        Generates a string representation of the data
        Overrides:
        toString in class java.lang.Object
        Returns:
        data as string