app

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: GPL-3.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteWorkflowAtOnce

func ExecuteWorkflowAtOnce(c *www.Context, a model.Auth, wfi *model.WorkflowItem, inputData map[string]interface{}) error

Types

type DocTmplNodeImpl

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

TODO replace DataCluster with file.MapIO. DataCluster was meant to be used for guest users only to prevent from storing data that will be never used again after the session is expired

func (*DocTmplNodeImpl) Close

func (me *DocTmplNodeImpl) Close()

func (*DocTmplNodeImpl) Execute

func (me *DocTmplNodeImpl) Execute(n *workflow.Node) (proceed bool, err error)

func (*DocTmplNodeImpl) Remove

func (me *DocTmplNodeImpl) Remove(n *workflow.Node)

type DocumentFlowInstance

type DocumentFlowInstance struct {
	WFID        string           `json:"WFID"`
	DataID      string           `json:"dataID"`
	DataCluster form.DataManager `json:"dataCluster"`

	Steps []workflow.Step `json:"steps"`

	Started bool

	SelectedDocLangs map[string]string
	Confirmed        bool
	// contains filtered or unexported fields
}

TODO replace DataCluster with file.MapIO. DataCluster was meant to be used for guest users only to prevent from storing data that will be never used again after the session is expired

func NewDocumentApp

func NewDocumentApp(usrData *model.UserDataItem, auth model.Auth, system *sys.System, wfid, baseFilePath string) (*DocumentFlowInstance, error)

func (*DocumentFlowInstance) Close

func (me *DocumentFlowInstance) Close() error

func (*DocumentFlowInstance) Confirm

func (me *DocumentFlowInstance) Confirm(currentAppLang string, tmpls map[string]interface{}, store storage.UserDataIF) (map[string]interface{}, map[string]*file.IO, *Status, error)

func (*DocumentFlowInstance) Current

func (me *DocumentFlowInstance) Current(d map[string]interface{}) (*Status, error)

func (*DocumentFlowInstance) GetFile

func (me *DocumentFlowInstance) GetFile(name string) (*file.IO, error)

func (*DocumentFlowInstance) Init

func (me *DocumentFlowInstance) Init(auth model.Auth, system *sys.System) error

func (*DocumentFlowInstance) NeedToBeInitialized

func (me *DocumentFlowInstance) NeedToBeInitialized() bool

func (*DocumentFlowInstance) Next

func (me *DocumentFlowInstance) Next(d map[string]interface{}) (*Status, error)

func (*DocumentFlowInstance) OnLoad

func (me *DocumentFlowInstance) OnLoad()

func (*DocumentFlowInstance) Preview

func (me *DocumentFlowInstance) Preview(id, lang, strFormat string) (*PreviewResponse, error)

func (*DocumentFlowInstance) Previous

func (me *DocumentFlowInstance) Previous() *Status

func (*DocumentFlowInstance) UpdateData

func (me *DocumentFlowInstance) UpdateData(d map[string]interface{}, submit bool) (verrs validate.ErrorMap, err error)

func (*DocumentFlowInstance) UpdateFile

func (me *DocumentFlowInstance) UpdateFile(name string, fm file.Meta, reader io.Reader) (verrs validate.Errors, err error)

func (*DocumentFlowInstance) WF

type EAODocTmplNodeImpl

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

func (*EAODocTmplNodeImpl) Close

func (me *EAODocTmplNodeImpl) Close()

func (*EAODocTmplNodeImpl) Execute

func (me *EAODocTmplNodeImpl) Execute(n *workflow.Node) (proceed bool, err error)

func (*EAODocTmplNodeImpl) Remove

func (me *EAODocTmplNodeImpl) Remove(n *workflow.Node)

type EAOFormNodeImpl

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

func (*EAOFormNodeImpl) Close

func (me *EAOFormNodeImpl) Close()

func (*EAOFormNodeImpl) Execute

func (me *EAOFormNodeImpl) Execute(n *workflow.Node) (proceed bool, err error)

func (*EAOFormNodeImpl) Remove

func (me *EAOFormNodeImpl) Remove(n *workflow.Node)

type ExecuteAtOnceContext

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

func (*ExecuteAtOnceContext) WriteZIP

func (me *ExecuteAtOnceContext) WriteZIP(filePaths []string, writer io.Writer) error

type FormNodeImpl

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

TODO replace DataCluster with file.MapIO. DataCluster was meant to be used for guest users only to prevent from storing data that will be never used again after the session is expired

func (*FormNodeImpl) Close

func (me *FormNodeImpl) Close()

func (*FormNodeImpl) Execute

func (me *FormNodeImpl) Execute(n *workflow.Node) (proceed bool, err error)

func (*FormNodeImpl) Remove

func (me *FormNodeImpl) Remove(n *workflow.Node)

type PreviewResponse

type PreviewResponse struct {
	Data          io.ReadCloser
	File          *file.IO
	Format        eio.Format
	ContentType   string
	ContentLength string
}

TODO replace DataCluster with file.MapIO. DataCluster was meant to be used for guest users only to prevent from storing data that will be never used again after the session is expired

type Status

type Status struct {
	TargetName  string          `json:"targetName"`
	Steps       []workflow.Step `json:"steps"`
	HasNext     bool            `json:"hasNext"`
	HasPrev     bool            `json:"hasPrev"`
	Docs        []interface{}   `json:"docs"`
	CurrentType string          `json:"currentType"`
	UserData    interface{}     `json:"userData,omitempty"`
	Data        interface{}     `json:"data,omitempty"`
}

TODO replace DataCluster with file.MapIO. DataCluster was meant to be used for guest users only to prevent from storing data that will be never used again after the session is expired

Jump to

Keyboard shortcuts

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