Returns the value of a process table field.
Parameter |
Type |
Description |
|---|---|---|
$fieldname |
string |
Name of the process table field |
$rawValue |
bool |
Flag indicating whether the value should be returned in "raw" form (optional); default value is false;
This flag only affects process table fields of type: - Date (TIMESTAMP) (DATE) - Date (DATETIME) (DATETIME) - Attachment (FILE)
If the parameter $rawValue was passed with the value true, the time is returned with the type. With the attachment type, however, the actual file name on the file system is returned. This should be used to perform file operations. |
The format of the return depends on the type of the process table column.
Type |
Format |
Example |
|---|---|---|
Text |
Output as text |
Text … |
Integer |
Output as integer |
1000 |
Decimal |
Output as decimal value |
1000.00 |
Attachment |
Output of the directory and file name below the JobRouter upload directory |
030df2c553e040cc89b943081d682114/test.pdf |
Long text |
Output as text |
Text … |
Date |
Output in format YYYY-MM-DD |
2012-01-20 |
If an error occurs, the function throws a JobRouterException.
Example:
$attachment = $this->getTableValue('ATTACHMENT', true);