This discussion is archived
1 Reply Latest reply: Nov 8, 2012 3:10 AM by viktor.jarolim RSS

OSM 7: Xquery to get OSM components

937113 Newbie
Currently Being Moderated
Hi,

I am trying to implement OSM v7.2 and still new to the xquery concept in OSM.
Is there a way to write an xquery to read osm specific components such as productspec and ordercomponent during point of decomposition?

I want to do a conditional check based on the productspec and ordercomponent.

Thanks
  • 1. Re: OSM 7: Xquery to get OSM components
    viktor.jarolim Explorer
    Currently Being Moderated
    Hi Could you be more specific and describe the use case better?
    What sort of behaviour would you like to achieve?
    Normally the decomposition rules represent the conditions which control how your order lines are moved from one decompsition stage to the next.
    If you want to have a bunch of order lines that get associated with a "functionA" component in the first stage and then you want to tak one subset and associate with functionA.systemA and a differetn subset with functionA.systemB you do two decomposition rules:

    functionA_to_systemA
    functionA_to_systemB

    and you associate a condition to each
    the condition evaluates an exquery expression for each line
    in the input data is the complete line item structure, so you can have logic based on the product spec, or any other properties,

    does this answer your question?

    regards
    Viktor

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points