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

[bug]: flow_globals.process_id is overwritten when starting a new process in a service task #703

Open
Hegyvari opened this issue Feb 15, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@Hegyvari
Copy link

Flows for APEX version

23.1 (latest)

Oracle Database version

19c

Oracle APEX version

19.2 and lower (unsupported)

Have you used the BPMN-Linter in Flow Designer to Validate your Diagram?

Yes

What happened?

We have a process with a service task. The service task will start "subprocesses" for the current process, which involves calling the flows engine flow_start. At this moment the subprocess will start running and overwrite the global variable with its own process id. Once it stops whatever it is doing we get back to the main process which uses flow_globals.process_id to set a value in a message receive event and the value will not be the running process id but the one belonging to the subprocess.

The uploaded image is the part of the process which I have described.

image

I guess I will save this global before running the flow_start and restoring it after, maybe this is what the engine should also do as a fix.

Steps to reproduce

No response

Expected behaviour

have the actual running process id in this global variable.

@Hegyvari Hegyvari added the bug Something isn't working label Feb 15, 2024
@rallen2010
Copy link
Collaborator

Hi Krisztian - could you send me a copy of the diagram, or at least a bigger part of it. Richard Flowquest.consulting. There are definitely some limitations to send task/message throw and receive task /message catch in 23.1....

@Hegyvari
Copy link
Author

Hegyvari commented Feb 16, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants