Modify – Manipulating graphs by rules

General

modify allows you to identify a specific subgraph within a host graph and alter its attribute(s) or add/delete elements.

Example code:

1  rule createBOMHierarchy{      //LHS
2  
3    child:Part;
4    parent:BomNode;
5    
6    if {parent.id == child.parentid && parent.productid == child.productid; }
7
8    modify{                      //RHS
9       parent -:Contains-> child;
10   }
11 }

This code example can be found in our Soley Studio Tutorial.

Where is it used:

More Examples can be found in these Packages:

BoM-Kit

Was this article helpful?

Related Articles