Class FormProperties


  • public abstract class FormProperties
    extends Object
    Abstract form properties
    Author:
    jabad
    • Constructor Detail

      • FormProperties

        public FormProperties​(Map<String,​Object> parameterMap)
        Public constructor.
        Parameters:
        parameterMap - parameters map
    • Method Detail

      • getId

        public long getId()
        Get task id.
        Returns:
        task id
      • getName

        public String getName()
        Get name.
        Returns:
        task name
      • setId

        public void setId​(long id)
        Set task id.
        Parameters:
        id - task id
      • getCustomPropertiesMap

        public Map<String,​Object> getCustomPropertiesMap()
        Get custom properties map.
        Returns:
        custom properties map
      • addProperty

        protected void addProperty​(String key,
                                   Object value)
        Add property.
        Parameters:
        key - property key
        value - property value
      • getStringProperty

        public String getStringProperty​(String key)
        Get String value of property.
        Parameters:
        key - property key
        Returns:
        String property value
      • getObjectProperty

        public Object getObjectProperty​(String key)
        Get value property.
        Parameters:
        key - property key
        Returns:
        property value
      • getScheduledExpression

        public String getScheduledExpression()
        Get scheduled expression.
        Returns:
        scheduled expression
      • isTaskTypeScheduled

        public boolean isTaskTypeScheduled()
        Get if the expression is scheduled.
        Returns:
        true if the expression is scheduled
      • getProcessor

        public String getProcessor()
        Get processor type.
        Returns:
        processor type
      • isRunning

        public boolean isRunning()
        Get if the task is running.
        Returns:
        true if it's running
      • isScheduled

        public boolean isScheduled()
        Get is the task is scheduled in the system.
        Returns:
        true if the task is scheduled
      • setScheduled

        public void setScheduled​(boolean scheduled)
        Set scheduled state.
        Parameters:
        scheduled - scheduled
      • setRunning

        public void setRunning​(boolean running)
        Set running state.
        Parameters:
        running - running