Is there a way to retrieve the value of the attribute tableName on tag (or another attribute) without declaring a property or passing as parameter?
I want the value inside of the tag , like the local tag attributes. For example {local.tableName} or {local.createTable.tableName} where it returns the tableName, something like the example bellow:
Are you asking if there is another way to set {local.createTable.tableName} other than declaring a property in the changelog? If so, yes, you can. You can see all the ways you can set a property (including cli, and env variable are possible sources). Check out the docs.
That’s it, I don’t want to declare it just get the current value at the tag attribute tableName.
In my example when the liquibase compile run it should substitute the property “local.tableName” by “Table1” (just saw that my example is a bit confusing).
I get your point now. But I don’t think we have any such functionality to get the values of local variables/properties and use it elsewhere. ( The idea seems cool though )
However, don’t you think defining a property would also help you here? Just like below: