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

Preserve variables when using Timer Start Event #4594

Open
dragoscalinescu opened this issue Feb 19, 2024 · 0 comments
Open

Preserve variables when using Timer Start Event #4594

dragoscalinescu opened this issue Feb 19, 2024 · 0 comments

Comments

@dragoscalinescu
Copy link

I'm doing something pretty basic. I want to register a process to be executed in an infinite loop, while keeping the variables it received initially.

<process id="my-process" name="my-process" isExecutable="true">
 <startEvent id="startEvent" name="startEvent">
        <timerEventDefinition>
            <timeCycle>0 0/1 * * * ?</timeCycle>
        </timerEventDefinition>
 </startEvent>
 ...

I register this once:

runtimeService.startProcessInstanceByKey("my-process", Map.of("key", "value"));

The first run has the variable, but the subsequent runs do not.

Is there any way to keep the initial variables for all the process instances created by the timer start event? Or is there a workaround? Thank you!

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

No branches or pull requests

1 participant