Fetch Latest Config

This post is referring to Vahana 2 (beta version). To check the document for production, please go to vDesigner-v1.0

This task ensures that the latest configuration changes are deployed on the server. If it finds the latest configuration changes, it applies them to the application.

Use Cases

You can use the Fetch Latest Config task in the following use cases:

  • When application starts, the latest configuration must be applied to it.
  • When you deploy the application frequently through CI/CD (Continuous Integration/Continuous Delivery) pipeline.
  • In long-running services that need to adapt to config changes without restarting.
  • When you roll out a new feature to a subset of users without redeployment.

Steps to Configure

  1. On the <<task group’s name>> page, see the Task panel.
  2. In the Task panel, search and find the Fetch Latest Config task.
  3. Drag the Fetch Latest Config task from the Task panel to the Execution panel.
  4. Under Fetch Latest Config, a group of boxes comes into view.
  5. In the boxes, configure related properties as follows:
Property NameDescriptionMandatory
Reference NameThe reference name specifies the name of the task. In the Reference Name box, you can also enter a new reference name in the place of the default reference name of the task.

In the smart selector, you select a task by its reference name.
Yes
Fetch ConfigurationThis property has a group of option buttons as follows:
a. Instant:- If the user selects this option, this task instantly fetches the latest configurations and then applies them to the application.

b. After Restart:- If the user selects this option, this task applies the latest configuration to the application after it restarts the device.
No
Enter MessageThis property allows you to configure a message that the application displays to the end user after he selects the After Restart option. You can configure the message as follows:

a. Defining Message Manually:-
In the smart selector, select the Static function to define the message manually.

b. Configuring Attribute:-
In the smart selector, select the related attribute so that the application fetches the message from the selected attribute.

To know more about selecting the value in the smart selector, click here.
No
Business RuleThis property allows you to build a business rule related to the execution of the task. If the user’s action satisfies the condition in the business rule, the Fetch Latest Config task is executed.

To configure the business rule:
–> In the Business Rule box, click the application tree icon (), and the Business Rule panel opens.
–> In the Business Rule panel, click CreateNew to configure the new business rule.  
No
  1. After you configure the related properties, click Save to configure the Fetch Latest Media task.

Best Practices

To use the Fetch Latest Config task effectively, you are recommended the following set of best practices:

  • To use the task conditionally, define a business rule and then map it to the Fetch Latest Config task.
  • Use this task only for the services and applications that undergo frequent changes.

Troubleshooting

If applying the Fetch Latest Config task does not create a desired output, you are recommended to check the following:

  • Make sure you mapped the correct attribute if you are using the attribute to fetch the message and other data.
  • Make sure the latest configurations are deployed on the server.
  • Select the correct element to map the task group.

Was this article helpful?
YesNo