Skip to content

[FEEL] Add a tip on how to get the current index inside a loop #5334

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
saig0 opened this issue Mar 21, 2025 · 0 comments · Fixed by #5388
Closed

[FEEL] Add a tip on how to get the current index inside a loop #5334

saig0 opened this issue Mar 21, 2025 · 0 comments · Fixed by #5388
Assignees
Labels
target:8.6 Issues included in the 8.6 release target:8.7 Issues included in the 8.7 release target:8.8 Issues included in the 8.8 release triage-march

Comments

@saig0
Copy link
Member

saig0 commented Mar 21, 2025

Description

In some cases, I have a FEEL expression with a for-loop and need to get the current element's index.

There is a trick: count(partial) calculates the current index.

Let's share this tip in the FEEL documentation.

Relevant docs:

Related Slack discussion: https://camunda.slack.com/archives/C01QYD808A3/p1742481110327559

@saig0 saig0 added target:8.6 Issues included in the 8.6 release target:8.7 Issues included in the 8.7 release target:8.8 Issues included in the 8.8 release labels Mar 21, 2025
@saig0 saig0 self-assigned this Mar 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
target:8.6 Issues included in the 8.6 release target:8.7 Issues included in the 8.7 release target:8.8 Issues included in the 8.8 release triage-march
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants