Please enable JavaScript to view this site.

Process Designer

Navigation: PHP API > Determine and write instance data

Determine process table values (getTableValue)

Scroll Prev Top Next More

This method returns the value of a process table field.

Parameter

Type

Description

$elementName

string

Name of the process table field

$rawValue

bool

Flag in order to set if 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 has been passed with the value true, the time is returned with the type date.

In contrast to the type Attachment the actual file name is returned on the file system. This should be used to perform file operations.

Example:

$attachment = $this->getTableValue('ATTACHMENT', true);

Please note: The getTableValue method always returns a nullable string. If you need a specific type, you must perform a type conversion afterwards.

Example:

$value = (int) $intValueFromJobRouter