Un foro de discusión para nuestra comunidad de hispano hablante
#815728
Si hay un problema, Cases::reassignCase() va poner un mensaje en la variable __ERROR__ que puedes ver en el debugger.

Si quieres capturar el error en tu trigger, puedes poner Cases::reassignCase() adentro de try{ } y capturar el error con catch{ }.

Aca es un ejemplo, que muestra el error al usuario:
Code: Select all
try {
   $c = new Cases();
   $c->reassignCase($caseId, $index, $assignedUserId, $newUserId, 'REASSIGN');
}
catch(Exception $e) {
    $msg = $e->getMessage();
    @@errorReassigning = $msg;
    $g = new G();
    $g->SendMessageText($msg, "WARNING");
}
Ver:
https://wiki.processmaker.com/3.0/Inter ... Text.28.29
Want to create your own meme coin?

In the world of cryptocurrencies, a unique and exc[…]

The market for cryptocurrencies is demonstrating a[…]

What's SAP FICO?

Embarking on a dissertation can be one of the most[…]

Hello. For rental housing, there are software solu[…]