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

ActionField1135

Beschrijving: Upload a Document to JobPlan. Custom: Nee

Propertiesbewerken

Property Type Accessor
JobPlan JobPlan Root
AskForDocumentType Boolean Optional
AskForSite Boolean Optional
DocumentContext Context Optional
FileFilter String Optional
FileSystemPath FileSystemPath Optional
MaximumNumberOfFiles Int32 Optional

XMLbewerken

<Workflow Name="ActionField1135" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Upload a Document to JobPlan.</Description>
	<Properties>
		<Property	Name="JobPlan"				Type="JobPlan"			Accessor="Root"		Direction="In" />

		<Property	Name="AskForDocumentType"	Type="Boolean"			Accessor="Optional"	Direction="In"		Default="#{Settings.DocumentUpload.AskForDocumentType}"	Comment="Ask for a DocumentType" />
		<Property	Name="AskForSite"			Type="Boolean"			Accessor="Optional"	Direction="In"		Default="#{Settings.DocumentUpload.AskForSite}"			Comment="Ask for a Site" />
		<Property	Name="DocumentContext"		Type="Context"			Accessor="Optional"	Direction="In"		Default="DocumentContext.Standard"						Comment="Create Document with this context" />
		<Property	Name="FileFilter"			Type="String"			Accessor="Optional"	Direction="In"																Comment="Select only files with this filter" />
		<Property	Name="FileSystemPath"		Type="FileSystemPath"	Accessor="Optional"	Direction="In"																Comment="Location of the files" />
		<Property	Name="MaximumNumberOfFiles"	Type="Int32"			Accessor="Optional"	Direction="In"		Default="1"												Comment="Maximum number of files to be uploaded" />

		<Property	Name="UploadedDocuments"	Type="List[Document]"	Accessor="Internal" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<WorkflowCall Name="UploadDocuments" WorkflowName="UploadDocuments" Comment="Call workflow to move the files from the Upload path to the Media path and creates Document objects">
			<Parameter	Name="AskForDocumentType"	Direction="In"		Value="${AskForDocumentType}" />
			<Parameter	Name="AskForSite"			Direction="In"		Value="${AskForSite}" />
			<Parameter	Name="DocumentContext"		Direction="In"		Value="${DocumentContext}" />
			<Parameter	Name="FileFilter"			Direction="In"		Value="${FileFilter}" />
			<Parameter	Name="MaximumNumberOfFiles"	Direction="In"		Value="${MaximumNumberOfFiles}" />
			<Parameter	Name="FileSystemPath"		Direction="InOut"	Value="${FileSystemPath}"		OutputProperty="${FileSystemPath}" />
			<Parameter	Name="UploadedDocuments"	Direction="Out"										OutputProperty="${UploadedDocuments}" />
		</WorkflowCall>

		<Transaction>
			<ForEach Name="Foreach Document in UploadedDocuments" In="${UploadedDocuments}" As="Document">
				<Assign Name="Set document to JobPlan" Property="${JobPlan.Document}" Value="${Document}" />
			</ForEach>
		</Transaction>

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