SetPropertyOnComponent

Node Action:

The SetPropertyOnComponent node action sets a single property on a component.

Parameters:

se_type

SetPropertyOnComponent

se_type = SetPropertyOnComponent

se_componentId

The ID of the component to update.

se_determineComponentId

A lambda to create the component ID.

se_propertyName

The property name to add or update.

se_value

The value of the property.

se_determineValue

A lambda to create the value to set.

se_resultVariable

Future functionality to set the updated component to a result variable.

Example:

Set Component Attribute: Sets the class property on the selected component.

digraph workflow {

entry[
    label = "Set Component Attribute", 
    shape= invhouse,
    height = 1,
    
    se_type0 = ComponentToolTrigger,
    se_displayName0 = "Set Component Attribute"
    se_iconService0 = ""
    se_iconUrl0 = ""
    se_requiresConnection0 = false,
    se_sortOrder0 = 0,
    se_visibilityCondition0 = "(dynamicStateMachineContext, msLogger) => {
      return true;
}",

  ]; 
  
UpdateComponent[
   se_type0 = SetPropertyOnComponent,
se_componentId0 = ""
se_determineComponentId0 = "(dynamicStateMachineContext, msLogger) => {
  return dynamicStateMachineContext.Event.component.id.ToString();
}",
se_propertyName0 = "class"
se_resultVariable0 = ""
se_value0 = "4"

   

]
  


entry -> UpdateComponent
UpdateComponent -> exit
}
Feedback
QR Code is a registered trademark of DENSO WAVE INCORPORATED in Japan and other countries.