App Properties
App properties provide a way to override property values included in the app binary. You can configure some supported fields with app properties when configuring triggers and activities. Connection-related app properties cannot be used for configuration anywhere within an app. Their only purpose is to allow you to change a connection value if need be during runtime. Configuration fields in your flow that require their values to be changed when the app goes from a testing stage to production are best configured using app properties instead of hard coding their values. App properties for triggers and activities reside within the app. App properties for connections are not modifiable from the App Properties dialog box in the app.
The URL field in an Activity is a good example of a field for which you would want different values – may be an internal URL when testing the app and an external URL when the app goes into production. You may want the URL used in the Activity to change when the app goes from a test environment to production. In such a case, it is best to configure the URL field in the Activity with an app property instead of hard-coding the URL. This way, you can change the URL by changing the value of the app property used to configure the URL field.
Before building the app, you can change the default value of an app property from the
App Properties dialog box. Once you have built the app and have the app
An app property value can have one of the following data types:
- string
- boolean
- number
- password
Values for the password data type are encrypted and are not visible by default. But when configuring the password value, you can click on the
Show/Hide password property value icon () to see the value temporarily to verify that it has been entered correctly.
App properties are saved within the app, so when you export or import an app, app properties configured in the app also get exported or imported with the app. Properties of data type
password
do not retain their values when an app is exported. So, you must reconfigure the password after importing the app.
If you import an app that was created in a prior version, even though this feature is available to the app since the activities were created in an older version of Flogo Enterprise you need to re-create them to be able to see the slider against their fields which allows you to configure an app property for that field.