My Oracle Support Banner

Two Message Start Events In Process causes Runtime Fault "A variable with key "cm.caseId" is already declared in the current scope" (Doc ID 2312134.1)

Last updated on MAY 22, 2023

Applies to:

Oracle Business Process Management Suite - Version 11.1.1.7.0 and later
Information in this document applies to any platform.

Goal

Fault while using 2 start events based on polling service.

In a process if we have 2 start events of same type , we are seeing the following error (The case management related error is taking place when a BPM process is initiated through a DB polling. There is no case management defined in this
project.)

Stack trace seen in logs as follows
--------------------------------------------
<bpelFault><faultType>0</faultType><runtimeFault
xmlns="http://schemas.oracle.com/bpel/extension"><part name="summary"><summary>Variable
already declared. A variable with key "cm.caseId" is already declared in the current scope. This was an
internal error.

The flow was not generated correctly by the BPMN compiler. Contact Oracle Support
Services. Provide the error message, the composite source, and the exception stack trace in the log files
(with the logging level set to debug mode). </summary></part><part
name="detail"><detail>ORABPEL
-
02117 Variable already declared. A variable with key "cm.caseId" is already declared in the current
scope. This was an internal error. The flow was not generated correctly by the BPMN compiler. Contact
Oracle Support Services.

Provide the error message, the composite source, and the exception stack trace
in the log files (with the logging level set to debug mode). at
com.collaxa.cube.engine.core.Scope.__checkVariantDecl(Scope.java:1321) at
com.collaxa.cube.engine.core.Scope.dec
lareAndSet(Scope.java:829) at
oracle.bpm.bpmn.engine.model.runtime.util.ScopeUtils.setCaseId(ScopeUtils.java:65) at
oracle.bpm.bpmn.engine.model.runtime.microinstructions.MICaseManagementCallback.doExecute(MIC
aseManagementCallback.java:60) at
oracle.bpm.bp
mn.engine.microkernel.MIBase.execute(MIBase.java:34) at
oracle.bpm.bpmn.engine.microkernel.MISequenceBlock.doExecute(MISequen


 

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.