[TASKEMAIL-3] Add method to TaskNodeModel to return the task as a JSON object Created: 21/Dec/20 Updated: 02/Jun/22 Resolved: 23/Dec/20 |
|
| Status: | Closed |
| Project: | Task Email Notifications |
| Component/s: | None |
| Affects Version/s: | 5.7.1 |
| Fix Version/s: | 5.7.2 |
| Type: | Improvement | Priority: | Neutral |
| Reporter: | Richard Gange | Assignee: | Richard Gange |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | json | ||
| Remaining Estimate: | 0d | ||
| Time Spent: | 1d | ||
| Original Estimate: | Not Specified | ||
| Template: |
|
| Acceptance criteria: |
Empty
|
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
| Description |
|
It would be more efficient if all the task data was returned as a 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"
}
}
|