Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md
activity.go
activity.json
activity_metadata.go
activity_test.go

README.md

Write to File

Write to a file

Installation

flogo install github.com/retgits/flogo-components/activity/writetofile

Link for flogo web:

https://github.com/retgits/flogo-components/activity/writetofile

Schema

Inputs and Outputs:

{
"inputs": [
        {
            "name": "filename",
            "type": "string",
            "required": true
        },
        {
            "name": "content",
            "type": "string",
            "required": true
        },
        {
            "name": "append",
            "type": "bool"
        },
        {
            "name": "create",
            "type": "bool"
        }
    ],
    "outputs": [
        {
            "name": "result",
            "type": "string"
        }
    ]
}

Inputs

Input Description
filename The name of the file you want to write to (like data.txt or ./tmp/data.txt)
content The actual content you want to write
append Append to the file or overwrite existing content
create Create the file if it doesn't exist

Ouputs

Output Description
result The result (either OK or the error that was generated by the OS)