Patterns Property
General info
Label |
Patterns |
Description |
A list of patterns to match the file names, which will be processed. If no pattern is provided all files will be processed. The patterns have to be provided in RegEx-syntax. The filenames will be converted to lower case before the RegEx is evaluated. Example: '^.*.(xml)$' to process all XML-files, https://regex101.com/. |
Data type |
String |
Type |
Regular |
Code |
6483 |
Symbolic name |
MODEL_PROP_PATTERNS |
Lua access code |
syslib.model.properties.Patterns |
Available since |
1.52 |
- Parent classes
Attributes
| Name | Tooltip |
|---|---|
| PROP_CONFIGURABLE | The property is configurable and can be changed with DataStudio and the various inmation APIs. |
| PROP_VISIBLE | The property is visible in DataStudio and can be read by the inmation APIs. |
Examples
Read from or write to the Patterns property.
-- Read from the Patterns
syslib.getvalue("<OBJECT FULL PATH>.Patterns")
-- Write to the Patterns
syslib.setvalue("<OBJECT FULL PATH>.Patterns", "new value")
TcpConfig tcpcfg = new TcpConfig() { HostNameOrIp = "localhost", Port = 6512 };
SecurityCredentials sc = new SecurityCredentials() { ProfileName = "<username>", Password = "<password>" };
StatelessInterface sli = new StatelessInterface(tcpcfg);
// Read from the Patterns
Result result = sli.ReadValue(sc, new ReadItem("<OBJECT FULL PATH>.Patterns"));
// Write to the Patterns
Result result = sli.WriteValue(sc, new WriteItem("new value", "<OBJECT FULL PATH>.Patterns"));