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

ActionField654

Beschrijving: Copy textfields of ProblemJob to Job. Custom: Nee

Propertiesbewerken

Property Type Accessor
Job Job Root
AddTextAboveTotalTextList List[Boolean] Optional
JobFromTextFields List[String] Optional
JobToTextFields List[String] Optional

XMLbewerken

<Workflow Name="ActionField654" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Copy textfields of ProblemJob to Job.</Description>
	<Properties>
		<Property	Name="Job"							Type="Job"				Accessor="Root"		Direction="In" />

		<Property	Name="AddTextAboveTotalTextList"	Type="List[Boolean]"	Accessor="Optional"	Direction="In"		Default="False"			Comment="Add text above existing text" />
		<Property	Name="JobFromTextFields"			Type="List[String]"		Accessor="Optional"	Direction="In"		Default="FeedbackText"	Comment="From which text fields must be copied (komma separated). Example: Text, FeedbackText" />
		<Property	Name="JobToTextFields"				Type="List[String]"		Accessor="Optional"	Direction="In"		Default="FeedbackText"	Comment="To which text fields must be copied (comma separated). Example Text, FeedbackText" />

		<Property	Name="CopyTextAnswer"				Type="RequestResult"	Accessor="Internal"						Default="Yes" />
		<Property	Name="ResultIsEmpty"				Type="Boolean"			Accessor="Internal"						Default="False" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<When Name="ProblemJobIsExist" Condition="${Job.ProblemJob} != Empty">
			<When Name="ProblemJobContextExist" Condition="${Job.ProblemJob.Context} == JobContext.ITKnownError || ${Job.ProblemJob.Context} == JobContext.ITProblem">
				<Transaction>
					<Validation Name="Check AddTextAboveTotalTextList.Count" Condition="${JobFromTextFields.Count} == ${AddTextAboveTotalTextList.Count}" MessageCode="1171" />
					<Validation Name="Check JobToTextFields.Count" Condition="${JobFromTextFields.Count} == ${JobToTextFields.Count}" MessageCode="1171" />

					<Command Name="CheckForCopyTextToJob" CommandName="Job_CheckForCopyTextToJob">
						<Parameter	Name="Job"					Direction="In"		Value="${Job}" />
						<Parameter	Name="JobFromTextFields"	Direction="In"		Value="${JobFromTextFields}" />
						<Parameter	Name="ResultIsEmpty"		Direction="Out"										OutputProperty="${ResultIsEmpty}" />
					</Command>
				</Transaction>

				<When Name="should ask copytext" Condition="${ResultIsEmpty} == False">
					<Question Name="CopyText Yes/No" Type="YesNo" MessageCode="1651" OutputProperty="${CopyTextAnswer}">
						<Parameter	Name="Job"	Direction="In"		Value="${Job}" />
					</Question>
				</When>

				<When Name="Answer is yes to copy text" Condition="${CopyTextAnswer} == Yes">
					<Transaction>
						<Command Name="CopyTextToJob" CommandName="Job_CopyTextToJob">
							<Parameter	Name="AddTextAboveTotalTextList"	Direction="In"		Value="${AddTextAboveTotalTextList}" />
							<Parameter	Name="Job"							Direction="In"		Value="${Job}" />
							<Parameter	Name="JobFromTextFields"			Direction="In"		Value="${JobFromTextFields}" />
							<Parameter	Name="JobToTextFields"				Direction="In"		Value="${JobToTextFields}" />
						</Command>
					</Transaction>
				</When>
			</When>
		</When>

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