RunFlowModel
Applicability
Product |
Supported |
|---|---|
√ |
|
√ |
|
x |
|
x |
|
x |
Function Description
Runs a specified model synchronously. This function is called by Proc.
Prototype
1 2 | int32_t RunFlowModel(const char *modelKey, const std::vector<std::shared_ptr<FlowMsg>> &inputMsgs, std::vector<std::shared_ptr<FlowMsg>> &outputMsgs, int32_t timeout) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
modelKey |
Input |
Specified model key, which is the same as name specified in AddInvokedClosure. |
inputMsgs |
Input |
Input for the model. |
outputMsgs |
Output |
Output of model execution |
timeout |
Input |
Model execution waiting timeout, in ms. The value -1 means no timeout limit. |
Returns
- 0: success
- Other values: failure. For details, see UDF Error Codes.
Exception Handling
None
Constraints
None
Parent topic: Class MetaContext