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

DelegateExecution Input of Parallel User Tasks Based On Collection Expression Different #4821

Open
1 task
huangliang992 opened this issue Nov 29, 2024 · 2 comments
Assignees
Labels
type:bug Issues that describe a user-facing bug in the project.

Comments

@huangliang992
Copy link

huangliang992 commented Nov 29, 2024

Environment (Required on creation)

Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket)

like the test in camunda-engine test shows, the test mehtod testParallelUserTasksBasedOnCollectionExpression in MultiInstanceTest shows, the input DelegateExecution delegateExecution in different loops not same as each other.

@Deployment
  @Ignore
  @Test
  public void testParallelUserTasksBasedOnCollectionExpression() {
    DelegateEvent.clearEvents();

    runtimeService.startProcessInstanceByKey("process",
        Variables.createVariables().putValue("myBean", new DelegateBean()));

    List<DelegateEvent> recordedEvents = DelegateEvent.getEvents();
    assertEquals(2, recordedEvents.size());

    assertEquals("miTasks#multiInstanceBody", recordedEvents.get(0).getCurrentActivityId());
    assertEquals("miTasks#multiInstanceBody", recordedEvents.get(1).getCurrentActivityId()); // or miTasks

    DelegateEvent.clearEvents();
  }

reason
in the method prepareScopeExecution of class ParallelMultiInstanceActivityBehavior the code line scopeExecution.setActivity(null); changed the activity of exectution

Steps to reproduce (Required on creation)

run the test mehtod testParallelUserTasksBasedOnCollectionExpression in MultiInstanceTest can reproduce the bug

Observed Behavior (Required on creation)

Expected behavior (Required on creation)

Root Cause (Required on prioritization)

Solution Ideas

Hints

Links

Breakdown

Pull Requests

  1. huangliang992

Dev2QA handover

  • Does this ticket need a QA test and the testing goals are not clear from the description? Add a Dev2QA handover comment
@huangliang992 huangliang992 added the type:bug Issues that describe a user-facing bug in the project. label Nov 29, 2024
@yanavasileva yanavasileva self-assigned this Nov 29, 2024
@yanavasileva
Copy link
Member

Hi @huangliang992,

Thank you for raising this, I will have a look and get back to you with feedback.

Best,
Yana

@yanavasileva
Copy link
Member

might be duplicate of #2082

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Issues that describe a user-facing bug in the project.
Projects
None yet
Development

No branches or pull requests

2 participants