Bug
When a Java Action has a parameter of type `Object` that represents a microflow reference (e.g. `ActionMicroflow: Object NOT NULL`), mxcli cannot set its value. The generated model shows `ActionMicroflow = ...` as a placeholder.
Example
```
AgentCommons.ChatContext_Create_ForAgent(
Agent: AgentCommons.Agent NOT NULL,
ActionMicroflow: Object NOT NULL, -- microflow reference
...
)
```
MDL input
```mdl
$ChatCtx = CALL JAVA ACTION AgentCommons.ChatContext_Create_ForAgent(
Agent = $Agent,
ActionMicroflow = 'MyModule.MyMicroflow', -- string doesn't work
ContextObject = empty,
OverwritingDeployedModel = empty
);
```
Result
`DESCRIBE MICROFLOW` shows:
```
ActionMicroflow = ...
```
`mx check` reports: CE0126 "Missing value for parameter 'ActionMicroflow'"
This also affects `ConversationalUI.ProviderConfig_SetActionMicroflow` which has the same `Object` type parameter.
Expected
MDL should support a syntax for microflow references, e.g.:
```mdl
ActionMicroflow = MICROFLOW MyModule.MyMicroflow
-- or
ActionMicroflow = @MyModule.MyMicroflow
```
Workaround
Set this parameter manually in Studio Pro after mxcli creates the microflow.
Copied from engalar#43
Bug
When a Java Action has a parameter of type `Object` that represents a microflow reference (e.g. `ActionMicroflow: Object NOT NULL`), mxcli cannot set its value. The generated model shows `ActionMicroflow = ...` as a placeholder.
Example
```
AgentCommons.ChatContext_Create_ForAgent(
Agent: AgentCommons.Agent NOT NULL,
ActionMicroflow: Object NOT NULL, -- microflow reference
...
)
```
MDL input
```mdl
$ChatCtx = CALL JAVA ACTION AgentCommons.ChatContext_Create_ForAgent(
Agent = $Agent,
ActionMicroflow = 'MyModule.MyMicroflow', -- string doesn't work
ContextObject = empty,
OverwritingDeployedModel = empty
);
```
Result
`DESCRIBE MICROFLOW` shows:
```
ActionMicroflow = ...
```
`mx check` reports: CE0126 "Missing value for parameter 'ActionMicroflow'"
This also affects `ConversationalUI.ProviderConfig_SetActionMicroflow` which has the same `Object` type parameter.
Expected
MDL should support a syntax for microflow references, e.g.:
```mdl
ActionMicroflow = MICROFLOW MyModule.MyMicroflow
-- or
ActionMicroflow = @MyModule.MyMicroflow
```
Workaround
Set this parameter manually in Studio Pro after mxcli creates the microflow.
Copied from engalar#43