conductor-oss / conductor-oss/conductor

Can't create workflow with list iteration in DO_WHILE

Open
#819 0 comments 0 reactions 1 assignee Claimed by @nthmost-orkes View on GitHub
bug
Dominant language
Java
Stars
32.2k
Forks
1k
Avg merge
2d 5h
Merged PRs (30d)
41

Description

**Describe the bug**

**Details**
Conductor version: 3.22.0
Persistence implementation: Postgres
Queue implementation: Postgres
Lock: Redis or Zookeeper? NO
Workflow definition:
```json
{
"name": "test",
"description": "Edit or extend this sample workflow. Set the workflow name to get started",
"version": 1,
"tasks": [
{
"name": "process_items",
"taskReferenceName": "process_items_ref",
"type": "DO_WHILE",
"items": "${workflow.input.itemList}",
"inputParameters": {},
"loopOver": [
{
"name": "http",
"taskReferenceName": "http_ref",
"inputParameters": {
"http_request": {
"uri": "https://api.example.com/process",
"method": "POST",
"body": {
"item": "${process_items_ref.output.loopItem}",
"index": "${process_items_ref.output.loopIndex}"
}
}
},
"type": "HTTP"
}
]
}
],
"inputParameters": [],
"outputParameters": {
"data": "${call_remote_api.output.response.body.data}",
"source": "${call_remote_api.output.response.body.source}"
},
"schemaVersion": 2,
"restartable": true,
"workflowStatusListenerEnabled": false,
"ownerEmail": "example@email.com",
"timeoutPolicy": "ALERT_ONLY",
"timeoutSeconds": 0
}
```

**To Reproduce**
Steps to reproduce the behavior:
1. Go to 'Definitions'
2. Click on 'Create workflow definition'
3. Put workflow definiton
4. Click save
5. See error

**Expected behavior**
That it can be created

**Additional context**
I think the WorkflowTaskValidator needs to be updated, as it does not reflect these changes.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.