Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.

Moderators: ArturoRobles, ArturoRobles

Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
By sgkalluri
#793688
Hello everyone,

I use the routeCase function regularly for derivating tasks. Expected outcomes are seen normally. However, there is a special situation where routeCase (or maybe even the PMF function DerivateCase) does not seem to work. This happens when the task is the final task of a process. Looks like routeCase moves the case out of the task, but the App_Status field in the application table remains as 'To_Do'. It should in fact become 'Completed'.

Is this something that you may have observed?

Any guidance would be appreciated.

Best wishes,
SGK
User avatar
By amosbatto
#793707
PMFDerivateCase() set the status to Completed when the last task in the process.

The developers are not longer maintaining web services, since they want people to use REST. The only workaround I can think to do is to create a trigger like this:
Code: Select all
$caseId = @@APPLICATION;
$index = @@INDEX;
$sql = "UPDATE APP_DELEGATION SET APP_STATUS='COMPLETED' WHERE APP_UID='$caseId' ";
executeQuery($sql);
$sql = "UPDATE APPLICATION SET APP_STATUS='COMPLETED' WHERE APP_UID='$caseId' AND DEL_INDEX=$index ";
executeQuery($sql);
Then use the executeTrigger() web service to execute it after calling routeCase().

Hello, I'm trying to make a HTML page in which a[…]

IOS PUSH Notification

Latest Mobileios.pem already get its SSL cert expi[…]

Enabling SQL Server in Windows

Nice. https://360digitmg.com/india/ethical-hacking[…]

PM 3.5.0 supports MySQL 5.7.X configurations with […]