SessionOperationTrigger

Node Action:

This node action is used in the entry node of a workflow to specify that when a single session is selected in the Session Manager window, a button appears in the list of buttons above the Session Details tab that triggers the workflow when clicked.

Parameters:

se_type

SessionOperationTrigger

se_type = SessionOperationTrigger

se_visibilityCondition

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

Contains code that must return a bool indicating when the workflow button should be visible in the respective list of buttons in Session Manager.

se_displayName

The display name of the workflow button in Session Manager.

se_isPrimaryOperation

Indicates whether the workflow represents a primary session operation. If true, the workflow is executed upon session 'double-click' or from the session drop-down list on the Session Manager ribbon.

se_sortOrder

The order in which the workflow button appears in the list of buttons in Session Manager.

Example:

Session Operation with Icon Xaml: This example illustrates how to properly use the SessionOperationTrigger node action where the icon is defined by XAML.

digraph workflow {
  
  entry[
    label = "Session Operation #1 Button"
    se_type0 = SessionOperationTrigger
    se_isPrimaryOperation0 = true,
    se_displayName0 = "Session Operation #1",
    se_sortOrder0 = 10,
    se_showButtonText0 = false,
    se_visibilityCondition0 = "(ctx, log) => {
      return ctx.Event.assignment.assignedTo == ctx.User.UserId && 
            (ctx.Event.isSessionOpen == null || ctx.Event.isSessionOpen == false);
    }",
    se_iconXaml0 = "
      <Canvas
        Width=\"32\"
        Height=\"32\"
        SnapsToDevicePixels=\"True\">
        <Path
            Data=\"M 1.0857284,26.93696 V 4.4772093 h 9.1557426 l 1.885006,2.5267215 16.426478,0.1403736 v 3.2285896\"
            Fill=\"{StaticResource SE_SkyBlueBrush}\"
            Stroke=\"{DynamicResource SE_DarkGrayBrush}\"
            StrokeEndLineCap=\"Round\"
            StrokeMiterLimit=\"1.0\"
            StrokeStartLineCap=\"Round\"
            StrokeThickness=\"2.0\" />
        <Path
            Data=\"M 31.245822,11.074762 26.937236,27.217706 1.0857284,27.077332 6.2021726,11.074762 H 31.111178\"
            Fill=\"{DynamicResource SE_WhiteBrush}\"
            Stroke=\"{DynamicResource SE_DarkGrayBrush}\"
            StrokeEndLineCap=\"Round\"
            StrokeMiterLimit=\"1.0\"
            StrokeStartLineCap=\"Round\"
            StrokeThickness=\"2.0\" />
      </Canvas>"
  ]
  
  exit[
    shape = invhouse, 
    color = "#22FF44", 
    style = filled
  ]

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

Was this helpful?