An attempt to send an event to a process instance results in an 'EngineProcessWrongStateException' message.
Reason
A common reason for this error is that a message
is sent to a receive or pick activity to create a new process instance, but
a new process instance cannot be instantiated. This situation occurs if the
values that are passed with the message for the correlation set that is used
by this activity match an existing process instance, which is already in the
failed state.
Resolution
To correct this problem you must either
delete the existing process instance, or pass a correlation set value that
does not match an existing process instance. For more information about using
correlation sets in BPEL processes, see Correlation sets in BPEL processes.