You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using Kogito BPMN and DMN on a Wildfly application server (CDI environment).
I have 1 main process definition and about 7 subprocesses definitions.
In order to instantiate the main process, I inject the ProjectRuntime and the Application in a singleton bean which is initialized at @startup.
I have a @stateless session bean with a method where I want to start the main process instance. The singleton bean is injected is this session bean.
In the method where I want to start the process instance I use:
`
Application application = startBean.getApplication();
Processes processes = application.get(Processes.class);
Process<? extends Model> process = processes.processById(MAIN_PROCESS_ID); I got the error: "java.lang.IllegalStateException: Recursive update java.util.concurrent.ConcurrentHashMap.computeIfAbsent". I found a workaround, in that I instantiate all subprocesses:
processes.processIds().stream()
.filter(id -> !id.equals(MAIN_PROCESS_ID))
.forEach(processes::processById);
`
and then getting the main process, after all others are already in the map in the Processes object.
It would be nice to have this issue fixed.
Expected behavior
No response
Actual behavior
No response
How to Reproduce?
No response
Output of uname -a or ver
No response
Output of java -version
No response
GraalVM version (if different from Java)
No response
Kogito version or git rev (or at least Quarkus version if you are using Kogito via Quarkus platform BOM)
1.37.0.Final
Build tool (ie. output of mvnw --version or gradlew --version)
Intellij - mvn 3.8.1
Additional information
No response
The text was updated successfully, but these errors were encountered:
Now I have subprocesses that in turn have child subprocesses, and the fix I used previously is not working anymore, so I had to give numbers to process ids, like "main_process_1", "subprocess_11", "subprocess_112", and so on, then sort the process ids by their number in descending order, and initialise them, which is not so nice.
Describe the bug
I am using Kogito BPMN and DMN on a Wildfly application server (CDI environment).
I have 1 main process definition and about 7 subprocesses definitions.
In order to instantiate the main process, I inject the ProjectRuntime and the Application in a singleton bean which is initialized at @startup.
I have a @stateless session bean with a method where I want to start the main process instance. The singleton bean is injected is this session bean.
In the method where I want to start the process instance I use:
`
Application application = startBean.getApplication();
Processes processes = application.get(Processes.class);
Process<? extends Model> process = processes.processById(MAIN_PROCESS_ID);
I got the error: "java.lang.IllegalStateException: Recursive update java.util.concurrent.ConcurrentHashMap.computeIfAbsent". I found a workaround, in that I instantiate all subprocesses:
processes.processIds().stream()
.filter(id -> !id.equals(MAIN_PROCESS_ID))
.forEach(processes::processById);
`
and then getting the main process, after all others are already in the map in the Processes object.
It would be nice to have this issue fixed.
Expected behavior
No response
Actual behavior
No response
How to Reproduce?
No response
Output of
uname -a
orver
No response
Output of
java -version
No response
GraalVM version (if different from Java)
No response
Kogito version or git rev (or at least Quarkus version if you are using Kogito via Quarkus platform BOM)
1.37.0.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Intellij - mvn 3.8.1
Additional information
No response
The text was updated successfully, but these errors were encountered: