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 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 Summary
Constructors Constructor Description FilenameField(java.lang.String key, java.lang.String label)Creates the field for setting a text
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringpatchSeriesPlaceholderInValue(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-
Methods inherited from class com.inet.taskplanner.server.api.field.Field
getConditions, getKey, getLabel, getPlaceholder, getType, getValue, isUpdateValuesOnChange, isValueSavable, patchResultPlaceholderInValue, replaceSeriesPlaceholders, setConditions, setKey, setLabel, setPlaceholder, setType, setType, setUpdateValuesOnChange, setValue, setValueSavable
-
-
-
-
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:
patchSeriesPlaceholderInValuein classField- Parameters:
value- the value to be patchedseriesProperties- properties from the current series set- Returns:
- the new value with replaced placeholders
-
-