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) |
Command-Line Options
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 |
Timeout for waiting for model execution, in ms. The value -1 indicates that the execution never times out. |
Returns
- 0: success
- Other values: failure. For details, see UDF Error Codes.
Troubleshooting
None
Constraints
None
Parent topic: Class MetaContext