conductor-oss / conductor-oss/javascript-sdk

Unable to implement multiple branches with `forkTask`

Open
#94 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
58
Forks
20
Avg merge
1d 13h
Merged PRs (30d)
7

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.