project-flogo / core

Flogo Core is the core flogo library used create and extend Flogo applications.
BSD 3-Clause "New" or "Revised" License
109 stars 55 forks source link

Fix #237 to delete data from app data #238

Closed lixingwang closed 3 years ago

lixingwang commented 3 years ago

What kind of change does this PR introduce? (check one with "x")

[] Bugfix
[*] Feature
[] Code style update (formatting, local variables)
[] Refactoring (no functional changes, no api changes)
[] Other... Please describe:

Fixes: #237

What is the current behavior? Today we exposed api app.GetValue and app.SetValue() to save app-level data, and we already had a appdata activity https://github.com/project-flogo/contrib/blob/master/activity/appdata/activity.go .

But there is no way to delete an attribute from the app data cache. It's better to have the ability to delete data as a global data store. What is the new behavior? Ability to remove/delete app data.