conductor-oss / conductor-oss/javascript-sdk

EXCLUSIVE_JOIN: TaskType enum value exists but no builder function

Offen Anfängerfreundlich
#137 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug
Vorherrschende Sprache
TypeScript
Sterne
58
Forks
20
Ø Merge
1 T. 13 Std.
Gemergte PRs (30 T.)
7

Beschreibung

## Summary

`TaskType.EXCLUSIVE_JOIN` is in the enum but there is no `exclusiveJoinTask()` builder.
The `defaultExclusiveJoinTask` field is unreachable via the SDK API.

## Server baseline

Conductor **3.32.0-rc.9**

## Evidence

**Static:** `TaskType.EXCLUSIVE_JOIN` exists in `types.ts:61`; no builder exported from
`builders/tasks/index.ts`.

**Live (2026-07-16):** A raw EXCLUSIVE_JOIN task inside a SWITCH workflow was registered
and executed against Conductor OSS 3.32.0-rc.9. Workflow completed successfully — gap is SDK-only.

## Proposed fix

Add `src/sdk/builders/tasks/exclusiveJoin.ts`:
```typescript
import type { WorkflowTask } from "../../../open-api";
import { TaskType } from "../../../open-api";

export const exclusiveJoinTask = (
taskReferenceName: string,
joinOn: string[],
defaultExclusiveJoinTask?: string[],
optional?: boolean
): WorkflowTask => ({
name: taskReferenceName,
taskReferenceName,
type: TaskType.EXCLUSIVE_JOIN,
joinOn,
defaultExclusiveJoinTask,
inputParameters: {},
optional,
});
```

Export from `builders/tasks/index.ts`.

## Related

Discovered during systematic SDK audit against Conductor OSS 3.32.0-rc.9.
Same gap in Java SDK (conductor-oss/java-sdk#133) and Python SDK (conductor-oss/python-sdk#429).

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Read src/sdk/builders/tasks/index.ts and the task-builder exports first. Add src/sdk/builders/tasks/exclusiveJoin.ts following the proposed signature and fields, then export exclusiveJoinTask from the index; done means the EXCLUSIVE_JOIN builder is reachable through the SDK API.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
typescript
Bereich
api
Issue-Typ
Bug
Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Aktivitätsstatus
Ruhig
Klarheit
Klar beschrieben
Anfängerfreundlichkeit
88/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.