Skip to main content

Read File (B2WS Client)

The Read File (B2WS Client) node retrieves one or more files from a connected B2Win Suite Client workstation file system and brings them into the workflow as NodeFile outputs.

Overview​

Use this node when files required by the workflow originate on an end-user's local workstation or desktop environment rather than the central B2Win Suite server. Through an active WebSocket connection, the B2Win Suite server requests and downloads the file directly from the designated client machine without requiring network share mounts or manual file uploads.

Purpose​

  • Retrieve local files (spreadsheets, logs, scanned files, exports) from a user's workstation.
  • Integrate desktop-originating files into automated server-side workflows.
  • Optionally extract raw textual content directly into workflow properties for downstream expression evaluation.

Configuration​

FieldDescription
B2Win Client*The B2Win Client service configuration used to locate and connect to the target client. You can select an existing client configuration or click New Configuration to define one.
Enter file path on client:*Full local file path on the workstation (e.g., C:\example_folder\examplefile.csv). Supports dynamic workflow properties such as ${EXEC_BY_USERNAME}.
Read file content to propertyWhen enabled, reads textual file content into the CLIENT_FILE_READER_CONTENT property. Automatically disabled for binary file formats.

Client Service Selection​

The B2Win Client field connects to a configured B2Win Client service:

  • CurrentOnlineClient: Uses the workstation that the executing user chose for themselves in Me > My Services. Each user must make this choice before the node can run for them.
  • Your own configuration: Uses a specific workstation, or the first online workstation, of the user saved in the service.

Outputs​

OutputData TypeCollectionDescription
OutputFileNodeFileFalseThe file retrieved from the B2Win Suite Client workstation, saved to the workflow execution working directory.

Properties​

PropertyFlowDataTypeDescription
CLIENT_FILE_READER_FILEJsonNodeMetadata JSON describing the read client file.
CLIENT_FILE_READER_CONTENTStringRaw text content of the file (populated when Read file content to property is checked).
B2WS_CLIENT_READ_FILE_FILE_NAMEStringName of the file retrieved from the client.
B2WS_CLIENT_READ_FILE_FILE_PATHStringFull path of the file on the client workstation.
B2WS_CLIENT_READ_FILE_FILE_SIZELongSize of the file in bytes.
B2WS_CLIENT_READ_FILE_FILE_LAST_MODIFIEDLongLast modification timestamp of the file.
B2WS_CLIENT_READ_FILE_FILE_CLIENTStringClient display name.
B2WS_CLIENT_READ_FILE_FILE_CLIENT_HOSTStringClient hostname.
B2WS_CLIENT_READ_FILE_FILE_CLIENT_USERNAMEStringOperating system username of the client user.
B2WS_CLIENT_READ_FILE_FILE_CLIENT_IDIntegerSystem ID of the target client.

Processing Logic​

  1. Client Resolution: Evaluates the configured client service to determine the target workstation. Fails with a NodeProcessingException if no client is available or connected.
  2. Path Evaluation: Resolves any embedded property expressions in the path (e.g., ${EXEC_BY_USERNAME}).
  3. Remote Retrieval: Issues a ClientGetFile command across the active WebSocket channel to the target workstation's UserClientActor.
  4. File Ingestion: Downloads the file into the current workflow iteration's temporary working directory and wraps it in a NodeFile instance.
  5. Content Extraction: If Read file content to property is enabled and the file is text-based, reads and populates the file contents into CLIENT_FILE_READER_CONTENT.
  6. Dispatch: Emits the NodeFile and associated client properties downstream.

Examples​

Reading User-Specific Scans​

C:\signatures\${EXEC_BY_USERNAME}_scanned_signature.jpg

At runtime, ${EXEC_BY_USERNAME} is replaced with the username of the iteration runner (e.g., C:\signatures\john_scanned_signature.jpg), retrieving that user's personal file from their connected workstation.

Reading Desktop Exports​

C:\Users\Administrator\Desktop\daily_export.csv

Retrieves the export file from the workstation desktop and passes it downstream to transformation or database import nodes.

On the User's Computer​

This node needs the B2Win Suite Client to be installed and signed in on the target computer. What the person at that computer sees and controls is described in the client documentation:

  • Approving Actions: Require Approval and Auto Approve modes, and the Approve / Skip buttons.
  • File Access: the folders the client is allowed to use. The file must be on the user's File Access list, or the user is asked to allow it.
  • Activity: progress, history and stopping a running action.