How to triggered workflow at multiple stages when SQL data migration

  • 25 June 2020
  • 1 reply
  • 3 views

Badge +7

Hi All,

 

We have data in other system(Clarity system). We have developed K2 application with Custom database(SQL) and workflow. 

 

Workflow is triggered on new data added using K2 application. 

Now we want to migrate old data into our SQL and we are ready to migrate it, but when we migrate data into SQL how we can trigerred workflow at different stages based on data.

 

Is there any script available or do i need to triggered it manually.


1 reply

Badge +7

Hi,

 

If you want to start workflow with specific data, you can simply use worklfow API (REST API or .NET Assemblies)

https://help.k2.com/onlinehelp/classic/devref/current/default.htm#Runtime/WorkflowAPIs.htm%3FTocPath%3DRuntime%2520APIs%2520and%2520Services|Workflow|_____0

 

If you want to allow do some actions automatically in the workflow (Accept/refused...), you can try to use the tool "Worflow testing tools" from the community:

https://community.k2.com/t5/K2-blackpearl/Workflow-testing-tools/ba-p/939

You will have to generate the corresponding XML file according your data.

 

Best regards,

Olivier Chatagnon

Reply