README
¶
tibco-rest
This activity provides your flogo application the ability to cause an explicit error in the flow.
Installation
flogo add activity github.com/TIBCOSoftware/flogo-contrib/activity/error
Schema
Inputs and Outputs:
{
"input":[
{
"name": "message",
"type": "string"
},
{
"name": "data",
"type": "object"
}
],
"output": [
]
}
Settings
Setting | Description |
---|---|
message | The error message |
data | The error data |
Configuration Examples
Configure a task in flow cause a simple error with a message:
{
"id": 3,
"type": 1,
"activityType": "tibco-error",
"name": "Throw Error",
"attributes": [
{ "name": "message", "value": "Unexpected Threshold Value" }
]
}
Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ErrorActivity ¶
type ErrorActivity struct {
// contains filtered or unexported fields
}
ErrorActivity is an Activity that used to cause an explicit error in the flow inputs : {message,data} outputs: node
func (*ErrorActivity) Eval ¶
func (a *ErrorActivity) Eval(context activity.Context) (done bool, err error)
Eval implements api.Activity.Eval - Invokes a REST Operation
func (*ErrorActivity) Metadata ¶
func (a *ErrorActivity) Metadata() *activity.Metadata
Metadata returns the activity's metadata
Click to show internal directories.
Click to hide internal directories.