wasender.group.sync_participants ​
Reconcile a group's roster to a desired participant set (add/remove/promote/demote)
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-wasender |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | Org boundary |
cloud_connection_uuid | uuid | Yes | — | Owning connection |
group_jid | string | Yes | — | Group to reconcile |
desired_members | list | Yes | — | Desired participant phones/JIDs |
desired_admins | list | No | — | Subset that should be admins |
prune | boolean | No | — | Remove members not in desired_members (default False) |
actor | string | No | — | Audit actor |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | Org boundary |
cloud_connection_uuid | uuid | Yes | — | Owning connection |
group_jid | string | Yes | — | Group to reconcile |
desired_members | list | Yes | — | Desired participant phones/JIDs |
desired_admins | list | No | — | Subset that should be admins |
prune | boolean | No | — | Remove members not in desired_members (default False) |
actor | string | No | — | Audit actor |
current_participants | list | No | — | — |
added | list | No | — | — |
removed | list | No | — | — |
promoted | list | No | — | — |
demoted | list | No | — | — |
synced_at | string | No | — | — |
failed_at | string | No | — | — |
failure_reason | string | No | — | Engine-stamped human-readable failure reason |
failed_at_state | string | No | — | Engine-stamped state when the workflow failed |
failed_step | string | No | — | Engine-stamped step name (DAG path) |
failed_layer | integer | No | — | Engine-stamped layer index (DAG path) |
error | string | No | — | Engine-stamped exception message |
error_type | string | No | — | Engine-stamped exception class name |
failure_type | string | No | — | Engine-stamped failure category (atomic path) |
failed_action | string | No | — | Engine-stamped action method that raised (atomic path) |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
initiated | Yes | No | — | fetch | Inputs accepted |
applying | No | No | — | complete | Applying roster mutations |
diffing | No | No | — | apply | Computing add/remove/promote/demote sets |
fetching | No | No | — | diff | Fetching current participants |
completed | No | Yes | Yes | — | Roster reconciled |
failed | No | Yes | No | — | Sync failed |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
initiated | fetch | fetching | — |
fetching | diff | diffing | — |
diffing | apply | applying | — |
applying | complete | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "wasender.group.sync_participants",
"initial_data": {
"organization_uuid": "value",
"cloud_connection_uuid": "value",
"group_jid": "value",
"desired_members": "value"
}
}