Versions Compared

Key

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

Insert excerpt
_Banners
_Banners
namephixScript
nopaneltrue

Overview

PhixFlow makes available a number of internal variables for use within expressions and scripts. The table below is a comprehensive list of all the internal variables and their meaning.

You cannot use all the internal variables in all contexts. For example, an expression for SQL on a Database Collector can use a different set of internal variables than an expression for a Attribute. The context of the table type also matters, so a calculate table can take different variables to an aggregate table. For information about table types, see Understanding Tables and Pipes and  and Types of Table and When to Use Them.

To find out which internal variables are available, see the help for the specific property page, which are listed on Property Pages.

Table of Internal Variables

Internal VariableDescription
Anchor
_action
_action
_action

_action is available on any Expression within table actions and gives the name of the Action.

Anchor
_cache
_cache
_cache

Within Expressions expressions evaluated for CalculateBySet stream and aggregate streamtable and Aggregate table, it is possible to set up Cached Attributes which can be used to store and retrieve cached data while processing a Candidate Set. To refer to a cached attribute value, e.g. the sum of invoice values so far while processing a Candidate Set, use an expression like _cache.invoiceTot + _current.invoiceValue.

See also Understanding Tables and Pipes and Table properties.

Anchor
_cacheRecord
_cacheRecord
_cacheRecord

This variable is available when using an in-memory stream table and contains the record matching the key attributes.

Anchor
_cacheValue
_cacheValue
_cacheValue

When using the attribute function cache _cacheValue contains the value retrieved from the cache associated with the key value supplied. This variable is only available within the function evaluation; that is, the value retrieved is only available in the list of expressions used in the call to the function cache.

Anchor
_context
_context
_context

Used as a prefix to reference the context parameter values that have been configured within a Stream Action table-action using the notation _context.<ContextParameter Name>. Please ; see Stream Action Form for more details on how to use it Table-Action.

Anchor
_count
_count
_count

_count provides the number of Stream Items records in the current Candidate Setcandidate set.  _count is used on CalculateBySet  and Aggregate Tablesand Aggregate tables.

If you want to know how many items have been returned by a Lookup Pipe or the number of items returned by a specific Pipe for the current Candidate Set then use the countElements() function.

Anchor
_current
_current
_current

For stream attribute expressions, _current is only available when a Stream is table is configured to carry out Calculate by Set CalculateBySet processing.

_current refers to the current input Stream Item record being processed within the Candidate Setcandidate set.

Note
Note:

If you attempt to refer to the

Stream Item

record using the name of the

Pipe

pipe e.g. in.accountNum that

Expression

expression would return an

Array

array of all the values of accountNum in the current

Candidate Set for Pipe

candidate set or pipe in.

Instead of using in.accountNum you should use _current.accountNum to return the current input.


_current is most often used in Stream Attribute Expressions attribute expressions but is also used in objects connected to Tables e.g. Pipes, Database Collectors and File Collectorstables, such as pipes, database collectors and file collectors.

You can also use _current in expressions for the CSS Properties of grid rows.

Anchor
_dragSource
_dragSource
_dragSource

Used as a prefix to reference the values that are being dragged within a Stream Action table-action using the notation _dragSource.<AttributeName>.

See Also Drag Types and Drop Targets and Stream Table-Action Form.

Anchor
_dropPosition
_dropPosition
 _dropPosition

A record on a stream view that is configured with a Drag Type can be dragged onto a component that is:

  • backed by a streamtable
  • configured with a Drop Target action.

For more information, see Drag Types and Drop Targets.

Use this variable for the drop target action to provide co-ordinate values:

  • _dropPosition.left - the number of pixels from the left hand edge of the dropTarget
  • _dropPosition.top - gives the number of pixels from the top of the drop target. 

When  _dropPosition is used for a:

  • card container: the _dropPosition is relative to the top-left of the area within which cards are displayed, excluding the header for the card container.
  • area component: the _dropPosition is relative to the  the top-left co-ordinates of the component on which it was dropped. Position is given as the top-left co-ordinates. 
Anchor
_dropTarget
_dropTarget
_dropTarget

Used as a prefix to reference the values that are having data dropped onto them within a Stream Action table-action using the notation _dropTarget.<AttributeName>

See Also also Drag Types and Drop Targets and Stream  and Table-Action Form.

_edited_edited is available in formatting rules for components. It is true if the form has unsaved data
Anchor
_error
_error
_error

_error contains the details of one or more error messages, and may be used in various contexts.

_error values are:

  • message - The text of the message.
  • sequence - The sequence number of the message within the log file.
  • datetime - The date and time that the message was generated.
  • type - The type of the message; one of 'ERROR', 'WARNING' or 'INFO'.


Anchor
_errors
_errors
_errors

_errors contains the number of error messages generated during the running of a Task Plan.

This variable can be used in the Task Plan user notification rules to specify for example that an email should only be sent if there are more than a certain number of error messages.

This variable can also be used in the subject line and email body expressions.

Anchor
_field
_field
_field

_field contains properties of a single field or attribute, and is set in contexts where stream table-actions, fields or attributes are processed one at a time. For example, use _field in:

  • stream attribute expressions
  • stream view attribute label expressions
  • formatting rule expressions.

In stream table-actions that are double-click or in-cell actions,  use _field to access the name and label of a column or to refer to the value in the cell.

Use _field to access the name and value of an input field for components that are:

  • either input fields
  • or field containers that have an input field. 

Values are:

  • name: The name of the field. This field is set in all contexts in which _field is defined.
  • value: The value of the field. This field is not set in all contexts. See individual form help pages for details.
  • labels: The list of header labels associated with the field. This field is not set in all contexts. See individual form help pages for details.

Anchor
_fieldName
_fieldName
_fieldName

_fieldName can be used within Stream Attribute Expressionsattribute expressions. It represents currently processed stream attribute.

_fieldName contains the name of the field (stream attribute name) whose expression is currently being evaluated. This can be helpful for debug messages or user generated error messages.

Anchor
_file
_file
_file

_file contains the details of one or more files that have been processed.

The file details are:

  • name: The name of the file, excluding the directory.
  • directory: The directory containing the file.
  • directory: The type of the file; one of 'INPUT' (Imported), 'OUTPUT' (Exported).
Anchor
_fileCount
_fileCount
_fileCount

_fileCount contains the number of files processed during the running of a Task Plan.

This variable can be used in the Stream Action table-action result message.

Anchor
_fileName
_fileName
_fileName

_fileName can be used within stream Attribute Expressions attribute expressions in cases where the Table has data coming from a File Collector. It contains the name of the file that provided the current input stream item ( record).

_fileName must be prefixed with the name of the pipe linking the file collector to the stream table e.g. in._fileName.

Anchor
_filePathList
_filePathList
_filePathList

_filePathList is set to a list of the files that were received as attachments to the same email as that of the attachment currently being processed.

The full path of each file is shown. Individual file paths are separated by semi-colons (;).

This variable is only populated when reading from a File Collector with the Source Type set to Managed File

Anchor
_files
_files
_files

Contains a list of names of files that have been uploaded by the Stream Action.table-action

Anchor
_fileUploadId
_fileUploadId
_context._fileUploadId
Contains the Id of the FileUpload Process, used to identify the location of the files that have been uploaded by the Stream Action.table-action

Anchor
_form
_form
_form

Available when a user is entering values in a form - a type of stream view. Current form view values can be referred in Selection Views by using the _form variable (e.g. in background filters). Can be also referred in Stream Actionstable-ations.

Anchor
_formMappings
_formMappings
_formMappings
Used as a prefix to reference the form mapping values that have been configured within a Stream Action table-action using the notation _formMappings.<FormMapping Name>. Please see Stream Action Form for more details on how to use it; see Table-Action.
Anchor
_fromAddr
_fromAddr
_fromAddr

_fromAddr is set to the email address from which this email was sent.

This variable is only populated when reading from a File Collector with the Source Type set to Managed File

Anchor
_fromDate
_fromDate
_fromDate

Refers to the start date and time of the Stream Set recordset currently being referenced / calculated. For Periodic Streams the periodic tables the time element will be zero (i.e. midnight at the start of the day).

_fromDate is most often used in the SQL field of Database Collectors to restrict the query to return data based on the dates being processed. It is also used in the Name field of File Collectors, File Exporters etcExporters etc. to generate date specific names.

Anchor
_grid
_grid
_grid

A record currently selected on a grid. Can be referred in Stream Actions table-actions by using the _grid variable.
Anchor
_importedDate
_importedDate
_importedDate

_importedDate is set to the date and time that the file was received by or uploaded to PhixFlow

It is only populated when reading from a File Collector with the Source Type set to Managed File

Anchor
_inputMultiplier
_inputMultiplier
_inputMultiplier

An Input Multiplier Array can be generated by entering an Expression expression into the Input Multiplier field for a Streama tables Input Multiplier option. This causes the Stream table to repeat its entire processing cycle for each entry in the Input Multiplier Array to create a single Stream Setrecordset. During  During this processing, _inputMultiplier refers to the element in the Input Multiplier Array that has initiated the current processing cycle.

_inputMultiplier is most often used in Stream Attribute Expressions attribute expressions but is also used in objects connected to Streams tables especially the SQL field on a Database Collector.

Anchor
_itemNumber
_itemNumber
_itemNumber

This provides the position of the current Stream Item recird within the Candidate Set being candidate set being processed.

_itemNumber is used within Expressions on Calculate by Set Streams and CalculateBySet tables and is especially useful for de-duplicating data.

_kanban

When dragging a card on a kanban card container, _kanban contains information about the target card.

  • value: The value of the kanban attribute in the target kanban column.
  • attribute: The kanban attribute name of the card container.
  • heading Value: The value of the kanban heading attribute in the kanban column.
  • heading Attribute: The kanban heading attribute name of the card container.
Anchor
_key
_key
_key

_key is made available on Mergemerge, Calculate calulate-by Set and Aggregating Streams-set and aggregating tables. _key is an Array of the values of the current Group By Attributes which were used to construct the Candidate Set. E.g if the Group By Attributes were AccountNum and InvoiceNum then _key[1] would refer to the AccountNum and _key[2] to the InvoiceNum for the current Candidate Set.

_key is most often used in Stream Attribute Expressionsattribute expressions.

Anchor
_keyList
_keyList
_keyList

_keyList is made available in Collector collector statements when a Collector collector is connected using a Directed Pipe directed pipe as an input into a Merge merge or Aggregating Streamaggretating table. _keyList is an Array array of the first elements of many Group-By Attribute values which are being used to construct the Candidate Set.

E.g if the Group By Attribute was AccountNum, then _keyList would be set to an array of account numbers: ['ac1','ac2','ac3'] - the number of elements in the array is variable, up to the workerSize specified on the pipe from the collector to the Merge/Aggregating Streammerge or aggregating table .

The _keyList would then be used in the Collector collector statement, e.g.

	select * from a_table
	where a_field in ({_keyList})
	order by a_field
Anchor
_lineNumber
_lineNumber
_lineNumber

_lineNumber can be used within Stream Attribute Expressions attribute expressions in cases where the Stream table has data coming from a File Collector.

_lineNumber contains the position of the current input Stream Item within record within the file.

The _lineNumber attribute is not available for File Collectors of Type File Details Only

_lineNumber must be prefixed with the name of the Pipe linking the File Collector to the Stream table e.g. in._lineNumber.

Anchor
_messages
_messages
_messages

_messages contains the total number of messages generated during the running of a Task Plan.

This variable can be used in the Task Plan user notification rules.

This variable can also be used in the subject line and email body expressions.

Anchor
_modifiedDate
_modifiedDate
_modifiedDate

_modifiedDate can be used within Stream Attribute Expressions attribute expressions in cases where the Stream table has data coming from a File Collector.

_modifiedDate contains the datetime of when the file that provided the current input Stream Item record was last modified.

The last modified time of a single file residing within a .gz or a .tgz container can not be determined by phixflow, instead the datetime of when the corresponding gz/tgz container was created will be returned.

_modifiedDate must be prefixed with the name of the Pipe linking the File Collector to the Stream table e.g. in._modifiedDate.

Anchor
_out
_out
_out

Refers to the Stream Item record currently being created. E.g. to use the value of a Stream Attribute attribute "account" that has already been calculated, use _out.account.

Note that you should ensure that the Stream Attribute attribute will have been evaluated before it is referred to.

_out is most often used in Stream Attribute attribute Expressions but is also used in objects connected to Streams tables e.g. Pipes, Database Collectors and File Collectorspipes or collectors.

Anchor
_outputMultiplier
_outputMultiplier
_outputMultiplier

An Output Multiplier Array  array can be generated by entering an Expression into the Output Multiplier field for a Stream table. The Output Multiplier is calculated at the start of each Candidate Set candidate set and causes the Stream table to repeat its output Stream Item record generation processing step for each entry in the Output Multiplier Array.

Note that unlike the 97734387 the _inputMultiplier which repeats the entire Stream table processing for each Array array entry (e.g. refetching data from Input Pipes) the Output Multiplier just repeats the final output Stream Item record calculation. During this processing, _outputMultiplier refers to the element in the Output Multiplier Array that is being used for the current output Stream Itemrecord.

Anchor
_params
_params
_params

Currently this internal variable can only be used in Stream Action Validation table-action Validation Expressions. It refers to the prompted action attribute values that are manually entered by the user when an action is executed.

Anchor
%PASSWORD%
%PASSWORD%
%PASSWORD%

%PASSWORD% is an internal variable designed to enable a collector (or exporter) to pass a stored value to an external location - in this instance the Password which is stored with the httpDatasourceInstance.

Anchor
_path
_path
_path

_path can be used within Stream Attribute Expressions attribute expressions in cases where the Stream table has data coming from a File Collector.

_path contains the full path of the file that provided the current input Stream Itemrecord.

_path must be prefixed with the name of the Pipe linking the File Collector to the Stream table e.g. in._path.

Anchor
_pipeItemNumber
_pipeItemNumber
_pipeItemNumber

_pipeItemNumber is available on Calculate by Set Streamstables and is useful when the Stream Table has two or more Input Pipes.

_pipeItemNumber is similar to 97734387 to _itemNumber but returns the position of the current input Stream Item record within the Pipe being processed.

Anchor
_pipeName
_pipeName
_pipeName

_pipeName contains the name of the current pipe when processing Input Stream Items input records for Calculate by Set and Calculate Streamstables. Note that this is useful since these Stream table functions process their Input Pipes sequentially and it may be necessary to know which Pipe is being processed (e.g. because their Stream Attributes attributes have different names).

Note: if using this in a merge stream table with multiple pull pipes coming in, _pipeName value will be null if the record exists on more than one pipe.

Anchor
_prompt
_prompt
_prompt

Used within filters with notation _prompt.LABELNAME to indicate that a value will be prompted for in a user popup window. The popup window will display the LABELNAME for which the corresponding value must be entered before the filter is fully evaluated.

LABELNAME must contain all English alphanumeric characters or underscore and begin with an alpha character.

Note

Each popup field will only accept a single string literal. Use other functions within the filter expression to evaluate the user input to other datatypes or arrays. For example:

  •  toNumber(_prompt.USERINPUTNUMBER)
  • split(_prompt.USERINPUTARRAY,",")


Anchor
_range
_range
_range
_range contains excel data range expression used to read a record from an Excel file.
Anchor
_response
_response
_response

_response contains the response (success or failure) returned from an HTTP Export.

It is only populated in this context.

Anchor
_rootDirectory
_rootDirectory
_rootDirectory

_rootDirectory can be used within Stream Attribute Expressions attribute expressions in cases where the Stream has tablehas data coming from a File Collector.

_rootDirectory contains the root base directory (if specified) of the file that provided the current input Stream Item record concatenated with the value evaluated in the Collector's 'Input Directory Expr' field.

_rootDirectory must be prefixed with the name of the Pipe linking the File Collector to the Stream table, e.g. in._rootDirectory.

Anchor
_runId
_runId
_runId

_runId contains a unique identifier of an individual stream setrecordset.

Anchor
_screen
_screen
_screen

_screen is available in formatting rules for components. It provides information about the maximised state of the dashboard screen that the component is on. 
_screen  has the following values:

  • maximised
    • true if the dashboard screen is maximised
    • false the dashboard screen is not maximised.
HTML Comment

The following values are planned for a future release of PhixFlow. These specify the position of the dashboard screen on the screen space.

  • top - the number of pixels from the top of the screen space to the top edge of the dashboardthe screen 
  • left - the number of pixels from the left edge of the screen space to the left edge of the dashboardthe screen 
  • width - the current width of the dashboardthe screen 
  • height - the current height of the dashboardscreen.


_selected_selected is available in formatting rules for components. It is true if the current item is selected. _selected is particularly useful for card components.
Anchor
_sentDate
_sentDate
_sentDate

_sentDate is set to the date and time that the file was sent to PhixFlow

It is only populated when reading from a File Collector with the Source Type set to Managed File

Anchor
_size
_size
_size

_size can be used within Stream Attribute Expressions attribute expressions in cases where the Stream table has data coming from a File Collectorfile collector.

_size contains the size of the file that provided the current input Stream Item records in bytes.

The size of a single file residing within a .gz or a .tgz container can not be determined by PhixFlow, instead a size of -1 will be returned.

_size must be prefixed with the name of the Pipe linking the File Collector to the Stream table e.g. in._size.

Anchor
_source
_source
_source

_source contains the source of the set of files being collected. Possible values are:

  • email: The files were received as attachments to an inbound email.
  • upload: The files were manually upoadeduploaded

It is only populated when reading from a File Collector with the Source Type set to Managed File

Anchor
_subDirectory
_subDirectory
_subDirectory

_subDirectory can  can be used within Stream Attribute Expressions attribute expressions in cases where the Stream table has data coming from a File Collectorfile collector.

_subDirectory contains the sub directory relative to the 97734387 _rootDirectory in which the corresponding file that provided the current input Stream Item record resides.

_subDirectory must be prefixed with the name of the Pipe linking the File Collector to the Stream table e.g. in._subDirectory.

Anchor
_subject
_subject
_subject

_subject is set to the subject of the email when a File Collector is processing a file received as an attachment to an email.

This variable is only populated when reading from a File Collector with the Source Type set to Managed File

Anchor
_success
_success
_success

_success contains a true or false value depending on the outcome of an HTTP Export.

It is only populated in this context.

Anchor
_suspended
_suspended
_suspended

_suspended contains the suspended status of a Task Plan when it has finished running.

This variable can be used in the Task Plan user notification rules to specify for example that an email be sent to a user to tell them that a problem needs to be investigated and the Task Plan must be un-suspended before it can run again.

This variable can also be used in the subject line and email body expressions.

Anchor
_system.instance
_system.instance
_system.instance

_system.instance returns the name of the current instance. See System Configuration for details about setting the instance name.

Anchor
_taskPlan
_taskPlan
_taskPlan

_taskPlan contains the name of a Task Plan and can be used to include the name of the task plan in the user notification rules, subject line or body of emails generated by the task plan.

Anchor
_this
_this
_this

This variable refers to the entire Candidate Set. Within a Merge the expression '_this.name' would retrieve the name field from all records from all pull pipes. For a Merge this is equivalent to referring to the 'name' attribute without specifying a pipe.

For a Calculate with multiple Input Pipes the expression '_this.name' would retrieve the name field from all records on the pull pipe currently being processed (since each pipe on a calculate is processed separately).

Anchor
_toAddress
_toAddress
_toAddress

_toAddress is set to a list of the email addresses to which this email was sent. The addresses are separated by semi-colons (;).

This variable is only populated when reading from a File Collector with the Source Type set to Managed File

Anchor
_toDate
_toDate
_toDate

Refers to the end date and time of the Stream Set currently recordset currently being referenced / calculated and is used in a similar way to 97734387 _fromDate.

Anchor
_type
_type
_type

This has been renamed to 97734387_outputMultiplier

Anchor
_url
_url
_url

The _url internal variable is set for HTTP collector and exporter URL expressions to the value of the URL field on the httpDatasourceInstance used.

It is only populated in this context.

Anchor
_user
_user
_user

The _user internal variable is set in all contexts to the details of the current logged in user.

_user has the following values:

  • name: The user's full name, e.g. John Smith
  • firstName: The user's first name, e.g. John
  • lastName: The user's last name, e.g. Smith
  • username: The user's username (login name), e.g. jsmith
  • fullUsername: The user's domain-qualified username, e.g. jsmith@local, jsmith@external
  • emailAddress: The user's email address, e.g. jsmith@megacorp.com
  • mobileNumber: The user's mobile phone number
  • language: The user's language, e.g. English (GB)
  • userGroups: The user's user groups, as a single string containing the names of the user's groups separated by commas, e.g. "Superuser,Administrator"
  • system: This is set to 0 for a normal use, and 1 if this is the system user.The system attribute is set in contexts where there is no logged in user, e.g. in Stream Attribute Expressionsattribute expressions.
Anchor
%USERNAME%
%USERNAME%
%USERNAME%

%USERNAME% is an internal variable designed to enable a collector (or exporter) to pass a stored value to an external location - in this instance the Username which is stored with the httpDatasourceInstance.

Anchor
_Value
_Value

_value

The value held within the form field.

Anchor
_warning
_warning
_warning

_warning contains the details of one or more warning messages, and may be used in various contexts.

See 97734387 _error for message properties.

Anchor
_warnings
_warnings
_warnings

_warning contains the number of warning messages generated during the running of a Task Plan.

This variable can be used in the Task Plan user notification rules to specify for example that an email should only be sent if there are more than a certain number of warning messages.

This variable can also be used in the subject line and email body expressions.

Anchor
_worksheet
_worksheet
_worksheet
_worksheet contains the name of the current excel worksheet the record was read from.
Anchor
_worksheets
_worksheets
_worksheets
_worksheets contains a list of names of available excel worksheets on the excel file. This variable is only available in File Collectors' Excel Data Range Expressions.