CompleteAssignmentTrigger
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 under the Workflows section that triggers the workflow when clicked.
Parameters:
se_type
CompleteAssignmentTrigger
se_type = CompleteAssignmentTrigger
se_visibilityCondition
se_visibilityCondition = "(ctx, log)
=> { return false; }"
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_iconUrl
The URL for the icon of the workflow button in Session Manager.
se_iconService
The service for the icon of the workflow button in Session Manager.
se_iconXaml
se_iconXaml = "
<Canvas
Width=\"20\"
Height=\"20\"
Margin=\"1\"
SnapsToDevicePixels=\"True\">
<!-- Insert Icon Components -->
</Canvas>
"
The XAML for the icon of the workflow button in Session Manager.
se_sortOrder
The order in which the workflow button appears in the list of buttons in Session Manager.
Example
Complete Assignment with Icon Url: This example illustrates how to properly use the CompleteAssignmentTrigger node action, where the icon is defined by a URL.
digraph workflow {
entry[
se_type0 = CompleteAssignmentTrigger,
se_displayName0 = "Complete Assignment"
se_iconUrl0 = "https://mysubscription.blob.core.windows.net/img/assignmentIcon.png"
se_requiresConnection0 = false,
se_sortOrder0 = 100,
se_visibilityCondition0 = "(ctx, log) => {
return ctx.Event.assignment.assignedTo == ctx.User.UserId && ctx.Event.isSessionOpen == true;
}"
]
exit[
shape = invhouse,
color = "#22FF44",
style = filled
]
entry -> exit
}