<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.dafne.bi-services.sk/index.php?action=history&amp;feed=atom&amp;title=Parameter</id>
	<title>Parameter - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.dafne.bi-services.sk/index.php?action=history&amp;feed=atom&amp;title=Parameter"/>
	<link rel="alternate" type="text/html" href="https://wiki.dafne.bi-services.sk/index.php?title=Parameter&amp;action=history"/>
	<updated>2026-10-23T19:26:00Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.4</generator>
	<entry>
		<id>https://wiki.dafne.bi-services.sk/index.php?title=Parameter&amp;diff=72&amp;oldid=prev</id>
		<title>Dafne: Documentation import</title>
		<link rel="alternate" type="text/html" href="https://wiki.dafne.bi-services.sk/index.php?title=Parameter&amp;diff=72&amp;oldid=prev"/>
		<updated>2026-08-06T13:36:47Z</updated>

		<summary type="html">&lt;p&gt;Documentation import&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;A &amp;#039;&amp;#039;&amp;#039;parameter&amp;#039;&amp;#039;&amp;#039; is a user-defined value that can be substituted into task commands and other statements. Parameters extend the fixed set of system [[Placeholders]] with values specific to the installation or to the individual run.&lt;br /&gt;
&lt;br /&gt;
A parameter is referenced with the &amp;lt;code&amp;gt;u:&amp;lt;/code&amp;gt; prefix:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;%u:parameter_name%&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Attributes ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Attribute !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Name&amp;#039;&amp;#039;&amp;#039; || Maximum 100 characters. May contain letters, digits, space and the characters &amp;lt;code&amp;gt;_&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;-&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;/&amp;lt;/code&amp;gt;. Must be unique.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Description&amp;#039;&amp;#039;&amp;#039; || Free text.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Default value&amp;#039;&amp;#039;&amp;#039; || The value used when no query is defined, or when the query cannot supply one. Maximum 2000 characters.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Connection&amp;#039;&amp;#039;&amp;#039; || The connection used to evaluate the query. Leave as &amp;#039;&amp;#039;None&amp;#039;&amp;#039; for a parameter that only has a default value.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Query&amp;#039;&amp;#039;&amp;#039; || An SQL statement returning the value. Only shown once a connection is selected.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Static and query-based parameters ==&lt;br /&gt;
A parameter can work in two ways:&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Static&amp;#039;&amp;#039;&amp;#039; — no connection and no query. The parameter always resolves to its default value. Use this for values that vary between environments but not between runs, such as a target schema name or a file path.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Query-based&amp;#039;&amp;#039;&amp;#039; — a connection and a query are defined. The value is obtained by running the query.&lt;br /&gt;
&lt;br /&gt;
The query may itself contain placeholders; the scenario-level placeholders are available, so a parameter can be derived from the state of previous processings.&lt;br /&gt;
&lt;br /&gt;
== When parameters are evaluated ==&lt;br /&gt;
This is the most important thing to know about parameters.&lt;br /&gt;
&lt;br /&gt;
Query-based parameters are evaluated &amp;#039;&amp;#039;&amp;#039;once, when the processing is planned&amp;#039;&amp;#039;&amp;#039; — not each time a task runs. Two consequences follow:&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;The value is fixed for the whole processing.&amp;#039;&amp;#039;&amp;#039; Every task in the run sees the same value, even if the underlying data changes while the run is in progress. This is usually what you want: it keeps a long run internally consistent.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;A parameter cannot be used to communicate between tasks within a run.&amp;#039;&amp;#039;&amp;#039; Setting a value in one task will not change what a later task sees. Where tasks need to pass values, they must do so through the target system.&lt;br /&gt;
&lt;br /&gt;
Only the parameters actually &amp;#039;&amp;#039;&amp;#039;used by the tasks in the scenario&amp;#039;&amp;#039;&amp;#039; are evaluated. A parameter that no task in the scenario references is not evaluated, so a failing query on an unused parameter will not affect planning.&lt;br /&gt;
&lt;br /&gt;
The values resolved for a run can be seen through &amp;#039;&amp;#039;&amp;#039;Show processing details&amp;#039;&amp;#039;&amp;#039; in the [[Monitor console]]. This is the reliable way to confirm what a parameter evaluated to.&lt;br /&gt;
&lt;br /&gt;
== Default values in planning queries ==&lt;br /&gt;
Where a user-defined parameter is used in a scenario planning query, only its &amp;#039;&amp;#039;&amp;#039;default value&amp;#039;&amp;#039;&amp;#039; is available. The planning query runs before the processing exists, so there is nothing yet for a query-based value to be attached to.&lt;br /&gt;
&lt;br /&gt;
== Practical notes ==&lt;br /&gt;
* Give parameters names that make their scope obvious. They are global, not scoped to a scenario, so a name like &amp;#039;&amp;#039;schema&amp;#039;&amp;#039; will not stay unambiguous for long.&lt;br /&gt;
* Keep a default value on query-based parameters where a sensible fallback exists. A parameter that resolves to nothing produces a statement with an empty substitution rather than an obvious error.&lt;br /&gt;
* Substitution is textual and unquoted — see [[Placeholders#Quoting]]. Quote string values in the statement, and prefer passing parameters as procedure arguments over concatenating them into SQL.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Placeholders]]&lt;br /&gt;
* [[Task]]&lt;br /&gt;
* [[Scenario]]&lt;/div&gt;</summary>
		<author><name>Dafne</name></author>
		
	</entry>
</feed>