Details
-
Improvement
-
Resolution: Fixed
-
Neutral
-
5.7.1
Description
It would be more efficient if all the task data was returned as a JSON object.
- Add a method to the model
- Create a new script to showcase using the JSON object
Example JSON returned:
{ "userName" : "superuser", "priority" : 0, "name" : "publish", "requestor" : "superuser", "groupIds" : [ "travel-demo-publishers", "publishers" ], "comment" : "Publishing example", "skippable" : false, "status" : "info.magnolia.task.Task$Status:Created", "ocm_classname" : "info.magnolia.module.workflow.jbpm.humantask.HumanTask", "@nodeType" : "mgnl:task", "@name" : "1608727181727", "@depth" : 5, "@id" : "017bf9d0-7104-48bd-bdfd-63d4d49aff7f", "@path" : "/tasks/2020/11/23/1608727181727", "processData" : { "processInstanceId" : 1608727188396, "workItemId" : 1608727188402, "ocm_classname" : "info.magnolia.module.workflow.jbpm.humantask.ProcessData", "@nodeType" : "mgnl:contentNode", "@name" : "processData", "@depth" : 6, "@id" : "fb01e07c-87e5-4f08-9b69-88da95a7b0a2", "@path" : "/tasks/2020/11/23/1608727181727/processData" }, "results" : { "@nodeType" : "mgnl:contentNode", "@name" : "results", "@depth" : 6, "@id" : "7e4c7fe4-551d-45c3-9a60-1ba46e447a12", "@path" : "/tasks/2020/11/23/1608727181727/results" }, "content" : { "userName" : "superuser", "recursive" : false, "comment" : "Publishing example", "isDeletion" : false, "uuid" : "b06b82a2-74b0-4994-8015-028c4fd60716", "version" : "1.12", "repository" : "website", "path" : "/travel", "@nodeType" : "mgnl:contentNode", "@name" : "content", "@depth" : 6, "@id" : "f3c63e98-4c95-4034-b44a-85b97b537b2e", "@path" : "/tasks/2020/11/23/1608727181727/content" } }
Checklists
Acceptance criteria