Categorie: reference Bijgewerkt: 2026-04-08 actionfield workflow actionfield714

ActionField714

Beschrijving: Upload a file and replace the current file for this Document. Custom: Nee

Propertiesbewerken

Property Type Accessor
Document Document Root
FileFilter String Optional

XMLbewerken

<Workflow Name="ActionField714" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Upload a file and replace the current file for this Document.</Description>
	<Properties>
		<Property	Name="Document"			Type="Document"		Accessor="Root"		Direction="In" />

		<Property	Name="FileFilter"		Type="String"		Accessor="Optional"	Direction="In"		Comment="Select only files with this filter" />

		<Property	Name="UploadedFileName"	Type="String"		Accessor="Internal" />
		<Property	Name="UploadedFiles"	Type="List[String]"	Accessor="Internal" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<Validation Name="FilesystemPath" Condition="${Document.FileSystemPath} != Empty" MessageCode="0844" />
		<Validation Name="Check FileSystemPath" Condition="${Document.FileSystemPath.FileServicePath} != Empty" MessageCode="0847">
			<Parameter	Name="FileSystemPath"	Direction="In"		Value="${Document.FileSystemPath}" />
		</Validation>

		<SystemDialog Name="FileUploadDialog" DialogName="FileUploadDialog">
			<Parameter	Name="FileFilter"			Direction="In"		Value="${FileFilter}" />
			<Parameter	Name="MaximumNumberOfFiles"	Direction="In"		Value="1" />
			<Parameter	Name="UploadedFiles"		Direction="Out"								OutputProperty="${UploadedFiles}" />
		</SystemDialog>

		<SingleItemValidation Name="Get UploadedFileName" List="${UploadedFiles}" OutputProperty="${UploadedFileName}" MessageCode="0000" AllowEmpty="False" />

		<Command Name="MoveFileToFileService" CommandName="MoveFileToFileService" Comment="Move files to fileservice">
			<Parameter	Name="DomainObjectToGeneratePrefix"	Direction="In"		Value="${Document}" />
			<Parameter	Name="FileSystemPath"				Direction="In"		Value="${Document.FileSystemPath}" />
			<Parameter	Name="FileToMove"					Direction="In"		Value="${UploadedFileName}" />
			<Parameter	Name="NewFileName"					Direction="In"		Value="${Document.FileName}" />
		</Command>

		<UserContent Name="Post" />
	</Execution>
</Workflow>