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

ActionField291

Beschrijving: Change the startdate (via dialog) of PmSchedulePmWorkOrder (used in Grafic PO-planner). Custom: Nee

Propertiesbewerken

Property Type Accessor
LineId String Required
PmScheduleId String Required
StartDate DateTime? Optional

XMLbewerken

<Workflow Name="ActionField291" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Change the startdate (via dialog) of PmSchedulePmWorkOrder (used in Grafic PO-planner).</Description>
	<Properties>
		<Property	Name="LineId"					Type="String"					Accessor="Required"	Direction="In"		Comment="Index of PmSchedulePmWorkOrder (Id.LineId)" />
		<Property	Name="PmScheduleId"				Type="String"					Accessor="Required"	Direction="In"		Comment="Index of PmSchedulePmWorkOrder (Id.PmSchedule.Id)" />

		<Property	Name="StartDate"				Type="DateTime?"				Accessor="Optional"	Direction="In"		Comment="Set default startdate in dialog, if not set the current Date/Time will be used as default" />

		<Property	Name="NewStartDate"				Type="Date?"					Accessor="Internal" />
		<Property	Name="OptionalStartDate"		Type="Date?"					Accessor="Internal" />
		<Property	Name="PmSchedulePmWorkOrder"	Type="PmSchedulePmWorkOrder"	Accessor="Internal" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<Transaction>
			<GetItem Name="Get PmSchedulePmWorkOrder" Type="PmSchedulePmWorkOrder" OutputProperty="${PmSchedulePmWorkOrder}">
				<Filters>
					<CombinedFilter FilterOperator="And">
						<PropertyFilter	PropertyName="Id.LineId"		Operator="="		PropertyValue="${LineId}" />
						<PropertyFilter	PropertyName="Id.PmSchedule.Id"	Operator="="		PropertyValue="${PmScheduleId}" />
					</CombinedFilter>
				</Filters>
			</GetItem>
		</Transaction>

		<Assign Name="Set OptionalStartDate" Property="${OptionalStartDate}" Value="${StartDate.Date?}" />

		<When Name="${OptionalStartDate} is null" Condition="${OptionalStartDate} == Empty">
			<Assign Name="Set OptionalStartDate to PmSchedulePmWorkOrder startdate" Property="${OptionalStartDate}" Value="${PmSchedulePmWorkOrder.StartDate}" />
		</When>

		<WorkflowCall Name="PmSchedulePmWorkOrder_ChangeStartDateDialog" WorkflowName="Dialog_ChangeStartDate">
			<Parameter	Name="OptionalStartDate"	Direction="In"		Value="${OptionalStartDate}" />
			<Parameter	Name="NewStartDate"			Direction="Out"										OutputProperty="${NewStartDate}" />
		</WorkflowCall>

		<Transaction>
			<Assign Name="Set startdate" Property="${PmSchedulePmWorkOrder.StartDate}" Value="${NewStartDate}" />
		</Transaction>

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