Class DefaultTaskStoreServiceImpl

java.lang.Object
com.mulesoft.connectors.a2a.internal.server.agent.history.DefaultTaskStoreServiceImpl
All Implemented Interfaces:
TaskStoreService

public class DefaultTaskStoreServiceImpl extends Object implements TaskStoreService
Updates the taskJson of the historyItem for taskId in format {"historyLength":int,"history":[],"task":{}}. It uses javax.json module to maintain the structure of the taskJson. As an enhancement, we can look to implement it using dataweave for easement.
  • Field Details

  • Constructor Details

    • DefaultTaskStoreServiceImpl

      public DefaultTaskStoreServiceImpl(TaskHistory taskHistory)
  • Method Details

    • updateHistory

      public void updateHistory(String taskId, String historyObj) throws org.mule.runtime.api.store.ObjectStoreException
      Specified by:
      updateHistory in interface TaskStoreService
      Throws:
      org.mule.runtime.api.store.ObjectStoreException
    • updateTask

      public void updateTask(String taskId, String taskObj) throws org.mule.runtime.api.store.ObjectStoreException
      Specified by:
      updateTask in interface TaskStoreService
      Throws:
      org.mule.runtime.api.store.ObjectStoreException