Kind: Class
Source: Pams/Web/Pams.Web/Client/app/models/shared/files-port.model.ts (line 2)
Part of: Pams
PortData represents file-port data in the shared client model layer. Its clone() method creates a separate PortData instance for workflows that need to copy file-port state without directly reusing the original object.
Methods
| Method | Signature | Returns |
|---|---|---|
clone | clone(init: Partial<PortData>) | void |
Properties
| Property | Type |
|---|---|
IsOpened | boolean |
ClientSerial | number |
ExcuteFileSide | boolean |
RefrenceTypeID | number |
RefrenceID | number |
Diagram
mermaidgraph LR Source[PortData instance] --> Clone[clone()] Clone --> Copy[Copied PortData instance] Source --> FilePortModel[files-port.model.ts]
Usage
tsimport { PortData } from './models/shared/files-port.model';
// Obtain a PortData instance from the file-port workflow.
declare const sourcePortData: PortData;
// Create a copy before passing data to another operation.
const copiedPortData = sourcePortData.clone();
// Keep the original available for the current workflow.
processPortData(copiedPortData);
function processPortData(portData: PortData): void {
// Handle the copied file-port data.
}
AI Coding Instructions
- Use
clone()when a workflow needs a copiedPortDatainstance rather than sharing the existing instance. - Keep
PortDatahandling within the shared file-port model flow defined byfiles-port.model.ts. - Check the
clone()implementation before relying on whether nested values are copied or retained by reference. - Preserve the
PortDatatype when passing copied data between client components and services.
Relationships
- IMPORTS →
File
Used by
1 reference from 1 file. Each is a place in this repository where the symbol is actually used — go read one rather than trusting an example.
Imported by (1)
FilesPortService—Pams/Web/Pams.Web/Client/app/services/shared/files-port-service.service.ts:1
Was this page helpful?