parser

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2015 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Overview

ジョブネットワークに関連する各種ファイル形式のパース処理パッケージ。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseJobEx

func ParseJobEx(reader io.Reader) (map[string]*JobEx, error)

readerから読み込んだ拡張ジョブ定義CSVをパースする。 空のカラムにはゼロ値をセットする。

param : reader ファイルリーダー。

return : 拡張ジョブ情報のパース後Map。

return : エラー情報。

func ParseJobExFile

func ParseJobExFile(fileName string) (map[string]*JobEx, error)

ファイルから拡張ジョブ定義CSVを読み込み、パースする。

param : fileName ファイル名。

return : 拡張ジョブ情報のパース後Map。

return : エラー情報。

Types

type Definitions

type Definitions struct {
	Process []Process `xml:"process"`
}

ネットワーク定義BPMNのdefinitions要素。

type EndEvent

type EndEvent struct {
	ID string `xml:"id,attr"`
}

ネットワーク定義BPMNのendEvent要素。

type JobEx

type JobEx struct {
	Node          string // ノード名
	Port          int    // ポート番号
	FilePath      string // ジョブファイルパス
	Param         string // 実行時引数
	Env           string // 実行時環境変数
	Workspace     string // 作業フォルダ
	WrnRC         int    // 警告終了判断に使用するリターンコードの下限値
	WrnPtn        string // 警告終了と判断する出力文字列
	ErrRC         int    // 異常終了判断に使用するリターンコードの下限値
	ErrPtn        string // 異常終了と判断する出力文字列
	TimeoutMin    int    // タイムアウト(分)
	SecondaryNode string // ノード名
	SecondaryPort int    // ポート番号
}

拡張ジョブ情報

func NewJobEx

func NewJobEx() *JobEx

JobEx構造体のオブジェクトを生成しする。

return : 生成したオブジェクト

type ParallelGateway

type ParallelGateway struct {
	ID string `xml:"id,attr"`
}

ネットワーク定義BPMNのparallelGateway要素。

type Process

type Process struct {
	Start   []StartEvent      `xml:"startEvent"`
	End     []EndEvent        `xml:"endEvent"`
	Task    []ServiceTask     `xml:"serviceTask"`
	Gateway []ParallelGateway `xml:"parallelGateway"`
	Flow    []SequenceFlow    `xml:"sequenceFlow"`
}

ネットワーク定義BPMNのprocess要素。

func ParseNetwork

func ParseNetwork(reader io.Reader) (*Process, error)

ネットワーク定義をio.Readerから読み込み、パース結果を返す

func ParseNetworkFile

func ParseNetworkFile(fileName string) (*Process, error)

ネットワーク定義をファイルから読み込み、パース結果を返す

type SequenceFlow

type SequenceFlow struct {
	From string `xml:"sourceRef,attr"`
	To   string `xml:"targetRef,attr"`
}

ネットワーク定義BPMNのsequenceFlow要素。

type ServiceTask

type ServiceTask struct {
	ID   string `xml:"id,attr"`
	Name string `xml:"name,attr"`
}

ネットワーク定義BPMNのserviceTask要素。

type StartEvent

type StartEvent struct {
	ID string `xml:"id,attr"`
}

ネットワーク定義BPMNのstartEvent要素。

Jump to

Keyboard shortcuts

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