Community
What makes flows sometimes end up "running" for infinity and how do we handle it?
I sometimes see flows "hanging" and end up running for infinity.
What are the most common reasons for this happening?
Is it recommended to check running flows periodically and stop old ones?
What happens if we don't - is there a maximum number of running flows etc?
Would it be a good idea to create a flow "purge-old-running-processes.bpmn" which stops the one that are X days old, and even send a report about it by mail so that we have some info about which ones it concerns and how often it happens?
(I know about the possibility to make a flow "nonpersistent", that will automatically stop it after a while , but it might not be possible to use if the flows needs to return an output.)
Posted by Dennis 17 days ago
Can we get flows triggered by schedule/timer in the logs?
As far as I can see only flows triggered by users are visible in the log, except for the flow "sync-resources.bpmn" which is triggered by "app".
It might clog the log a little if we got all the scheduled flows in the log, but if we do want to be able to find problems with the scheduled flows it would be good to be able to see them in the log as well.
Is it in some way possible to configure, by flow, if you want it to be logged or not? :)
Posted by Dennis 17 days ago
How do I catch a httpRequest error in flow?
How do I catch a service task with httpRequest (or onifyApiRequest) error in flow and do logic based on the outcome?
Posted by Robert Lundsten 5 months ago
How do I run onifyElevatedApiRequest from a script task?
I am trying to run `onifyElevatedApiRequest` from a script task using users token but it does not work. Is it possible to run from a script task?
This is what I am trying to do:
```javascript
let onifyHeaders = {
'Content-Type': 'application/json',
'Authorization': environment.settings.authorization
}
var resourceOptions = {
url: `admin/resources/file?stream=false&path=${templatePath}`,
headers: onifyHeaders
}
let result = await environment.services.onifyElevatedApiRequest(resourceOptions);
```
Posted by Robert Lundsten over 2 years ago