Skip to main content

How to use Asynchronous event in K2 Five? or any other similar approach to achieve it ?

Hello, can you elaborate on your question please? Are you referring to asynchronous rules on your forms/views?


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.

 

https://help.k2.com/kb000272

 

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 ?

 


I found this, look like what I’m looking for.

https://cyclops.nettrends.nl/blog/2017/10/k2five-creating-an-asynchronous-event/

https://help.k2.com/onlinehelp/k2five/userguide/5.3/default.htm#How-Tos/WaitExternal/Wait-External-System.htm


Reply