Package com.bytedesk.core.workflow.node
Class WorkflowFormNode
java.lang.Object
com.bytedesk.core.workflow.node.WorkflowBaseNode
com.bytedesk.core.workflow.node.WorkflowFormNode
- All Implemented Interfaces:
Serializable
表单节点
用于收集用户输入的表单数据
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class表单选项static class表单验证规则Nested classes/interfaces inherited from class com.bytedesk.core.workflow.node.WorkflowBaseNode
WorkflowBaseNode.NodeData -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String默认值private String表单类型: label, text, digit, date, select, checkbox, radioprivate String表单字段标签private List<WorkflowFormNode.FormOption>选项列表(用于select, checkbox, radio类型)private String表单字段占位符private Boolean是否必填private static final longprivate List<WorkflowFormNode.FormValidation>验证规则 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(WorkflowExecutionContext context) Execute node specific logic.static WorkflowFormNodeMethods inherited from class com.bytedesk.core.workflow.node.WorkflowBaseNode
toJson
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
formType
表单类型: label, text, digit, date, select, checkbox, radio -
label
表单字段标签 -
placeholder
表单字段占位符 -
required
是否必填 -
defaultValue
默认值 -
options
选项列表(用于select, checkbox, radio类型) -
validations
验证规则
-
-
Constructor Details
-
WorkflowFormNode
public WorkflowFormNode()
-
-
Method Details
-
fromJson
-
execute
Description copied from class:WorkflowBaseNodeExecute node specific logic.- Specified by:
executein classWorkflowBaseNode
-