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

Add to Date

This activity provides your Flogo app the ability to add a specified number of units to a date

Installation

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

Link for flogo web:

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

Schema

Inputs and Outputs:

{
"inputs":[
      {
        "name": "number",
        "type": "integer"
      },
      {
        "name": "units",
        "type": "string",
        "allowed" : ["years", "months", "days"]
      },
      {
        "name": "date",
        "type": "string"
      }
    ],
    "outputs": [
      {
        "name": "result",
        "type": "string"
      }
    ]
}

Inputs

Input Description
number The number of units to add to the date
units The units to add (allowed values are years, months and days)
date The date to add the units to (must be in the format YYYY-MM-DD). If this is blank, the current date will be chosen

Ouputs

Output Description
result The new date (will be in the format YYYY-MM-DD)