Please enable JavaScript to view this site.

The manual for the JobRouter developer

Navigation: System activities > Description of the PHP API for system activities > API methods > Work with subtables

executeMethodForSubtable(string $method, string $subtableName): void

Scroll Prev Top Next More

Executes a method of the current system activity for all rows of a subtable. The Resolve methods are automatically switched to the subtable, so that the resolution of parameters refers to subtable values and no longer to the values of the process table.

Parameter

Type

Description

$method

string

Name of the method of the current system activity to be executed for all rows of a subtable

$subtableName

string

Name of the subtable

If an error occurs, the function throws a JobRouterException.

Example:

try {

    $this->executeMethodForSubtable("doSomethingSpecialMethod","mySubtableName");

} catch (JobRouterException $e) {

    $this->error($e->getMessage());

    throw new JobRouterException('An error has occurred. For further details, please refer to the log file.');

}