Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

AEM 6.4 Adaptive Forms - Managing Data Sources

Level 1
Level 1

I created an adaptive form and I'm trying to fully utilize AEM Forms Data Integration. I added a rule to a button that invokes a service, that is defined by a Form Data Model, that will populate some text fields based on the output. The service is a RESTful service that is defined by a swagger file.

My question is how can I dynamically change the swagger file to use a different endpoint based on the AEM instance? For example, I want to use our dev RESTful endpoint for our dev AEM instance and then use our stage RESTful endpoint for our stage AEM instance. My thinking is that I would have to update the swagger file every time I upload my code to the different AEM environments, but this seems dangerous if I forget to change it. We could end up using the stage RESTful endpoint in our production AEM instance.

Also, I don't want to add multiple data sources for the different endpoints, because then I would have to change the rules for all the components that invoke that service every time I upload my code to the different AEM environments.

Any ideas would be gratefully appropriated! 

0 Replies
Level 2
Level 2

@vincentv85806307 - In 6.5 we have provided the option of changing the endpoint in configuration but its not available in 6.4