Un foro de discusión para nuestra comunidad de hispano hablante
#822443
Estimados,
En mis reportes uso la variable APP_DELEGATION_DEL_LAST_INDEX = 1, para identificar cual es la tarea que actualmente está en curso.

Sin embargo, tengo un flujo, donde por algún motivo que desconozco, todas las tareas del caso me aparece con APP_DELEGATION_DEL_LAST_INDEX = 1,

saben pq puede ocurrir esto? o como detecto la tarea actual en curso. Gracias!
Attachments
APP_DELEGATION_DEL_LAST_INDEX.png
APP_DELEGATION_DEL_LAST_INDEX.png (272.65 KiB) Viewed 3484 times
#822451
¿Cómo has creando esta tabla? APP_DELEGATION_DEL_LAST_INDEX no es un campo en la base de datos.

Puedes conseguir la ID de la tarea en curso con la variable del sistema @@TASK en un trigger.

También puedes usar este código en un trigger para buscar la última tarea abierta en el caso actual:
Code: Select all
$caseNo = @@APP_NUMBER; //use the current case number or set to another case number to find
$sql = "SELECT APP_UID, DEL_INDEX, APP_TAS_TITLE, TAS_UID, APP_CURRENT_USER, USR_UID 
   FROM APP_CACHE_VIEW WHERE APP_NUMBER=$caseNo AND APP_THREAD_STATUS='OPEN' 
   ORDER BY DEL_INDEX DESC LIMIT 1";
$result = executeQuery(); 
@@lastOpenTaskInCase = empty($result) ? '' : $result[1]['APP_TAS_TITLE'];

In the rapidly evolving world of online sports be[…]

STEPN integrates social networking and games that […]

Cenforce 150 is a medication used to cope with a c[…]

What's SAP FICO?

Trustworthy and skill-building, each of these actu[…]