Hello!
I have a problem when running a server side script that takes longer than 60 seconds in version 9.1.0.
Metastorm engine lets the function run to an end, in my case roughly 6 minutes, but because Metastorm times out (probably the MicrosoftWorkflowTimeout=60 in the registry) then the folder is rolled back to it's previous state.
I tried to make the timeouts longer but that did not work as it should because then my Timed action in the next stage is
messed up, this probably because of the long transaction caused running my server side script, which seems to block some internal stuff in Metastorm engine.
And personally I don't think that setting the timeout time to long is a good solution on my problem.
What I need is a way to make my lengthy server side script be executed asynchronous. I have tried to use delegates but
I runned into problem how to use the WS connection object and Mstm object. I don't know how to instantiate
those objects when the function is started using a delegate.
Does anyone have an idea how to solve the problem with executing a lengthy server side script within Metastorm?
I could write me my own external WS which could do all of the time consuming parts async but that will take some time
and I have a working solution in Metastorm server side C# for low volume calls, i.e. when all the WS/DB calls are executed
before timeout.
Best regards,
Henrik