Can we recommend K2 Workflow for the scheduled background activities?

  • 6 October 2015
  • 2 replies
  • 0 views

Badge +2

Can we recommend K2 Workflow for the scheduled background activities?

 

Requirement here is, every day, process should retrieve 1000 products from DB and execute some set of acivities for each product. We have to use IPC event to execute the specific activities for each individual product. So 1000 instances will be created in a day. There is no human intervention (client event) required here, all are system level activities. 


2 replies

Badge +10

Although I suspect technically K2 could actually do what you're proposing I don't believe its the best tool for the job.  Such a scheduled K2 workflow would lead to performance issues when that process kicks off every day since it'll execute continuously until all are completed taking up virtually all the resources on the K2 server during that time, filling up the Log database with the audit trails and so on.

 

You're probably better off using some batch script or creating a program to accomplish these tasks.

 

Hope this helps.

Tim

Badge +9

From 100.SEA-Workflow_Fundamentals.pdf

 

The K2 platform is fundamentally architected for running long-lived workflows. All of the components and mechanisms in the K2 workflow engine are built to support the type of asynchronous processing model typical of human-to-human and human-to-system workflows. While you certainly CAN implement transient workflows on the K2 platform, it is not always the recommended approach, since the K2 platform adds additional overhead for persistence which is typically not required in transient workflows. That said, the K2 platform has automation features which can be very useful in system-system workflows, such as creating dynamic document content, integrating with systems like Active Directory or SQL server, sending automated e-mails and more.

 

Reply