Flowable - Registry, global variables / Registre, variables globales

English below french version


FR :

Bonjour,

Je viens pour une autre question. Sauriez-vous s’il existe dans Flowable un moyen pour enregistrer des valeurs en mémoire qui sont utilisables pour l’ensemble des Applications publiées s’il-vous-plait ?

J’ai vu qu’il existe un registre mais je ne suis pas certain que ça réponde à mon besoin.

Que me proposez-vous ?

Merci

Romain


EN :

Hello

I come with a new ask / request. Would you know if Flowable has a way to have registry of values which can be used globally in all published / deployed Applications ? A registry what we can use in Flow Design Apps ?

I’ve seen there is a registry but i’m asking if it’s the thing i’m looking for.

Do you have any ideas ?

Thanks for your help

Best regards

Romain

The easiest would be using a custom spring bean or using the spring properties (there’s a standard spring bean for that) to get access to e.g. system properties and referencing that in your models.

1 Like

EN
Thanks for your answer. Ok so we could you use Spring Bean and send the values in the Flowable models ? Do you have an example about how to pass args and values to Flowable like you’re talking please ?

FR
Merci pour votre réponse. D’accord donc nous pourrions utiliser Spring Bean et envoyer les valeurs dans les modèles Flowable ? Avez-vous un exemple de coment passer les arguments / valeurs à Flowable s’il-vous-plait ?

If you’re using the Spring Boot integration, all beans are available by default. So ${myBean.myMethod} just works. There’s a system properties bean in Spring Boot (but can’t find it immediatly) - alternatively you can have your own Spring bean where you @Value inject (system) properties

(Note: Il n’ y a pas de raison d’utiliser français ici, tout en anglais ici :wink: )

1 Like