Skip to content
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

Array length function for conditions #282

Closed
retgits opened this issue May 24, 2018 · 2 comments
Closed

Array length function for conditions #282

retgits opened this issue May 24, 2018 · 2 comments
Assignees
Milestone

Comments

@retgits
Copy link
Contributor

retgits commented May 24, 2018

I'm submitting a ... (check one with "x")

[] bug report => search github for a similar issue or PR before submitting
[X] feature request
[] support request
[] general question

Current behavior (how does the issue manifest): I'd like to be able to create conditions on a branch using the length of an array as part of the condition (like len(array) < 3)

Expected behavior: len(array) < 3 would resolve to true if the array contains less than 3 items

What is the motivation / use case for changing the behavior? I'm building CLI apps using Flogo and this gives me the opportunity to check the number of items passed to the flow

Please tell us about your environment (Operating system, docker version, browser & web ui version, etc): Windows 10, Flogo Web UI 0.5.4

Flogo version (CLI & contrib/lib. If unknown, leave empty or state unknown):

λ flogo version
flogo cli version [v0.5.4]
Your project uses github.com/TIBCOSoftware/flogo-contrib version v0.5.4
Your project uses github.com/TIBCOSoftware/flogo-lib branch issue-281 and revision 9a3a1b6f8de1d1f87c8ce6f693cf8e591f8629c5
Your project uses github.com/retgits/flogo-components branch master and revision f4aaca1b810a517fd15bfde85e0d6a0779771069
@retgits
Copy link
Contributor Author

retgits commented May 24, 2018

I've created a PR for it 😀 TIBCOSoftware/flogo-lib#185

@retgits
Copy link
Contributor Author

retgits commented May 31, 2018

Closing as the PR is merged so it is now supported

@retgits retgits closed this as completed May 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants