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

FOUR-8708 (for develop branch): Object data cannot be referenced in assigment rule #4875

Merged
merged 3 commits into from Sep 16, 2023

Conversation

danloa
Copy link
Contributor

@danloa danloa commented Jun 14, 2023

Issue & Reproduction Steps

Step 1: Create a simple script to have and object as seen below:
$banker = [
"id"=> 3,
"name" => "Briana Banker",
"email" => "solutions+banker@processmaker.com",
"bankerCoreCode" => "AMR",
"costCenterCode" => "2000"
];
return ["banker" => $banker];

Step 2: Create a task to use the banker.id as assignment rule:
image

Step 3: You should have a process as shown below then test the process:
image

The error below shows:
image

The expected behavior is that the request will be assigned to the assigned variable banker.id

Solution

  • It was changed the way that the request data is accessed to allow dot notation

How to Test

Execute the reproduction steps again and the assignment should go to the desired user.

Related Tickets & Packages

https://processmaker.atlassian.net/browse/FOUR-8708

Code Review Checklist

  • I have pulled this code locally and tested it on my instance, along with any associated packages.
  • This code adheres to ProcessMaker Coding Guidelines.
  • This code includes a unit test or an E2E test that tests its functionality, or is covered by an existing test.
  • This solution fixes the bug reported in the original ticket.
  • This solution does not alter the expected output of a component in a way that would break existing Processes.
  • This solution does not implement any breaking changes that would invalidate documentation or cause existing Processes to fail.
  • This solution has been tested with enterprise packages that rely on its functionality and does not introduce bugs in those packages.
  • This code does not duplicate functionality that already exists in the framework or in ProcessMaker.
  • This ticket conforms to the PRD associated with this part of ProcessMaker.

.

@processmaker-sonarqube
Copy link

@ryancooley ryancooley merged commit f04d218 into develop Sep 16, 2023
6 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
3 participants