Skip to content

Cannot set Microflow/Object reference parameters in CALL JAVA ACTION #128

@engalar

Description

@engalar

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions