on 08-27-2015 2:07 PM
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.
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>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.