conductor-oss / conductor-oss/javascript-sdk

Unable to implement multiple branches with `forkTask`

Aperta
#94 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
58
Fork
20
Merge medio
1g 13h
PR unite (30g)
7

Descrizione

Hi 👋

I think that perhaps the implementation of [forkTask](https://github.com/conductor-oss/javascript-sdk/blob/main/src/sdk/builders/tasks/forkJoin.ts) limits the developer to creating a single branch.

[The fork example in the docs](https://docs.conductor-oss.org/documentation/configuration/workflowdef/operators/fork-task.html) shows that `forkTasks` should be `List[List[Task]]` but I believe the signature here limits this to `[List[Task]]` ( note this is an array with a single item, not a `List[]` ).

Am I reading this correct? I can't seem to get `forkTask()` to create the output I'm after, but not sure if that's user error or an issue with the library.

In the meantime I'm implementing this manually.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.