Question

Asyncronous server event in K2 Five

  • 3 November 2020
  • 5 replies
  • 31 views

Userlevel 1
Badge +4

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


5 replies

Userlevel 4
Badge +8

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

Userlevel 1
Badge +4

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.

Userlevel 4
Badge +8

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.

Userlevel 1
Badge +4

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 ?

 

Userlevel 1
Badge +4

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