Announcement

Collapse
No announcement yet.

Questions about BN Number Generator and Shipments

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Questions about BN Number Generator and Shipments

    Hi everyone,

    I have a couple of questions about BN generators and shipments:

    1) Why are shipment IDs not generating in exact running sequence?
    2) Is the Shipment ID BN generator shared across all shipment object types (Buy/Sell/Group/Secondary Charge)
    3) How can we have a different BN generator for Buy and Sell shipments?"

    Appreciate any help on this!

    Thanks!
    Ian

  • #2
    Re: Questions about BN Number Generator and Shipments

    Hi Ian,

    I haven't worked on BN Generator anytime,but a quick look at the code, this is what i found out. Please correct me if i am wrong.

    1) Why are shipment IDs not generating in exact running sequence?

    There is a propery in the glog.base.properties - 'glog.server.bngenerator.oracleSequence' . While generating the xid, the BNEngine looks for this property, and if its not definied, it generates the xid using the BNSequence.

    I am not exactly sure why an exact running sequence is not getting generated, but when a shipment xid is generated, the BNEngine makes an entry into the BN_SEQUENCE talbe, updating the currValue. So when a shipment is getting generated next time, it picks up the currValue from this table for this Shipment BN Rule and generates a new sequence number for the xid.

    2) Is the Shipment ID BN generator shared across all shipment object types (Buy/Sell/Group/Secondary Charge)

    For both 'Buy' and 'Sell' its the same Shipment ID BN generator.

    Group has a seperate BN GEnerator. Not sure about Secondary Charge.

    3) How can we have a different BN generator for Buy and Sell shipments?

    Not sure if this is possible. Its the same set of classes used to generate the shipment,both buy and sell. Its the shipmentBean that gets invoked and this bean generates the PK irrespective of the perspective. Even if you see the BN Rule, there is only one rule defined for Shipment. No seperate rules for Buy and Sell.

    Hope this info helps.

    Thanks,
    Satya.

    Comment


    • #3
      Re: Questions about BN Number Generator and Shipments

      Hi Ian,

      About the running sequence, we have not experienced any problems with the running sequence that you mentioned. I might be able to get a better idea of the problem if you let me know the Rule Definition Syntax.

      About how to have different BN Rules for Buy and Sell Shipments; we have achieved this by having a parent domain for the Buy Shipments and one child domain for each customer where the Sell Shipments are created. Every Domain has a different Shipment BN Rule.

      Hope this helps,

      Alejandro B.

      Comment


      • #4
        Re: Questions about BN Number Generator and Shipments

        Hi everyone,

        Thanks for your replies! If Buy and Sell both share the same shipment ID BN generator then it would make sense that there would be skips in the Buy shipment IDs and Sell shipment IDs

        Thanks for all your replies!

        Ian

        Comment

        Working...
        X