Categorie: reference
Bijgewerkt: 2026-04-08
actionfield workflow actionfield1639
ActionField1639
Beschrijving: Change backoffice of MaintenanceClassification. Custom: Nee
Propertiesbewerken
| Property | Type | Accessor |
|---|---|---|
| MaintenanceClassification | MaintenanceClassification | Root |
XMLbewerken
<Workflow Name="ActionField1639" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
<Description>Change backoffice of MaintenanceClassification.</Description>
<Properties>
<Property Name="MaintenanceClassification" Type="MaintenanceClassification" Accessor="Root" Direction="In" />
<Property Name="BackOffice" Type="BackOffice" Accessor="Internal" />
<Property Name="CombinedSqlWhereClause" Type="String" Accessor="Internal" />
<Property Name="PmWorkOrderCount" Type="Int64" Accessor="Internal" />
<Property Name="SqlWhereClauseBackOffices" Type="UltimoString" Accessor="Internal" Default="bofjobcontext IN (1,2048,16384,32768,131072) AND BOFRECSTATUS = 2" />
<Property Name="SqlWhereClauseLicensedBackOffices" Type="UltimoString" Accessor="Internal" />
</Properties>
<Execution>
<UserContent Name="Pre" />
<Transaction>
<GetCount Name="Number of PmWorkOrders of MaintenanceClassification" Type="PmWorkOrder" OutputProperty="${PmWorkOrderCount}">
<Filters>
<PropertyFilter PropertyName="MaintenanceClassification" Operator="=" PropertyValue="${MaintenanceClassification}" />
<PropertyFilter PropertyName="Status" Operator=">=" PropertyValue="0" />
</Filters>
</GetCount>
<Validation Name="MaintenanceClassification should not have PmWorkOrders" Condition="${PmWorkOrderCount} == 0" MessageCode="3113" />
</Transaction>
<WorkflowCall Name="License_GetLicensedBackOfficesSqlWhereClause" WorkflowName="License_GetLicensedBackOfficesSqlWhereClause">
<Parameter Name="SqlWhereClause" Direction="Out" OutputProperty="${SqlWhereClauseLicensedBackOffices}" />
</WorkflowCall>
<Assign Name="Set CombinedSqlWhereClause" Property="${CombinedSqlWhereClause}" Value="${SqlWhereClauseLicensedBackOffices} AND (${SqlWhereClauseBackOffices})" />
<Dialog Name="Select backoffice" TitleCode="CHANGEBACKOFFICE">
<Container Border="True">
<SelectionList Name="BackOffice" Width="300" OutputProperty="${BackOffice}" ColumnName="BofId" ViewfieldConfiguration="Default" Required="True" LabelCode="BACKOFFICECODE" SqlWhereClause="${CombinedSqlWhereClause}" />
</Container>
</Dialog>
<When Name="Backoffice changed?" Condition="${BackOffice} != ${MaintenanceClassification.BackOffice}">
<Transaction>
<Assign Name="Set MaintenanceClassification.BackOffice" Property="${MaintenanceClassification.BackOffice}" Value="${BackOffice}" />
<WorkflowCall Name="Change backoffice of MaintenanceClassification" WorkflowName="MaintenanceClassification_ChangeBackOffice">
<Parameter Name="MaintenanceClassification" Direction="In" Value="${MaintenanceClassification}" />
</WorkflowCall>
</Transaction>
</When>
<UserContent Name="Post" />
</Execution>
</Workflow>