Category: System
This activity helps in performing file operation using Javas random access file.
Properties
Name | Description | Mandatory | Initial Value | Runtime Expression | Type | Conditional | |
---|---|---|---|---|---|---|---|
NodeType | Contains the type for node | No | No | No | Output | No | |
Data Type: Text | Comments: | ||||||
Name | Name of the workflow node | Yes | Yes | No | Input | No | |
Data Type: Text | Comments: | ||||||
Description | Description of the workflow node | No | Yes | No | Input | No | |
Data Type: Text | Comments: | ||||||
DisableWow64Redirection | If this property is on, it Turns off automatic wow64 redirection | Yes | Yes | Yes | Input | No | |
Data Type: Boolean | Comments: | ||||||
Operation | Operation to be performed Open file, Close file, Get file position, Set file position, Read line, Write line, Write text, Read binary data, Write binary data | Yes | Yes | No | Input | No | |
Data Type: Text | Comments: | ||||||
LogData | Any string to output to the workflow log | No | No | No | Input | No | |
Data Type: Text | Comments: |
Operations
Open file
Opens a file for editing
Name | Description | Mandatory | Initial Value | Runtime Expression | Type | Conditional | |
---|---|---|---|---|---|---|---|
FileName | The absolute name of the input file. Name may contain environment variables | Yes | No | No | Input | Yes | |
Data Type: Text | Comments: | ||||||
CreationRule | The rule based on which file will be opened. Options: Always Create, Always Open, Create new only, Open existing only | No | Yes | No | Input | Yes | |
Data Type: Whole Number | Comments: One of: Always Create, Always Open, Create New Only, Open Existing Only | ||||||
File | The random access file object | No | No | No | Output | Yes | |
Data Type: Java Object | Comments: | ||||||
Result | Set to true for success, else to false | No | Yes | No | Output | Yes | |
Data Type: Boolean | Comments: | ||||||
ErrorDescription | Set to error description that has occurred or empty | No | No | No | Output | Yes | |
Data Type: Text | Comments: |
Note |
---|
For an example of this Operation, please review this article for a full Walkthrough. |
Close file
Closes an open file
Name | Description | Mandatory | Initial Value | Runtime Expression | Type | Conditional | |
---|---|---|---|---|---|---|---|
File | The random access file object | Yes | No | No | Input | Yes | |
Data Type: Java Object | Comments: |
Note |
---|
For an example of this Operation, please review this article for a full Walkthrough. |
Get file position
Gets the current byte position within a file
Name | Description | Mandatory | Initial Value | Runtime Expression | Type | Conditional | |
---|---|---|---|---|---|---|---|
File | The random access file object | Yes | No | No | Input | Yes | |
Data Type: Java Object | Comments: | ||||||
FilePosition | The file pointer position read or to be set | No | No | No | Output | Yes | |
Data Type: Whole Number | Comments: | ||||||
Result | Set to true for success, else to false | No | Yes | No | Output | Yes | |
Data Type: Boolean | Comments: | ||||||
ErrorDescription | Set to error description that has occurred or empty | No | No | No | Output | Yes | |
Data Type: Text | Comments: |
Set file position
Sets the current byte position within a file for editing
Name | Description | Mandatory | Initial Value | Runtime Expression | Type | Conditional | |
---|---|---|---|---|---|---|---|
File | The random access file object | Yes | No | No | Input | Yes | |
Data Type: Java Object | Comments: | ||||||
FilePosition | The file pointer position read or to be set | No | No | No | Input | Yes | |
Data Type: Whole Number | Comments: | ||||||
Result | Set to true for success, else to false | No | Yes | No | Output | Yes | |
Data Type: Boolean | Comments: | ||||||
ErrorDescription | Set to error description that has occurred or empty | No | No | No | Output | Yes | |
Data Type: Text | Comments: |
Note |
---|
For an example of this Operation, please review this article for a full Walkthrough. |
Read line
Reads the line at the current file position
Name | Description | Mandatory | Initial Value | Runtime Expression | Type | Conditional | |
---|---|---|---|---|---|---|---|
File | The random access file object | Yes | No | No | Input | Yes | |
Data Type: Java Object | Comments: | ||||||
Line | The text line which is read OR to be written | No | No | No | Output | Yes | |
Data Type: Text | Comments: | ||||||
Result | Set to true for success, else to false | No | Yes | No | Output | Yes | |
Data Type: Boolean | Comments: | ||||||
ErrorDescription | Set to error description that has occurred or empty | No | No | No | Output | Yes | |
Data Type: Text | Comments: |
Write line
Writes a line to the file at the current file position
Name | Description | Mandatory | Initial Value | Runtime Expression | Type | Conditional | |
---|---|---|---|---|---|---|---|
File | The random access file object | Yes | No | No | Input | Yes | |
Data Type: Java Object | Comments: | ||||||
Line | The text line which is read OR to be written | No | No | No | Input | Yes | |
Data Type: Text | Comments: | ||||||
Result | Set to true for success, else to false | No | Yes | No | Output | Yes | |
Data Type: Boolean | Comments: | ||||||
ErrorDescription | Set to error description that has occurred or empty | No | No | No | Output | Yes | |
Data Type: Text | Comments: |
Note |
---|
For an example of this Operation, please review this article for a full Walkthrough. |
Write text
Writes text to the file at the current file position
Name | Description | Mandatory | Initial Value | Runtime Expression | Type | Conditional | |
---|---|---|---|---|---|---|---|
File | The random access file object | Yes | No | No | Input | Yes | |
Data Type: Java Object | Comments: | ||||||
Text | The text to be written | No | No | No | Input | Yes | |
Data Type: Text | Comments: | ||||||
Result | Set to true for success, else to false | No | Yes | No | Output | Yes | |
Data Type: Boolean | Comments: | ||||||
ErrorDescription | Set to error description that has occurred or empty | No | No | No | Output | Yes | |
Data Type: Text | Comments: |
Read binary data
Reads binary data from a file at the current file position
Name | Description | Mandatory | Initial Value | Runtime Expression | Type | Conditional | |
---|---|---|---|---|---|---|---|
File | The random access file object | Yes | No | No | Input | Yes | |
Data Type: Java Object | Comments: | ||||||
ByteCount | The number of bytes read/written or to be read/written | Yes | No | No | Input | Yes | |
Data Type: Whole Number | Comments: | ||||||
Bytes | The bytes read or to be written | No | No | No | Output | Yes | |
Data Type: Whole Number Array | Comments: |
Write binary data
Writes binary data to a file at the current file position
Name | Description | Mandatory | Initial Value | Runtime Expression | Type | Conditional | |
---|---|---|---|---|---|---|---|
File | The random access file object | Yes | No | No | Input | Yes | |
Data Type: Java Object | Comments: | ||||||
ByteCount | The number of bytes read/written or to be read/written | Yes | No | No | Input | Yes | |
Data Type: Whole Number | Comments: | ||||||
Bytes | The bytes read or to be written | No | No | No | Input | Yes | |
Data Type: Whole Number Array | Comments: | ||||||
ErrorDescription | Set to error description that has occurred or empty | No | No | No | Output | Yes | |
Data Type: Text | Comments: |
Comments
0 comments
Please sign in to leave a comment.