We would like to have our workflow kick off a long-running job. It may take up to 45 minutes. We would then like the workflow to continue once that job finishes.
Can anyone recommend an approach to do that? We can implement the job in .NET so we have some options, and our preferred way to host it would be in a self-hosted webapi service that K2 connects to using a REST SmartObject. We're not 100% attached to this approach though.
Is there a pattern or a way to launch long running asynchronous jobs from a workflow? We could possibly write the job status to a database table and loop the workflow to check it and continue on when the status is "done".
Any suggestions would be welcome. Thank you.