MultiComponentToolTrigger

Node Action:

This is a workflow trigger that places a button on the click wheel under Tasks when a multiple components are selected.

Parameters:

se_type

MultiComponentToolTrigger

se_type = MultiComponentToolTrigger

se_visibilityCondition

se_visibilityCondition = "(ctx, log) => { return true; }"

Contains code that must return a bool indicating when the task button should be visible on the click wheel.

se_displayName

The display name of the task button on the click wheel.

se_iconUrl

The URL for the icon of the task button on the click wheel.

se_iconService

The service for the icon of the task button on the click wheel.

se_requiresConnection

A bool to require internet connectivity to enable the button.

se_sortOrder

The order in which the workflow button appears in the list of buttons on the click wheel.

Example

Set Property On Components: Sets a NewTestProperty on the selected components.

digraph workflow {

  entry[
    se_type0 = MultiComponentToolTrigger,
    se_displayName0 = "Update attribute for components"
    se_iconService0 = ""
    se_iconUrl0 = ""
    se_requiresConnection0 = false,
    se_sortOrder0 = 0,
    se_visibilityCondition0 = "(dynamicStateMachineContext, msLogger) => {
      return true;
    }"
  ]
  
UpdateComponents[

  se_type0 = SetPropertyOnComponents,
  se_determineValuesByComponent0 = "(dynamicStateMachineContext, msLogger) => {
    var componentInfos = dynamicStateMachineContext.Event[\"componentInfos\"];
    var ids = new List<string>();
    foreach(var componentInfo in componentInfos)
    {
      ids.Add(componentInfo.component.id.ToString());
    }
    
    var workRequest = dynamicStateMachineContext.Event[\"workRequest\"].name.ToString();
    
    return ids.ToDictionary(i => i, _ => workRequest);
  }",
  se_propertyName0 = "NewTestProperty"
  se_resultVariable0 = ""


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