On K2 blackpearl, I can create a Server Event task on the workflow for a specific system-to-system workflow task.
Example : automated KYC task which Pass/Fail outcome is determined by an action/output/data performed on another application outside K2.
I’m looking a way to implement this Server Event task scenario in K2 Five workflow.
Ah, ok - server events have been deprecated in K2 Five. The way I’ve gone about it is to put whatever logic I wanted in the server event into a stored procedure or web service and invoke it from the workflow via Smart Object.
In my case, the result from external application (system-to-system) is not syncronous process. I dont have visibility when and how the user using external application to perform KYC process but once the KYC process is completed, this external application will complete the respective K2 task using K2 Api. (it’s asyncronous process)
Using Timer to check stored procedure (smartobjects) seem to create overhead for K2 server due to the number of instances are a lot and it can stay on this step for days/week or forever.
Any best practice on K2 Five to achieve this asyncronous processing without affecting K2 server performance ?