Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify Registry Property Management #3788

Open
SanojPunchihewa opened this issue Nov 22, 2024 · 0 comments
Open

Simplify Registry Property Management #3788

SanojPunchihewa opened this issue Nov 22, 2024 · 0 comments

Comments

@SanojPunchihewa
Copy link
Contributor

Problem

Currently, if the user needs to persist a property, they need to add it has a registry property using the property mediator. Here they need to explicitly set the scope to registry.

To retrieve a property, they need to give the resource path and property name as follows,

<property name="regProperty" expression="get-property('registry','gov:<path to resource>/@<propertyname>')"/>

For a new user, these steps are cumbersome as they need to have product specific knowledge to simply persist a variable.

Proposed Solution

Add an utility method to store and retrieve persistent variables.

<utility.persistentVariable.Get>
  <name>[name]</name>
  <target>[body or variable]</target>
</utility.persistentVariable.Get>
<utility.persistentVariable.Set>
  <name>[name]</name>
  <value>[expression]</value>
</utility.persistentVariable.Set>

Alternatives

No response

Version

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant