Bridging Data Points

The Bridging point manager exposes its runtime state as ordinary GENESIS data points under the bwx: prefix and can be found in the data browser under Bridging, so any client that can read a point can read Bridging status, and any client that can write a point can start a transaction.

For what they mean and how to use them, see Bridging Logs and Statistics; to display them, see Monitoring Bridging Activities as a Client.

The bwx: points are browsable in Data Browser and Data Explorer under Bridging, so you rarely need to enter a point name in full. The Bridging scheduler publishes its own points under the bwxs: prefix, described in Scheduler Points.

Server Statistics

These counters describe the transaction engine as a whole and are addressed relative to the point manager—for example: bwx:@@RunningTransactionCount.

Point

Description

@@RequestedTransactionCount

Number of transaction requests that the engine has received. A request waiting in the scheduler queue counts only when the engine pulls it from the queue.

@@RunningTransactionCount

Number of transactions executing now.

@@SuccessfulTransactionCount

Number of transactions that completed with a success result.

@@FailedTransactionCount

Number of transactions that completed with a failure result.

@@CancelledTransactionCount

Number of transactions that were canceled before completing.

@@RejectedTransactionCount

Number of requests that the engine declined, for example because a similar transaction was already running or the queue was full.

@@DehydratedTransactionCount

Number of transactions currently hibernating.

@@TransactionQueueLength

Number of requests waiting in the engine's own queue for a free execution slot. Requests from @@Execute, the Bridging Viewer, and Test Transaction wait here. Triggered requests wait in the scheduler queue instead, which bwxs:QueueLength reports, so this point can stay at 0 while every slot is busy.

@@Server.Load

Current load level of the engine, as reported to a distributed scheduler.

@@Online

Indicator of whether the point manager is online.

Scheduler Points

The Bridging scheduler holds triggered transaction requests in its queue until an engine has a free execution slot. The scheduler publishes its state under the bwxs: prefix, for example bwxs:QueueLength, on the computer where the scheduler runs. These points do not appear in Data Browser or Data Explorer, so enter the point name in full. When the scheduler runs on another computer, put that computer's name in front of the point name, as for any point on a remote server.

Point

Description

QueueLength

Number of requests waiting in the scheduler queue. Requests from triggers and from @@Schedule wait here until an engine pulls them. A value that keeps rising means that requests arrive faster than the engines can run them. In a Distributed Load-Balancing Schedulers Network, read it from the active scheduler because a standby scheduler reports 0.

@@Online

Indicator of whether the scheduler point manager is online.

@@Active

Indicator of whether the scheduler has loaded a Transaction Configuration with Active Configuration selected. To find out whether this scheduler is the active one in a Distributed Load-Balancing Schedulers Network, read @@State.

@@State

Current mode of the scheduler: LocalScheduler, ActiveRedundant (the active scheduler in a Distributed Load-Balancing Schedulers Network), StandByRedundant (a standby scheduler), Unknown while the scheduler starts, or Misconfigured.

Per-Transaction Points

These points are exposed beneath each transaction—for example, bwx:MyFolder/LogTankValues.@@LastExecutedStatus.

Point

Description

@@Execute

Writable. Writing a value greater than 0 submits the transaction directly to the engine on this server, ahead of any requests waiting in the scheduler queue. Bind it to a button or a data entry object with DataEntry enabled to give an operator a manual start.

@@Active

Indicator of whether the transaction is currently executing.

@@LastExecuted

Local time at which the transaction last executed.

@@LastExecutedUTC

UTC time at which the transaction last executed.

@@LastExecutedStatus

Result of the most recent execution.

@@LastExecutionInterval

How long the most recent execution took.

@@LastError

Last error text reported by the transaction.

@@ExecutionLog

Log record of the most recent execution.

@@ExecutionLogs

Log records of the recent executions.

@@Schedule

Writable. Writing a value greater than 0 adds a request for the transaction to the end of the active scheduler's queue, among the triggered requests. In a Distributed Load-Balancing Schedulers Network, any engine in the network can run it. The active scheduler must be online, or the transaction does not start.

@@LastExecutedStatus Values

The @@LastExecutedStatus tag is a system status tag provided by Bridging for each transaction. It indicates the execution result or state of the most recent transaction run.

The following status codes are available:

Status Code

Status

Description

0

In queue

The transaction is queued or waiting for execution.

1

Running

The transaction is currently executing.

2

Cancelled

The transaction execution was canceled or aborted before completion.

3

Executed successfully

The transaction completed successfully without errors.

4

Executed and failed

The transaction completed but failed due to an error.

Variable Points

Global and local variables are addressed as datasets, one cell at a time. Rows and columns are zero-based, and a column may be given by index or by name. Learn more

Point

Description

bwx:global@<name>.Row[<index>].Col[<indexOrName>]

A cell of a global variable. Readable and writable.

bwx:local@<name>.Row[<index>].Col[<indexOrName>]

A cell of a local variable, in the context of the running transaction.

Example: read the first cell of a global variable named Debug.

bwx:global@Debug.Row[0].Col["Message"]

An Automatic Variable recalculates its value when read and cannot be written. An attempt to write one is refused and recorded in the trace log.

The .Query Dataset Point

bwx:.Query is a dataset point that returns transaction log details for a Table control or any other dataset consumer. Select the query table you want, choose the fields to return as columns, and filter on the execution you are interested in. Learn more

Query table

Description

ActivityTraces

One row per activity execution within a transaction instance.

DataStepTraces

One row per data step recorded within an activity. Available only when Execution Log includes data step tracing.

ActivityTraces returns the following fields.

Field

Description

WorkflowInstanceID

Identifier of the transaction instance. Filter on this field to scope the result to one execution.

ID

Identifier of the activity entry within the instance.

EntryTime

Time at which the entry was written.

ActivityName

Name given to the activity in the diagram.

ActivityTypeName

Type of the activity.

ActivityState

State of the activity execution.

ActivityStartTime

Time at which the activity started.

ActivityEndTime

Time at which the activity ended.

ActivityRunDuration

How long the activity ran.

ActivityLastError

Error reported by the activity, if any.

NextActivityID

Entry identifier of the activity that ran next.

DataStepTraces returns the following fields.

Field

Description

WorkflowInstanceID

Identifier of the transaction instance.

ActivityID

Entry identifier of the activity that produced the step. Filter on this field together with WorkflowInstanceID to scope the result to one activity.

ID

Identifier of the data step entry.

EntryTime

Time at which the step was recorded.

DataStepType

The step the activity performed, such as a parameter or expression evaluation.

DataStepEntry

The value or message the step produced.

Performance Counters

The Bridging point manager also publishes Windows performance counters, which report the same engine measurements to system monitoring tools. In Performance Monitor, they are in the GENESIS Bridging Point Manager category.

Counter

Description

Total # of Received Transaction Requests

Transaction requests received.

Total # of Processed Transaction Requests

Transaction requests processed.

Total # of Enqueued Transaction Requests

Requests from @@Execute, the Bridging Viewer, and Test Transaction that the engine has received and not yet taken into its queue. The engine takes them in at least every half second, so this value is usually 0.

Running Transactions Count

Transactions currently executing.

Dehydrated Transactions Count

Transactions currently hibernating.

Transaction Queue Size

Size of the engine's transaction queue. The same value as bwx:@@TransactionQueueLength.

Scheduler Queue Size

Size of the scheduler queue, as a scheduler last reported it to this engine. With Local Scheduler, the same value as bwxs:QueueLength.