-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reflect latest changes to Java API in the REST API #4683
Comments
Hello @zambrovski , Thank you for raising this. I understand that you would like to retrieve the GET /task/anId Response
Same behavior exists for the Get List endpoint, both in GET and POST mode. Please let me know if this is not what you meant and if you think this feature request is still required. |
Hi @joaquinfelici, If you look at the documentation carefully, you will notice that in the example the And this is exactly the bug. You pretend in the example it is there, but it is not in the specification. If you look on the class you are using to return the task ( Line 56 in 1e80065
Cheers, Simon |
And this is serious, because we use the official Camunda OpenAPI specification as input for the code generation of the client, capable to use that API. So there is only a limited value of having it in the implementation, but not having in in the Open API Spec. |
Since you have a pretty complex procedure to generate the OpenAPI spec, I'll give you the relevant content part extracted from the published JAR: "TaskDto": {
"type": "object",
"properties": {
"id": {
"type": "string",
"nullable": true,
"description": "The task id."
},
"name": {
"type": "string",
"nullable": true,
"description": "The task name."
},
"assignee": {
"type": "string",
"nullable": true,
"description": "The assignee\u0027s id."
},
"owner": {
"type": "string",
"nullable": true,
"description": "The owner\u0027s id."
},
"created": {
"type": "string",
"format": "date-time",
"nullable": true,
"description": "The date the task was created on.\n[Default format](https://docs.camunda.org/manual/7.22/reference/rest/overview/date-format/)\n`yyyy-MM-dd\u0027T\u0027HH:mm:ss.SSSZ`."
},
"lastUpdated": {
"type": "string",
"format": "date-time",
"nullable": true,
"description": "The date the task was last updated. Every action that fires a [task update event](https://docs.camunda.org/manual/7.22/user-guide/process-engine/delegation-code/#task-listener-event-lifecycle) will update this property.\n[Default format](https://docs.camunda.org/manual/7.22/reference/rest/overview/date-format/)\n`yyyy-MM-dd\u0027T\u0027HH:mm:ss.SSSZ`."
},
"due": {
"type": "string",
"format": "date-time",
"nullable": true,
"description": "The task\u0027s due date.\n[Default format](https://docs.camunda.org/manual/7.22/reference/rest/overview/date-format/)\n`yyyy-MM-dd\u0027T\u0027HH:mm:ss.SSSZ`."
},
"followUp": {
"type": "string",
"format": "date-time",
"nullable": true,
"description": "The follow-up date for the task.\n[Default format](https://docs.camunda.org/manual/7.22/reference/rest/overview/date-format/)\n`yyyy-MM-dd\u0027T\u0027HH:mm:ss.SSSZ`."
},
"delegationState": {
"type": "string",
"nullable": true,
"enum": [
"PENDING",
"RESOLVED"
],
"description": "The task\u0027s delegation state. Possible values are `PENDING` and `RESOLVED`."
},
"description": {
"type": "string",
"nullable": true,
"description": "The task\u0027s description."
},
"executionId": {
"type": "string",
"nullable": true,
"description": "The id of the execution the task belongs to."
},
"parentTaskId": {
"type": "string",
"nullable": true,
"description": "The id the parent task, if this task is a subtask."
},
"priority": {
"type": "integer",
"format": "int32",
"nullable": true,
"description": "The task\u0027s priority."
},
"processDefinitionId": {
"type": "string",
"nullable": true,
"description": "The id of the process definition the task belongs to."
},
"processInstanceId": {
"type": "string",
"nullable": true,
"description": "The id of the process instance the task belongs to."
},
"caseExecutionId": {
"type": "string",
"nullable": true,
"description": "The id of the case execution the task belongs to."
},
"caseDefinitionId": {
"type": "string",
"nullable": true,
"description": "The id of the case definition the task belongs to."
},
"caseInstanceId": {
"type": "string",
"nullable": true,
"description": "The id of the case instance the task belongs to."
},
"taskDefinitionKey": {
"type": "string",
"nullable": true,
"description": "The task\u0027s key."
},
"suspended": {
"type": "boolean",
"nullable": true,
"description": "Whether the task belongs to a process instance that is suspended."
},
"formKey": {
"type": "string",
"nullable": true,
"description": "If not `null`, the form key for the task."
},
"camundaFormRef": {
"$ref": "#/components/schemas/CamundaFormRef"
},
"tenantId": {
"type": "string",
"nullable": true,
"description": "If not `null`, the tenant id of the task."
}
}
}, |
Hello @zambrovski, thanks for the clarification, this field is indeed missing from the response specification. Would you be interested in raising a pull request to fix it? |
Hello @zambrovski, following-up on this. Please let me know whether you might be interested in contributing to get this fixed when you have the chance. Thanks in advance. |
User Story
After updating to 7.22 I noticed that some new methods appeared in the Java API (Great! 👍). The same changes should be available via REST API.
org.camunda.bpm.engine.task.Task
got additional methods:Workarounds
The text was updated successfully, but these errors were encountered: