- Fri Apr 06, 2018 10:54 am
#813957
Hi, we've been using Repoting Tools (in PHP with SQL queries to the database) since some months and I find it pretty hard to show the current task of a case.
The problem come from the parallel tasks mostly.
I want to show all the cases (draft, to_do, completed) with their current task. If there is a case that has more than 1 task opened, i want to show it too. If a case is paused, I want to show it too.
Is there any Processmaker Table that can show me what the current tasks are ? I know about APP_DELEGATION but the DEL_THREAD_STATUS='OPEN' doesn't return the paused tasks. I've got it working at 90% approximately but there are some errors and the code is really not good (I use multiple If with MAX_INDEX if APP_STATUS=COMPLETED, else if APP_STATUS='TO_DO' i use DEL_THREAD_STATUS='OPEN'
THanks
Edit: PMFTaskCase() seems like a perfect solution but since our reporting tool is not inside Processmaker, I can't use this function
Also,
I Also looked at APP_THREAD but it seems like it doesn't have everything so it won't work correctly then
The problem come from the parallel tasks mostly.
I want to show all the cases (draft, to_do, completed) with their current task. If there is a case that has more than 1 task opened, i want to show it too. If a case is paused, I want to show it too.
Is there any Processmaker Table that can show me what the current tasks are ? I know about APP_DELEGATION but the DEL_THREAD_STATUS='OPEN' doesn't return the paused tasks. I've got it working at 90% approximately but there are some errors and the code is really not good (I use multiple If with MAX_INDEX if APP_STATUS=COMPLETED, else if APP_STATUS='TO_DO' i use DEL_THREAD_STATUS='OPEN'
THanks
Edit: PMFTaskCase() seems like a perfect solution but since our reporting tool is not inside Processmaker, I can't use this function
Also,
Code: Select all
doesn't return paused cases (I got this code from another forum thread but 6 years ago, things might have changed?SELECT A.APP_NUMBER,C.CON_VALUE
FROM APPLICATION A, APP_DELEGATION D, CONTENT C
WHERE 1 = 1
AND A.APP_UID = D.APP_UID
AND D.DEL_THREAD_STATUS = 'OPEN'
AND D.TAS_UID = C.CON_ID
AND C.CON_CATEGORY = 'TAS_TITLE'
AND C.CON_LANG = 'en'
ORDER BY A.APP_NUMBER
I Also looked at APP_THREAD but it seems like it doesn't have everything so it won't work correctly then