cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Modifying hybris order Sourcing

OlaAmr
Explorer
0 Kudos
744

I am building custom order management extensions based of yacceleratorordermanagement. I want to change the sourcing logic at all.

Searched for the sourcingservice bean and could not find a corresponding java file, nor does the fitness stuff.

How can i change all that to fit my requirements, or should i simply have a java code instead of the sourcing? if so i wanna know how is the sorting process done?

Accepted Solutions (0)

Answers (2)

Answers (2)

crescenzorega
Active Participant
0 Kudos

Hi, if it's just to do a test you can implement your own strategy that calls them both and let you print the result in the logs

OlaAmr
Explorer
0 Kudos

No this is not a test. Customer doesn't want to go strategies in series. He wants them in parallel and compare the result of each strategy to get the least distance.

Can i do this in the sourcing process? If yes, how?

If no.. where can i find the logic done for the fitness and allocation to imitate it? I can only find the beans but no java classes

crescenzorega
Active Participant
0 Kudos

Hi, try to read

Extending Strategies

You can extend sourcing strategies by:

  1. Implementing the sourcing strategy interface.
  2. Adding the beans in the Spring configuration.


https://help.sap.com/viewer/9d346683b0084da2938be8a285c0c27a/1905/en-US/8c622a428669101493b6dfad33e8...

OlaAmr
Explorer
0 Kudos

Thanks a lot.

I just want to compare the output of 2 strategies, "no splitting" and "no restrictions strategy" then get the best result in terms of distance. Hybris doesn't allow you to go back. How can i solve this problem?