flowable / flowable/flowable-engine
[REST API] Return a processBusinessKey field for tasks
- Lingua principale
- Java
- Stelle
- 9.5k
- Fork
- 2.9k
- Merge medio
- 7h 8m
- PR unite (30g)
- 2
Descrizione
**Problem**
When retrieving a task from the REST API, we sometimes want to easily associate this task with the business object related to the process the task is associated to. This means retrieving the "businessKey" value associated to the task's process instance.
Today, you must perform two API calls to retrieve this "businessKey" value:
1. Retrieve the task with the `query/tasks` or `runtime/tasks` API endpoint
2. Retrieve the businessKey using the `processInstanceId` value returned in 1 and the `runtime/process-instances` API endpoint
It'd be easier if we could do this with one API call only.
**Potential solution**
Return a `processBusinessKey` field when returning task objects, containing the value of the `businessKey` field of the task's process instance.
This would impact the following API endpoints:
- runtime/tasks
- query/tasks
- history/historic-task-instances
- query/historic-task-instances
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Inizia tracciando le rappresentazioni delle risposte delle attività e la ricerca delle istanze di processo utilizzate da runtime/tasks, query/tasks, history/historic-task-instances e query/historic-task-instances. Conferma come viene esposto businessKey per l’istanza di processo di ciascuna attività, quindi verifica che tutti e quattro gli endpoint restituiscano processBusinessKey in modo coerente.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java
- Ambito
- api, backend
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 38/100