Categorie: reference
Bijgewerkt: 2026-04-08
actionfield workflow actionfield1128
ActionField1128
Beschrijving: Create pdf from CAD. Custom: Nee
Propertiesbewerken
| Property | Type | Accessor |
|---|---|---|
| Document | Document | Root |
XMLbewerken
<Workflow Name="ActionField1128" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
<Description>Create pdf from CAD.</Description>
<Properties>
<Property Name="Document" Type="Document" Accessor="Root" Direction="In" />
<Property Name="BaseFileName" Type="String" Accessor="Internal" />
<Property Name="DrawingId" Type="Guid" Accessor="Internal" />
<Property Name="DWGExtension" Type="String" Accessor="Internal" Default=".dwg" />
<Property Name="PdfFileName" Type="String" Accessor="Internal" />
</Properties>
<Execution>
<UserContent Name="Pre" />
<Validation Name="Only export files with extension DWG" Condition="#getextension(#lower(${Document.FileName})) == ${DWGExtension}" MessageCode="3470">
<Parameter Name="FileName" Direction="In" Value="${Document.FileName}" />
</Validation>
<WorkflowCall Name="Check if document exist" WorkflowName="Document_CheckIfPhysicallyPresent">
<Parameter Name="Document" Direction="In" Value="${Document}" />
</WorkflowCall>
<Command Name="Open" CommandName="CadDocument_Open">
<Parameter Name="Document" Direction="In" Value="${Document}" />
<Parameter Name="ViewerId" Direction="Out" OutputProperty="${DrawingId}" />
</Command>
<WorkflowCall Name="Create pdf" WorkflowName="Cad_CreatePdf">
<Parameter Name="CadDocument" Direction="In" Value="${Document}" />
<Parameter Name="DrawingId" Direction="In" Value="${DrawingId}" />
<Parameter Name="BaseFileName" Direction="Out" OutputProperty="${BaseFileName}" />
<Parameter Name="PdfFileName" Direction="Out" OutputProperty="${PdfFileName}" />
</WorkflowCall>
<Command Name="Close" CommandName="CadDocument_Close">
<Parameter Name="ViewerId" Direction="In" Value="${DrawingId}" />
</Command>
<UserContent Name="Post" />
<View Name="View document" ViewName="ExternalDocumentViewer">
<Parameter Name="DownloadName" Direction="In" Value="${BaseFileName}.pdf" />
<Parameter Name="FileName" Direction="In" Value="${PdfFileName}" />
</View>
</Execution>
</Workflow>