Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.
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().
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[…]