Connect-File method |
Use the Connect-File method to invoke a Connect File rule (Rule-File-Connect rule type). The rule can create, add contents to, or close an output file.
This method has three parameters:
Parameter |
Description |
ConnectorName |
Enter the Connector Name (second key part) of a Connect File rule, an instance of the Rule-Connect-File rule type. The system uses the class of the step page as the first key part of the rule. |
Operation |
Select to identify the source of output to be added to the file.
|
Parameter |
Identify the key of the Operation parameter. Identify the property, key of the rule, or key of the work object attachment designated in the Operation field.
|
The Connect-File method works as follows:
Default
, output characters are converted to the specified character set using normal Java methods. If the Operation is Close File,
steps 5 and 6 do not occur and the output file is closed.
Operation of this method is synchronous. Further processing in the activity does not resume until the file processing completes.
This method updates the pxMethodStatus property. See How to test method results using a transition.
For an example using this method, see the Pega Developer Network article PRKB-25570 How to write a file to the local file system using a file connector.
data mapping | |
About
Connect File rules About Map Eform rules About Map Structured rules |