cancel
Showing results for 
Search instead for 
Did you mean: 

how to avoid NoSuchProcessDefinitionException error in hybris

Former Member
0 Kudos

Hi All,

I have this problem occuring out of nowhere. wherein the order-process.xml doesn't get picked up and an exception: NoSuchProcessDefinitionException is thrown. When i add the order-process.xml content through HMC (Dynamic Process Definition) the error is not encountered.

From the forum and one of colleagues i understood that when the server is restarted when the order-process is still running, this error comes. my question is: how to avoid this error i.e. if i dont want to have a dynamic process definition and want that the process should be picked up from the physical file, how can that be achieved and how to ensure that no process is running before restarting hybris server.

Former Member
0 Kudos

I also do face the same issue in 6.2. even after initialize and install the accelerator again also i had the same issue. If i delete hybris folder and unzip, reinstall accelerator to get back to process working. this issue really bothering as i have no solution to update the order-process.xml. more over we don't get any response from Hybris.

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member844475
Discoverer
0 Kudos

Hello,
May be you have to add a bean of type ProcessDefinitionResource like this:

<!-- Process resources definition -->
<bean id="forgottenPasswordProcessDefinitionResource"
      class="de.hybris.platform.processengine.definition.ProcessDefinitionResource" >
 <property name="resource" value="classpath:/commerceservices/processes/forgottenPasswordProcess.xml"/>
</bean>
former_member537989
Contributor
0 Kudos

This is thrown because process definition hash code stored as part of process instance is different from process definition hash code from the definition file, it might appear due to a change in the definition file (new version deployed?), so you need to find why it's happening. One of the approaches of overcoming such error will be to redeclare the process definition identification so when a process instance is being created the corresponding process definition is saved as part of process instance and then used in runtime instead of comparing with file definition.

Former Member
0 Kudos

Hi,

In hybris admin console, run a flexible search query - select from {orderprocess} and check value of endmessage property for the order process you want to modify the definition. It should be "order placed" if that process is successfully completed.

Thanks,

Reena