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

ActionField672

Beschrijving: Recalculate percentage of resolve time for jobs with SLA from ServiceContractFinishedDate. Custom: Nee

Propertiesbewerken

Property Type Accessor
Job Job Root

XMLbewerken

<Workflow Name="ActionField672" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Recalculate percentage of resolve time for jobs with SLA from ServiceContractFinishedDate.</Description>
	<Properties>
		<Property	Name="Job"							Type="Job"							Accessor="Root"		Direction="In" />

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

		<Transaction>
			<When Name="check if service(contract) is set" Condition="${Job.ServiceLevelAgreementServiceContract} != Empty &amp;&amp; ${Job.ServiceLevel.Id.Service?} != Empty">
				<Choose Name="check if responsedate set">
					<When Name="responsedate set" Condition="${Job.ServiceContractFinishedDate} != Empty">
						<GetItem Name="Get ServiceContractServiceLevel for job" Type="ServiceContractServiceLevel" OutputProperty="${ServiceContractServiceLevel}">
							<Filters>
								<CombinedFilter FilterOperator="And">
									<InFilter PropertyName="Id" Values="${Job.ServiceLevelAgreementServiceContract.ServiceContractServiceLevels}" />
									<PropertyFilter	PropertyName="Id.ServiceLevel.Id.Service"	Operator="="		PropertyValue="${Job.ServiceLevel.Id.Service}" />
								</CombinedFilter>
							</Filters>
						</GetItem>

						<Command Name="GetPercentageForCalendarTimeSpan" CommandName="GetPercentageForCalendarTimeSpan">
							<Parameter	Name="PercentageDate"	Direction="In"		Value="${Job.ServiceContractFinishedDate}" />
							<Parameter	Name="RangeFromDate"	Direction="In"		Value="${Job.StatusCreatedReportDate}" />
							<Parameter	Name="RangeTillDate"	Direction="In"		Value="${Job.ServiceContractTargetFinishedDate}" />
							<Parameter	Name="WorkSchedule"		Direction="In"		Value="${ServiceContractServiceLevel.Id.ServiceLevel.WorkSchedule}" />
							<Parameter	Name="Percentage"		Direction="Out"																			OutputProperty="${Job.ServiceContractFinishPercentage}" />
						</Command>
					</When>

					<Otherwise Name="response date not set">
						<Assign Name="Clear response percentage" Property="${Job.ServiceContractFinishPercentage}" Value="Empty" />
					</Otherwise>
				</Choose>

				<WorkflowCall Name="Job_RemoveRedundantJobNotifications" WorkflowName="Job_RemoveRedundantJobNotifications">
					<Parameter	Name="Job"					Direction="In"		Value="${Job}" />
					<Parameter	Name="RemoveFinishRecords"	Direction="In"		Value="True" />
				</WorkflowCall>
			</When>
		</Transaction>

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