D. Portier
2007-01-03 19:49:31 UTC
Hello,
I have implemented the interface
com.ibm.commerce.fulfillment.commands.CheckInventoryCmd to have a custom
inventory check.
This check is done on a legacy system and provides some alternatives if the
there ain't enough inventory. If that's the case I throw a subclass
of EcApplicationException. On this subclass there is a method by which i can
access the different alternatives.
I thought this behaviour is justified. As long as i directly call the
checkinventory task command it behaves as espected, however if
the task is called inderectly - e.g via the orderitemaddcmd or
orderitemupdatecmd - then I receive an EcSystemException! This way I can
not access the alternatives.
My question is, how can should I handle the inavaliability properly so that
my ultimate client can access the the alternatives provided by
the backend system?
Daniel Portier
I have implemented the interface
com.ibm.commerce.fulfillment.commands.CheckInventoryCmd to have a custom
inventory check.
This check is done on a legacy system and provides some alternatives if the
there ain't enough inventory. If that's the case I throw a subclass
of EcApplicationException. On this subclass there is a method by which i can
access the different alternatives.
I thought this behaviour is justified. As long as i directly call the
checkinventory task command it behaves as espected, however if
the task is called inderectly - e.g via the orderitemaddcmd or
orderitemupdatecmd - then I receive an EcSystemException! This way I can
not access the alternatives.
My question is, how can should I handle the inavaliability properly so that
my ultimate client can access the the alternatives provided by
the backend system?
Daniel Portier