GenerateDocumentDialog
Node Action:
The GenerateDocumentDialog node action allows you to set the document options through a dialog then generate a design print PDF.
Parameters:
se_type
GenerateDocumentDialog
se_type = GenerateDocumentDialogse_resultVariable
The variable name to store the document file path.
Example:
Generate Document: The following workflow allows you to create a PDF print.
digraph finite_state_machine {
splines=spline;
edge[arrowsize=1, color=black];
node[shape = box, color = green];
entry[
label = "Print Tool - Generate Document",
shape= invhouse,
height = 1,
se_type1 = PrintToolTrigger
se_displayName1 = "Generate Document",
se_iconService1 = KvStorage,
se_iconUrl1 = "/api/v1/global/_attachment/SE.Geospatial.Designer/Settings/PrintTools/GenerateDocument",
se_sortOrder1 = 10,
se_visibilityCondition1 = "function (ctx, log) {
return true;
}"
];
generateDocument[
label = "Show generate document dialog"
se_type1 = GenerateDocumentDialog,
se_resultVariable1 = GeneratedDocumentPath
]
openDefaultPdfViewer[
label = "Open default PDF viewer"
se_type0 = LaunchUriScheme,
se_determineUri0 = "function (ctx, log) {
return ctx.State.GeneratedDocumentPath;
}"
]
exit[
label= "Complete",
shape=invhouse,
style=filled
]
entry->generateDocument;
generateDocument->openDefaultPdfViewer[
se_type = Condition,
se_condition = "function (ctx, log) {
return ctx.State.GeneratedDocumentPath != null;
}"
]
openDefaultPdfViewer->exit;
generateDocument->exit[
se_type = Condition,
se_condition = "function (ctx, log) {
return ctx.State.GeneratedDocumentPath == null;
}"
]
}