title | weight |
---|---|
Log |
4615 |
This activity provides your flogo application with rudementary logging.
flogo add activity github.com/TIBCOSoftware/flogo-contrib/activity/log
Inputs and Outputs:
{
"input":[
{
"name": "message",
"type": "string",
"value": ""
},
{
"name": "flowInfo",
"type": "boolean",
"value": "false"
},
{
"name": "addToFlow",
"type": "boolean",
"value": "false"
}
],
"output": [
{
"name": "message",
"type": "string"
}
]
}
Setting | Description |
---|---|
message | The message to log |
flowInfo | Append the flow information to the log message |
addToFlow | Add the log message to the 'message' output of the activity |
Configure a task to log a message 'test message':
{
"id": 3,
"type": 1,
"activityType": "tibco-log",
"name": "Log Message",
"attributes": [
{ "name": "message", "value": "test message" }
]
}
Configure a task to log a 'petId' attribute as a message:
{
"id": 3,
"type": 1,
"activityType": "tibco-log",
"name": "Log PetId",
"attributes": [],
"inputMappings": [
{ "type": 1, "value": "petId", "mapTo": "message" }
]
}