This trigger provides your flogo application the ability to start an action on the Lifecycle events of the application. The handler associated with the STARTUP event gets invoked before all other triggers have been started. The handler associated with the SHUTDOWN event gets invoked after all other triggers have been stopped.
flogo install github.com/project-flogo/contrib/trigger/app
Name | Type | Description |
---|---|---|
lifecycle | string | The lifecycle event (ie. STARTUP,SHUTDOWN) - REQUIRED |
Configure the trigger in order to have a special startup and cleanup action for your application.
{
"triggers": [
{
"id": "flogo-app",
"ref": "github.com/project-flogo/contrib/trigger/app",
"handlers": [
{
"settings": {
"lifecycle": "STARTUP"
},
"action": {
"ref": "github.com/project-flogo/flow",
"settings": {
"flowURI": "res://flow:app_startup"
}
}
},
{
"settings": {
"lifecycle": "SHUTDOWN"
},
"action": {
"ref": "github.com/project-flogo/flow",
"settings": {
"flowURI": "res://flow:app_cleanup"
}
}
}
]
}
]
}