Class FilenameField

java.lang.Object
com.inet.taskplanner.server.api.field.Field
com.inet.taskplanner.server.api.field.FilenameField

@JsonData public class FilenameField extends Field
A text field for filenames which will be later patched with ResultActionHelper.resolveFilenamePlaceholder.

This prevent identical filenames if the task has multiple identical jobs that differ with a parameter that is used as placeholder.

Since:
22.4
  • Constructor Details

    • FilenameField

      public FilenameField(String key, String label)
      Creates the field for setting a text
      Parameters:
      key - the key of the field
      label - the label to be displayed in front of the field
      Since:
      22.4
  • Method Details

    • patchSeriesPlaceholderInValue

      public String patchSeriesPlaceholderInValue(String value, Map<String,String> seriesProperties)
      Override to replace the placeholders with the values from the series
      Overrides:
      patchSeriesPlaceholderInValue in class Field
      Parameters:
      value - the value to be patched
      seriesProperties - properties from the current series set
      Returns:
      the new value with replaced placeholders