Documentation ¶
Index ¶
- func ExecuteWorkflowAtOnce(c *www.Context, a model.Auth, wfi *model.WorkflowItem, ...) error
- type DocTmplNodeImpl
- type DocumentFlowInstance
- func (me *DocumentFlowInstance) Close() error
- func (me *DocumentFlowInstance) Confirm(currentAppLang string, tmpls map[string]interface{}, store storage.UserDataIF) (map[string]interface{}, map[string]*file.IO, *Status, error)
- func (me *DocumentFlowInstance) Current(d map[string]interface{}) (*Status, error)
- func (me *DocumentFlowInstance) GetFile(name string) (*file.IO, error)
- func (me *DocumentFlowInstance) Init(auth model.Auth, system *sys.System) error
- func (me *DocumentFlowInstance) NeedToBeInitialized() bool
- func (me *DocumentFlowInstance) Next(d map[string]interface{}) (*Status, error)
- func (me *DocumentFlowInstance) OnLoad()
- func (me *DocumentFlowInstance) Preview(id, lang, strFormat string) (*PreviewResponse, error)
- func (me *DocumentFlowInstance) Previous() *Status
- func (me *DocumentFlowInstance) UpdateData(d map[string]interface{}, submit bool) (verrs validate.ErrorMap, err error)
- func (me *DocumentFlowInstance) UpdateFile(name string, fm file.Meta, reader io.Reader) (verrs validate.Errors, err error)
- func (me *DocumentFlowInstance) WF() *model.WorkflowItem
- type EAODocTmplNodeImpl
- type EAOFormNodeImpl
- type ExecuteAtOnceContext
- type FormNodeImpl
- type PreviewResponse
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecuteWorkflowAtOnce ¶
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) 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) 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 (*DocumentFlowInstance) UpdateFile ¶
func (*DocumentFlowInstance) WF ¶
func (me *DocumentFlowInstance) WF() *model.WorkflowItem
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
}
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