ResetFlowFuncState
Applicability
Product |
Supported |
|---|---|
√ |
|
√ |
|
x |
|
x |
|
x |
Function Description
In the fault recovery scenario, the FlowFunc is quickly reset to the initial state.
Prototype
1 | int32_t ResetFlowFuncState() |
Parameters
None
Returns
- 0: success
- Other values: failure. For details, see UDF Error Codes.
Exception Handling
None
Constraints
This API is a virtual function. When FlowFunc of the user does not implement the ResetFlowFuncState function, the framework returns FLOW_FUNC_ERR_NOT_SUPPORT by default (the current FlowFunc does not support this operation). Delete the created FlowFunc, create another FlowFunc, and then call the Init API for initialization.
Parent topic: Class MetaFlowFunc