Skip to content

Conversation

@caleeli
Copy link
Contributor

@caleeli caleeli commented Sep 26, 2025

Implement the Events and Logic in Backed for Conditional Destination

Related Tickets & Packages


$this->feel->setBody($condition);
try {
$result = ($this->feel)($data);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a new instance is created for everi conditions, if we have 10 then then instances will be created

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$this->feel callable is created once in the constructor, at this line to get the reference of the callable I had to use ($this->feel) to avoid confution with normal functions, but it is not creating a new instance for each condition.

@rodriquelca rodriquelca self-requested a review September 26, 2025 15:33
@processmaker-sonarqube
Copy link

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarQube

@caleeli caleeli merged commit 0b6d83a into feature/FOUR-26707 Sep 26, 2025
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants