log

package
v0.5.2-rc4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2018 License: BSD-3-Clause Imports: 4 Imported by: 0

README

tibco-log

This activity provides your flogo application with rudementary logging.

Installation

flogo add activity github.com/TIBCOSoftware/flogo-contrib/activity/log

Schema

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"
    }
  ]
}

Settings

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

Configuration Examples

Simple

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" }
  ]
}
Advanced

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" }
  ]
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewActivity

func NewActivity(metadata *activity.Metadata) activity.Activity

NewActivity creates a new AppActivity

Types

type LogActivity

type LogActivity struct {
	// contains filtered or unexported fields
}

LogActivity is an Activity that is used to log a message to the console inputs : {message, flowInfo} outputs: none

func (*LogActivity) Eval

func (a *LogActivity) Eval(context activity.Context) (done bool, err error)

Eval implements api.Activity.Eval - Logs the Message

func (*LogActivity) Metadata

func (a *LogActivity) Metadata() *activity.Metadata

Metadata returns the activity's metadata

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL