copybookrenderh001

package module
v0.0.0-...-d725791 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2023 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

New optional factory method, should be used if one activity instance per configuration is desired

Types

type Activity

type Activity struct {
}

Activity is an sample Activity that can be used as a base to create a custom activity

func (*Activity) Eval

func (a *Activity) Eval(ctx activity.Context) (done bool, err error)

Eval implements api.Activity.Eval - Logs the Message

func (*Activity) Metadata

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

Metadata returns the activity's metadata

type H001

type H001 struct {
	copybook.HXXX `json:"H001"`
	// contains filtered or unexported fields
}

type Input

type Input struct {
	CPY_ID                string `md:"CPY-ID"`
	CPY_DATA_TYPE         string `md:"CPY-DATA-TYPE"`
	CPY_DATA_NUMBER       string `md:"CPY-DATA-NUMBER"`
	CPY_OBJECT_ENTITY     string `md:"CPY-OBJECT-ENTITY"`
	CPY_OBJECT_REFERENCE  string `md:"CPY-OBJECT-REFERENCE"`
	CPY_OBJECT_VALUE      string `md:"CPY-OBJECT-VALUE"`
	CPY_DESTINATIONS      string `md:"CPY-DESTINATIONS"`
	CPY_DESTINATIONS_ACC  string `md:"CPY-DESTINATIONS-ACC"`
	CPY_DESTINATIONS_NAME string `md:"CPY-DESTINATIONS-NAME"`
	CPY_LOCATION          string `md:"CPY-LOCATION"`
	CPY_SOURCE            string `md:"CPY-SOURCE"`
	Request               string `md:"request"`
}

func (*Input) FromMap

func (i *Input) FromMap(values map[string]interface{}) error

func (*Input) ToMap

func (i *Input) ToMap() map[string]interface{}

type Output

type Output struct {
	Rendered string `md:"rendered"`
}

func (*Output) FromMap

func (o *Output) FromMap(values map[string]interface{}) error

func (*Output) ToMap

func (o *Output) ToMap() map[string]interface{}

Jump to

Keyboard shortcuts

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