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.');
}