thiagoelg opened a new pull request, #2978: URL: https://github.com/apache/incubator-kie-tools/pull/2978
When fetching a UserTaskInstance via the graphQL API the `endpoint` property always points to the local hostname (probably defined via the `kogito.service.url` property), but this won't work if the runtime is not running locally (e.g. in a Dev Deployment to OpenShift, or any other remote deployment). The Management Console uses this `endpoint` to fetch the available forms, task form schema, and UserTaskInstance transitions: http://0.0.0.0:8080/forms/hiring_HRInterview [http://0.0.0.0:8080/hiring/HRInterview/schema](http://0.0.0.0:8080//hiring/HRInterview/schema) [http://0.0.0.0:8080/usertasks/instance/56f4b8da-3f23-49bd-8453-26a4299830d3/transition?user=jdoe](http://0.0.0.0:8080//usertasks/instance/56f4b8da-3f23-49bd-8453-26a4299830d3/transition?user=jdoe) And since the Management Console is connected to the runtime via its exposed hostname (for a Dev Deployment to an OpenShift Developer Sandbox the hostname would be something like https://dev-deployment-7h09hdl38.apps.rm2.thpm.p1.openshiftapps.com/) this endpoint won't work. Query: query getUserTaskById($id: String) { UserTaskInstances(where: {id: {equal: $id}}) { id description name priority processInstanceId processId rootProcessInstanceId rootProcessId state actualOwner adminGroups adminUsers completed started excludedUsers potentialGroups potentialUsers inputs outputs referenceName endpoint lastUpdate externalReferenceId __typename } } Sample response: { "data": { "UserTaskInstances": [ { "id": "56f4b8da-3f23-49bd-8453-26a4299830d3", "description": null, "name": "HRInterview", "priority": null, "processInstanceId": "7473b97b-e804-4068-8964-95a4a5959536", "processId": "hiring", "rootProcessInstanceId": null, "rootProcessId": null, "state": "Reserved", "actualOwner": "jdoe", "adminGroups": [], "adminUsers": [], "completed": null, "started": "2025-03-07T15:29:06.128Z", "excludedUsers": [], "potentialGroups": [], "potentialUsers": [ "jdoe" ], "inputs": "{\"candidate\":\"2\",\"approve\":false,\"bonus\":150,\"baseSalary\":30000,\"category\":\"Software Engineer\"}", "outputs": null, "referenceName": "HR Interview", "endpoint": "http://0.0.0.0:8080//hiring/7473b97b-e804-4068-8964-95a4a5959536/HRInterview/f0f5f64f-e11c-4748-b16b-57c601363d3f", "lastUpdate": "2025-03-07T15:29:06.198Z", "externalReferenceId": "f0f5f64f-e11c-4748-b16b-57c601363d3f", "__typename": "UserTaskInstance" } ] } } -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
