I've a simple product and component structure
At the ComponentRevision I've a property named as Risk, it's a integer 0,1,2 or 3
I need to create a property at ProductRevision that shows the highest value of the Risk of his components
So, at ProductRevision will shown Risk=3
How can I make this? Compound, Runtime, anyone can give some ideia?
this is how I am thinking.
add the property called risk for components.
make this risk property as bomline property.
once you load the product structure, bomline attribute will be shown along the component Revision in structure manager. You can use the ootb sort feature in structure manager to display the lowest, highest or unsorted value.
would this work for you considering you will not have the case to persist the highest value of risk on product?
You suggested a good tip, but won't worked for what I need... because I need to persist this value later at ProductRevision... I'll use this value later in WF.
Do you have any other idea?
I think you would have to customize teamcenter to traverse the ProductRevision structure and compute the maximum risk value. Once computed you can store it as a product revision attribute.
I would suggest a separate menu in structure manager that triggers a java SOA code that can be run in structure manager once the structure is loaded. I would not suggest to link this code to BOM save (via portal customization) or link it to BOMLine extensions as then it would be applicable for all types of structures in the structure manager.