Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For you to get a better understanding on what it means and how it can simplify your SIL™ usage throughout your Confluence integration, see the following usage examples.

Usage in the scope of the Page

Persistent variables are introduced via the persistent keyword. In order to save space, we do not allow persistent and constant modifiers to be used on the same variable, so you can't have both. A persistent variable is always modifiable.

...

Info

Note

  • When you create a copy of the page it will not keep the number.

  • The same if you restart your Confluence instance. 

  • Only admins can see the page count.


Usage in the Global Scope

If you need to check State execution between a SIL™ script from one execution to another, you can do this using the persistent variables.

...

Code Block
languagesql
persistent number counter = 0; 
logPrint("ERROR", "\n**********\" + (counter++) + "\n**********\n");
 
const number pageId = getPage("PP", "PSC Guide");
setPersistentVar(pageId, "counter", 42);

Helper routines

There are two helper routines available to ease your work with persistent variables. 

...

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "ps_conf"


We've encountered an issue exporting this macro. Please try exporting this page again later.