Closed symphony-mariacristina closed 3 years ago
Clear the BiContext every time we parse a new message (context.getBiContext() will only contain BiItems of the last message parsed)
I don't get it. I thought we were creating a new MessageMLContext
instance every time we parse a new message : https://github.com/SymphonyOSF/symphony-agent/blob/master/agent/src/main/java/com/symphony/agent/server/V4AgentApi.java#L325
Clear the BiContext every time we parse a new message (context.getBiContext() will only contain BiItems of the last message parsed)
I don't get it. I thought we were creating a new
MessageMLContext
instance every time we parse a new message : https://github.com/SymphonyOSF/symphony-agent/blob/master/agent/src/main/java/com/symphony/agent/server/V4AgentApi.java#L325
Yes we are but there is nothing to prevent you from reusing a MessageMLContext at least this way the bi context is cleared, the same way the result of the previous parse() call is cleated in MessageMLContext
Goal of this PR is to: