executer

package
v0.0.0-...-7638cb1 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2017 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Overview

Package executer allows execute Pending association and InProgress association

Package executer allows execute Pending association and InProgress association

Package executer allows execute Pending association and InProgress association

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssociationExecuter

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

AssociationExecuter represents the implementation of document executer

func NewAssociationExecuter

func NewAssociationExecuter(assocSvc service.T, agentInfo *contracts.AgentInfo) *AssociationExecuter

NewAssociationExecuter returns a new document executer

func (*AssociationExecuter) ExecuteInProgressDocument

func (r *AssociationExecuter) ExecuteInProgressDocument(context context.T, docState *stateModel.DocumentState, cancelFlag task.CancelFlag)

ExecuteInProgressDocument parses and processes the document

func (*AssociationExecuter) ExecutePendingDocument

func (r *AssociationExecuter) ExecutePendingDocument(context context.T, pool taskpool.T, docState *stateModel.DocumentState) error

ExecutePendingDocument moves doc to current folder and submit it for execution

type DocumentExecuter

type DocumentExecuter interface {
	ExecutePendingDocument(context context.T, pool taskpool.T, docState *stateModel.DocumentState) error
	ExecuteInProgressDocument(context context.T, docState *stateModel.DocumentState, cancelFlag task.CancelFlag)
}

DocumentExecuter represents the interface for running a document

type DocumentExecuterMock

type DocumentExecuterMock struct {
	mock.Mock
}

DocumentExecuterMock stands for a mocked document executer.

func (*DocumentExecuterMock) ExecuteInProgressDocument

func (m *DocumentExecuterMock) ExecuteInProgressDocument(context context.T, interimDocState *stateModel.DocumentState, cancelFlag task.CancelFlag)

ExecuteInProgressDocument mocks implementation for ExecuteInProgressDocument

func (*DocumentExecuterMock) ExecutePendingDocument

func (m *DocumentExecuterMock) ExecutePendingDocument(context context.T, pool taskpool.T, interimDocState *stateModel.DocumentState) error

ExecutePendingDocument mocks implementation for ExecuteInProgressDocument

Jump to

Keyboard shortcuts

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