flowable / flowable/flowable-engine

Change the parameter type from FlowableEngineEventType to FlowableEventType in RuntimeService .

Aperta
#3,927 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Java
Stelle
9.5k
Fork
2.9k
Merge medio
7h 8m
PR unite (30g)
2

Descrizione

**Describe the bug**

The `addEventListener `method of the `RuntimeService `interface, which receives an event type parameter, accepts an implementation class `FlowableEngineEventType `rather than interface `FlowableEventType`.

``` java
void addEventListener(FlowableEventListener listenerToAdd, FlowableEngineEventType... types);
```

**Expected behavior**

Change the parameter type from `FlowableEngineEventType` to `FlowableEventType`.

``` java
void addEventListener(FlowableEventListener listenerToAdd, FlowableEventType... types);
```

**Code**

Custom event type enumeration class: `RdmFlowableEventType`.

``` java
@Getter
@AllArgsConstructor
public enum RdmFlowableEventType implements FlowableEventType {

STEP_TASK_ENTERED;

}
```

Config Custom Listener With SpringBoot.

``` java
@Configuration
@RequiredArgsConstructor
public class FlowableListenerConfig {
private final RuntimeService runtimeService;
private final CustomListener listener;

@PostConstruct
public void init() {
// This line results in a compilation error.
runtimeService.addEventListener(listener, RdmFlowableEventType.STEP_TASK_ENTERED);
}

```
**Additional context**

Flowable V6.8.0 With SpringBoot.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Inizia dalla dichiarazione di RuntimeService.addEventListener mostrata nella issue e segui le relative implementazioni e i chiamanti. Verifica come vengono utilizzati FlowableEventType e FlowableEngineEventType nell’intera API, quindi verifica che un FlowableEventType personalizzato come RdmFlowableEventType possa essere compilato e che i test interessati o la build abbiano esito positivo con la firma modificata.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
java
Ambito
api
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Specificata chiaramente
Idoneità per principianti
52/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.