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

ActionField1170

Beschrijving: Set default RiskAspect for a TaskRiskAnalysisLine. Custom: Nee

Propertiesbewerken

Property Type Accessor
TaskRiskAnalysisLine TaskRiskAnalysisLine Root
DefaultRiskAspectId UltimoString Optional

XMLbewerken

<Workflow Name="ActionField1170" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Set default RiskAspect for a TaskRiskAnalysisLine.</Description>
	<Properties>
		<Property	Name="TaskRiskAnalysisLine"	Type="TaskRiskAnalysisLine"	Accessor="Root"		Direction="In" />

		<Property	Name="DefaultRiskAspectId"	Type="UltimoString"			Accessor="Optional"	Direction="In"		Default="001"	Comment="Set RiskAspect id to use as default for TaskRiskAnalysisLine" />

		<Property	Name="DefaultRiskAspect"	Type="RiskAspect"			Accessor="Internal" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<Transaction>
			<GetItem Name="Get RiskAspect for for Id" Type="RiskAspect" OutputProperty="${DefaultRiskAspect}">
				<Filters>
					<PropertyFilter	PropertyName="Id"	Operator="="		PropertyValue="${DefaultRiskAspectId}" />
				</Filters>
			</GetItem>

			<Validation Name="ValidateRiskAspectFoundForIdGiven" Condition="${DefaultRiskAspect} != Empty" MessageCode="2278">
				<Parameter	Name="RiskAspectId"		Direction="In"		Value="${DefaultRiskAspectId}" />
				<Parameter	Name="TaskRiskAnalysis"	Direction="In"		Value="${TaskRiskAnalysisLine.Id.TaskRiskAnalysis}" />
			</Validation>
			<AssignWhenEmpty Name="Set aspect to default when not set already" Property="${TaskRiskAnalysisLine.RiskAspect}" Value="${DefaultRiskAspect}" />
		</Transaction>

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