Implement proper SystemMessage flow for agent responses
Changes: 1. Add contentType='application/json' to SmtyAgentTask SystemMessageType 2. Update run#AgentTask to create response as child SystemMessage 3. Use parentMessageId to link response to original task 4. Use ackMessageId to correlate request/response 5. Update task status to SmsgConfirmed on completion This follows Moqui framework messaging patterns: - Queue response message (isOutgoing='Y', status='SmsgProduced') - Update original with ackMessageId linking to response - Use proper message flow: Request (SmsgReceived) → Response (SmsgSent) → Confirmed (SmsgConfirmed)
Showing
3 changed files
with
89 additions
and
14 deletions
-
Please register or sign in to post a comment