Class DefaultTaskStoreServiceImpl
java.lang.Object
com.mulesoft.connectors.a2a.internal.server.agent.history.DefaultTaskStoreServiceImpl
- All Implemented Interfaces:
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidupdateHistory(String taskId, String historyObj) voidupdateTask(String taskId, String taskObj)
-
Field Details
-
TASK_FIELD
- See Also:
-
HISTORY_FIELD
- See Also:
-
HISTORY_FIELD_LENGTH
- See Also:
-
-
Constructor Details
-
DefaultTaskStoreServiceImpl
-
-
Method Details
-
updateHistory
public void updateHistory(String taskId, String historyObj) throws org.mule.runtime.api.store.ObjectStoreException - Specified by:
updateHistoryin interfaceTaskStoreService- Throws:
org.mule.runtime.api.store.ObjectStoreException
-
updateTask
public void updateTask(String taskId, String taskObj) throws org.mule.runtime.api.store.ObjectStoreException - Specified by:
updateTaskin interfaceTaskStoreService- Throws:
org.mule.runtime.api.store.ObjectStoreException
-