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

ActionField1782

Beschrijving: Update Tariff of PmJobresource. Custom: Nee

Propertiesbewerken

Property Type Accessor
PmJobResource PmJobResource Root

XMLbewerken

<Workflow Name="ActionField1782" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Update Tariff of PmJobresource.</Description>
	<Properties>
		<Property	Name="PmJobResource"			Type="PmJobResource"			Accessor="Root"		Direction="In" />

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

		<When Name="PmJobResource.Craftsman has value" Condition="${PmJobResource.Craftsman} != Empty">
			<Transaction>
				<Command Name="Get_CraftsmanHourCategory" CommandName="Get_CraftsmanHourCategory">
					<Parameter	Name="Craftsman"				Direction="In"		Value="${PmJobResource.Craftsman}" />
					<Parameter	Name="CraftsmanHourCategory"	Direction="Out"											OutputProperty="${CraftsmanHourCategory}" />
				</Command>

				<Assign Name="Set Tariff" Property="${PmJobResource.Tariff}" Value="${CraftsmanHourCategory.Tariff1?}" />
				<Assign Name="Set Cost" Property="${PmJobResource.Cost}" Value="=(${PmJobResource.Tariff} * ${PmJobResource.Hours})" />
			</Transaction>
		</When>

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