Triggering a Microflow at backend

0
Hello everyone,   I have one requirement that i need to trigger a microflow at the backend even before the end user logs in, though we can use Scheduled events but our requirement is we need to trigger the flow for every 5-10 seconds of time but the SE deprecated the feature to minimum interval time as 1 minute. So the scheduled events or microflow timer wouldnt work in this case. Any idea how to achieve this functionality?   TIA
asked
3 answers
1

Hello Karthikeyan

It is not achievable straight forward, please check below for similar question.

 

Mendix Community - Question Details

 

Mendix Community - Question Details

 

Mendix Community - Question Details

 

Microflow Timer | Mendix Documentation

 

Mendix Marketplace - Microflow Timer

answered
0

Try it out:

1. Create an entity. Record the data that needs to be processed

2. Create a resident thread in the background via java when the program starts

3. The thread is constantly reading data from db at the time you set. Execute the logic you need4. When the user is logged in successfully put the data you want to process in the entity record and wait for java's resident thread loop

answered
0

You could create a login page, add Data View, add data source microflow to it and add your logic to the microflow. This would run the MF before log in. If you need scheduled run of a microflow but you do not like Mendix options, you could use a special URL that calls your microflow and you could open the URL from outside regularly using your desired interval. For example, you could use a cheap VPS (like Hetzner) and use cron jobs there calling your URL. Very easy.

answered