CopyToClipboard
Node Action:
The CopyToClipboard node action puts a string of data into the clipboard.
Parameters:
se_type
CopyToClipboard
se_type = CopyToClipboardse_determineData
A lambda to build up the string to put in the clipboard.
Example:
Get DSR Representation: The following workflow allows you to copy the Design State Resource (DSR) to the clipboard.
digraph finite_state_machine {
splines=spline;
edge[arrowsize=1, color=black];
node[shape = box, color = green];
entry[
label = "Copy Design Inf to Clipboard",
shape= invhouse,
height = 1,
se_type2 = DesignToolTrigger,
se_displayName2 = "Copy Design Info (DT)"
se_iconUrl2 = "https://arcfmazuredev.blob.core.windows.net/img/CompleteDesign.png",
se_deferUntilOnline2 = false,
se_requiresInternet2 = true,
se_sortOrder2 = 0,
se_visibilityCondition2 = "function (ctx, msLogger) {
return true && ctx.Event.design.name != \"Demo - 2024.03.15.01\";
}"
se_type6 = GetDesignStateResource,
se_determineAssignmentId6 = "function (ctx, msLogger) {
return ctx.Event.assignment.id;
}",
se_resultVariable6 = Dsr
];
exit[
label= "Complete",
shape=invhouse,
color="#22FF44",
style=filled,
se_type1 = Action,
se_action1 = "function (ctx, log) {
ctx.Output.Cancel = true;
}",
];
copyToClipboard[
label = "Copy to Clipboard"
se_type1 = CopyToClipboard,
se_determineData1 = "function (ctx, log) {
var newtonsoft = importNamespace('Newtonsoft.Json');
return newtonsoft.JsonConvert.SerializeObject(ctx.State.Dsr);
}",
]
showToast[
label = "Notify User Copy Succeeded",
se_type1 = NotifyUser,
se_message1 = "Component Details Copied to Clipboard",
]
entry->copyToClipboard;
copyToClipboard->showToast;
showToast->exit;
}