Skip to main content
Nintex Community Menu Bar

Server Event & REST Calls

  • Apr 9, 2019 12:03 PM UTC
  • 3 replies
  • 64 views
  • Translate All

  • Nintex Partner

Hi Mates,

 

In our K2 4.7 workflow we are make use of server event to halt the activity using below code.

K2.Synchronous = false;

Once the backed process has been done we call REST service from our internal tool and make activity complete by using below code in REST service.

 

ServerItem svrItem = K2Conn.OpenServerItem("[serialNo]");
svrItem.Finish();

 

Since server event is not supported by K2 FIVE, how we can we achieve this? This should be done in real time when our internal activity done by our other system.

 

Thanks in Advance

3 replies

Forum|alt.badge.img+16
  • Apr 9, 2019 4:32 PM UTC

  • Author
  • Nintex Partner
  • Apr 10, 2019 4:58 AM UTC

Hi,

Yes using REST API we can finish the actiivty. But how we can have hold the acitivty like server event in  K2 FIVE?

Translate

Forum|alt.badge.img+8
  • Apr 19, 2019 8:33 PM UTC

The SmartObject step has the ability to be configured to be asynchronous using the "Wait for external system" checkbox in the options section. Here is the help documentation on that feature: https://help.k2.com/onlinehelp-staging/k2cloud/userguide/update_8/default.htm#K2-Workflow-Designer/Use/Toolbox/SmartObjects/Overview/SmartObjects-Overview.htm#Wait_for_external_system

 

And a quick screenshot: 

I hope this helps.

Translate