Class FilenameField


  • @JsonData
    public class FilenameField
    extends Field
    A text field for filenames which will be later patch 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 Detail

      • FilenameField

        public FilenameField​(java.lang.String key,
                             java.lang.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 Detail

      • patchSeriesPlaceholderInValue

        public java.lang.String patchSeriesPlaceholderInValue​(java.lang.String value,
                                                              java.util.Map<java.lang.String,​java.lang.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