~humaid/workflow-engine unlisted

ref: 5742459f5e4184fddef5d200e0cba0f779f869ff workflow-engine/admin_forms.go -rw-r--r-- 825 bytes
5742459f — Humaid AlQassimi admin: implement adding adding of criteria in steps 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package engine

type newServiceForm struct {
	ServiceID   string `form:"id" binding:"Required"`
	Description string `form:"desc"`
	Category    string `form:"category"`
}

type newChannelForm struct {
	ChannelID   string `form:"id" binding:"Required"`
	Description string `form:"desc"`
	Initiators  string `form:"inits"`
}

type newStepForm struct {
	StepID         string `form:"id" binding:"Required"`
	Status         string `form:"desc"`
	Page           string `form:"page"`
	PostTo         string `form:"post"`
	DataIn         string `form:"data-in"`
	DataOut        string `form:"data-out"`
	EndApplication bool   `form:"end"`
}

type newCriteriaForm struct {
	Name        string `form:"name" binding:"Required"`
	Expression  string `form:"expr" binding:"Required"`
	FailMessage string `form:"fail" binding:"Required"`
}