Jump to content

Set a property from a "parent" capsule to a "child" capsule


Recommended Posts

  • Seeq Team

When working with Conditions, it may be helpful to apply a property from another Condition with larger time frames, e.g. batch procedures, orders, and equipment states.

 20190428_ParentPropertyToChildProperty1.png

Here is one approach:

$childCondition.transform($cap ->
     $cap.setProperty('Stage', 
          $ParentCondition.toGroup($cap).first().getProperty('Value')
     )
)

$childCondition are the red capsules and ‘Stage’ is the property that you will create with the ‘Value’ property from the green $parentCondition.

20190428_ParentPropertyToChildProperty2.png

  • Like 2
Link to comment
Share on other sites

  • 4 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...