Red Hat Bugzilla – Bug 1248451
PerProcessInstanceRuntimeManager should not issue a WARN message for process start commands
Last modified: 2016-01-08 16:48:48 EST
Description of problem:
The following WARN message is emitted when a process (deployed with process instance strategy) is started with correlation key:
(http-localhost/127.0.0.1:8080-3) ProcessInstanceIdContext or
CorrelationKeyContext shall be used when interacting with
PerProcessInstance runtime manager
As per a discussion with Marco:
"This is normal and "logical": when you _start_ a new process, there is no ProcessInstanceId- or CorrelationKeyContext yet!
To be slightly more specific: when using a PerProcessInstanceRuntimeManager, the context is created when (after) the process instance is created.
The problem is that in order to not have that message at that particular time, we also need to know which command is being executed: in particular, we need to know whether or not a process instance is being created or not.
The message _should_ be produced if there is already an existing process instance related to the operation ("abort process instance" or "signal process instance", for example)."
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create a simple process, deploy it with process instance strategy
2. Using REST command, start the process with correlation key:
<?xml version="1.0" encoding="UTF-8"?>
Process is started, WARN message is printed
Process is started, no further WARN message