Categorie: reference
Bijgewerkt: 2026-04-08
actionfield workflow actionfield1838
ActionField1838
Beschrijving: Select available PermitTypes to be added to Permit Custom: Nee
Propertiesbewerken
| Property | Type | Accessor |
|---|---|---|
| Permit | Permit | Root |
| PermitTypeStatuses | List[Status] | Optional |
XMLbewerken
<Workflow Name="ActionField1838" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
<Description>Select available PermitTypes to be added to Permit</Description>
<Properties>
<Property Name="Permit" Type="Permit" Accessor="Root" Direction="In" />
<Property Name="PermitTypeStatuses" Type="List[Status]" Accessor="Optional" Direction="In" Default="=${Permit.Context} == PermitContext.WorkPermit ? PermitTypeStatus.Approved : PermitTypeStatus.Created,PermitTypeStatus.Approved" />
<Property Name="PermitPermitType" Type="PermitPermitType" Accessor="Internal" />
<Property Name="SelectedPermitTypes" Type="List[PermitType]" Accessor="Internal" />
</Properties>
<Execution>
<UserContent Name="Pre" />
<WorkflowCall Name="Select the PermitTypes to add to Permit" WorkflowName="Dialog_Permit_AddPermitTypes">
<Parameter Name="Permit" Direction="In" Value="${Permit}" />
<Parameter Name="PermitTypeStatuses" Direction="In" Value="${PermitTypeStatuses}" />
<Parameter Name="SelectedPermitTypes" Direction="Out" OutputProperty="${SelectedPermitTypes}" />
</WorkflowCall>
<Transaction>
<ForEach Name="Insert the selected PermitTypes" In="${SelectedPermitTypes}" As="PermitType">
<Insert ObjectType="PermitPermitType" OutputProperty="${PermitPermitType}">
<Parameter Name="Context" Direction="In" Value="PermitPermitTypeContext.WorkPermit" />
<Parameter Name="Permit" Direction="In" Value="${Permit}" />
<Parameter Name="PermitType" Direction="In" Value="${PermitType}" />
</Insert>
</ForEach>
</Transaction>
<WorkflowCall Name="Get InspectionPlans linked to the PermitType" WorkflowName="Permit_GetSelectionListsToLink">
<Parameter Name="Permit" Direction="In" Value="${Permit}" />
</WorkflowCall>
<UserContent Name="Post" />
</Execution>
</Workflow>