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

ActionField923

Beschrijving: Reopen permit template while checking if it is used on PM jobs Custom: Nee

Propertiesbewerken

Property Type Accessor
Permit Permit Root

XMLbewerken

<Workflow Name="ActionField923" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Reopen permit template while checking if it is used on PM jobs</Description>
	<Properties>
		<Property	Name="Permit"	Type="Permit"		Accessor="Root"		Direction="In" />

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

		<Transaction>
			<GetList Name="Get PM jobs that use this permit template" Type="PmJob" OutputProperty="${PmJobs}" OrderBy="Context" OrderDirection="Ascending">
				<Filters>
					<PropertyFilter	PropertyName="TemplatePermit"	Operator="="		PropertyValue="${Permit}" />
				</Filters>
			</GetList>
		</Transaction>

		<When Name="PM jobs with permit template are found" Condition="${PmJobs.Count} &gt; 0">
			<ContinuationQuestion Name="Continue reopening permit template even though it is used in PM jobs?" MessageCode="1699">
				<Parameter	Name="Permit"	Direction="In"		Value="${Permit}" />
				<Parameter	Name="PmJobs"	Direction="In"		Value="${PmJobs}" />
			</ContinuationQuestion>
		</When>

		<Transaction>
			<ChangeStatus Name="Reopen permit template" DomainObject="${Permit}" NewStatus="PermitStatus.TemplateCreated" />
		</Transaction>

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