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

ActionField1627

Beschrijving: Change ObjectDownTime via dialog. Custom: Nee

Propertiesbewerken

Property Type Accessor
ObjectDowntime ObjectDowntime Root

XMLbewerken

<Workflow Name="ActionField1627" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Change ObjectDownTime via dialog.</Description>
	<Properties>
		<Property	Name="ObjectDowntime"			Type="ObjectDowntime"	Accessor="Root"		Direction="In" />

		<Property	Name="Description"				Type="String"			Accessor="Internal" />
		<Property	Name="EndDate"					Type="DateTime?"		Accessor="Internal" />
		<Property	Name="SetDowntimeOnChildren"	Type="Boolean"			Accessor="Internal" />
		<Property	Name="SetDowntimeOnParents"		Type="Boolean"			Accessor="Internal" />
		<Property	Name="StartDate"				Type="DateTime?"		Accessor="Internal" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<When Name="ObjectDowntime has ProcessFunction" Condition="${ObjectDowntime.PartOfObjectDowntime} != Empty &amp;&amp; ${ObjectDowntime.ProcessFunction} != Empty">
			<Validation Name="ObjectDowntime has PartOfObjectDowntime and Prf" Condition="${ObjectDowntime.PartOfObjectDowntime} == Empty" MessageCode="3060">
				<Parameter	Name="DomainObject"		Direction="In"		Value="${ObjectDowntime.ProcessFunction}" />
				<Parameter	Name="ObjectDowntime"	Direction="In"		Value="${ObjectDowntime}" />
			</Validation>
		</When>

		<When Name="ObjectDowntime has Equipment" Condition="${ObjectDowntime.PartOfObjectDowntime} != Empty &amp;&amp; ${ObjectDowntime.Equipment} != Empty">
			<Validation Name="ObjectDowntime has PartOfObjectDowntime and Eqm" Condition="${ObjectDowntime.PartOfObjectDowntime} == Empty" MessageCode="3060">
				<Parameter	Name="DomainObject"		Direction="In"		Value="${ObjectDowntime.Equipment}" />
				<Parameter	Name="ObjectDowntime"	Direction="In"		Value="${ObjectDowntime}" />
			</Validation>
		</When>

		<WorkflowCall Name="Dialog_ChangeObjectDowntime" WorkflowName="Dialog_ChangeObjectDowntime">
			<Parameter	Name="Description"				Direction="InOut"	Value="${ObjectDowntime.Description}"			OutputProperty="${Description}" />
			<Parameter	Name="EndDate"					Direction="InOut"	Value="${ObjectDowntime.EndDate}"				OutputProperty="${EndDate}" />
			<Parameter	Name="SetDowntimeOnChildren"	Direction="InOut"	Value="${ObjectDowntime.SetDowntimeOnChildren}"	OutputProperty="${SetDowntimeOnChildren}" />
			<Parameter	Name="SetDowntimeOnParents"		Direction="InOut"	Value="${ObjectDowntime.SetDowntimeOnParents}"	OutputProperty="${SetDowntimeOnParents}" />
			<Parameter	Name="StartDate"				Direction="InOut"	Value="${ObjectDowntime.StartDate}"				OutputProperty="${StartDate}" />
		</WorkflowCall>

		<Transaction>
			<Assign Name="Set StartDate" Property="${ObjectDowntime.StartDate}" Value="${StartDate}" />
			<Assign Name="Set EndDate" Property="${ObjectDowntime.EndDate}" Value="${EndDate}" />
			<Assign Name="Set Description" Property="${ObjectDowntime.Description}" Value="${Description}" />
			<Assign Name="Set SetDowntimeOnChildren" Property="${ObjectDowntime.SetDowntimeOnChildren}" Value="${SetDowntimeOnChildren}" />
			<Assign Name="Set SetDowntimeOnParents" Property="${ObjectDowntime.SetDowntimeOnParents}" Value="${SetDowntimeOnParents}" />
		</Transaction>

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