-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Describe the Bug
As reported by @nikku in bpmn-io/variable-outline#24 (comment), we are displaying some variables' resolved values and types wrong.
With the following ioMapping declaration, I think we should have resolved agentContext as Any with =agent.context rather than null with Null type.
<zeebe:ioMapping>
<zeebe:input source="=agent.context" target="agentContext" />
<zeebe:output source="=agent" target="agent" />
</zeebe:ioMapping>
The variables are resolved as below from variable-resolver.
[
{
"name": "agentContext",
"type": "Null",
"info": "",
"entries": [],
"detail": "Null"
},
{
"name": "agent",
"provider": [
null
],
"type": "Any",
"info": "=agent",
"entries": [ ],
"detail": "Any"
}
]
Steps to Reproduce
- Open this diagram
- Focus on AI Agent ad-hoc subprocess
- Inspect
agentandagentContextvariables in the new variables panel orVariableResolver#getVariables - While
agentis=agent,agentContextisnull
Expected Behavior
agentContextshould have been typed asAnywith=agent.contextvalue as it cannot be resolved
Environment
- Library version: 2.0.0
Reactions are currently unavailable