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

ActionField331

Beschrijving: Approve LendableObjectMutationLines linked to Employee. Custom: Nee

Propertiesbewerken

Property Type Accessor
Employee Employee Root

XMLbewerken

<Workflow Name="ActionField331" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Approve LendableObjectMutationLines linked to Employee.</Description>
	<Properties>
		<Property	Name="Employee"						Type="Employee"							Accessor="Root"		Direction="In" />

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

		<Transaction>
			<GetList Name="Get approved and missing lendable object mutation lines of employee" Type="LendableObjectMutationLine" OutputProperty="${LendableObjectMutationLines}" OrderBy="Id" OrderDirection="Ascending">
				<Filters>
					<CombinedFilter FilterOperator="And">
						<PropertyFilter	PropertyName="Employee"	Operator="="		PropertyValue="${Employee}" />
						<InFilter PropertyName="Status" Values="LendableObjectMutationLineStatus.Approved,LendableObjectMutationLineStatus.Missing" />
					</CombinedFilter>
				</Filters>
			</GetList>

			<Validation Name="Employee has no approved or missing lendable object mutation lines" Condition="${LendableObjectMutationLines} != Empty" MessageCode="0114">
				<Parameter	Name="Employee"	Direction="In"		Value="${Employee}" />
			</Validation>

			<GetList Name="Get approved lendable object mutation lines of employee" Type="LendableObjectMutationLine" OutputProperty="${LendableObjectMutationLines}" OrderBy="Id" OrderDirection="Ascending">
				<Filters>
					<CombinedFilter FilterOperator="And">
						<PropertyFilter	PropertyName="Employee"	Operator="="		PropertyValue="${Employee}" />
						<PropertyFilter	PropertyName="Status"	Operator="="		PropertyValue="LendableObjectMutationLineStatus.Approved" />
					</CombinedFilter>
				</Filters>
			</GetList>
		</Transaction>

		<ForEach Name="Foreach approved lendable object mutation line" In="${LendableObjectMutationLines}" As="LendableObjectMutationLine">
			<WorkflowCall Name="approve lendable object mutation line" WorkflowName="LendableObjectMutationLine_Approve">
				<Parameter	Name="LendableObjectMutationLine"	Direction="In"		Value="${LendableObjectMutationLine}" />
			</WorkflowCall>
		</ForEach>

		<UserContent Name="Post" />

		<Message Name="Approved" MessageCode="0112">
			<Parameter	Name="Employee"	Direction="In"		Value="${Employee}" />
		</Message>
	</Execution>
</Workflow>