Categorie: reference
Bijgewerkt: 2026-04-08
actionfield workflow actionfield1538
ActionField1538
Beschrijving: Activate all backoffices and servicedeskreporttypes with status concept and activate knowledgetopics with status inactive linked to (now) active servicedeskreporttype Custom: Nee
XMLbewerken
<Workflow Name="ActionField1538" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
<Description>Activate all backoffices and servicedeskreporttypes with status concept and activate knowledgetopics with status inactive linked to (now) active servicedeskreporttype</Description>
<Properties>
<Property Name="BackOffices" Type="List[BackOffice]" Accessor="Internal" />
<Property Name="KnowledgeTopics" Type="List[KnowledgeTopic]" Accessor="Internal" />
<Property Name="ServiceDeskReportTypes" Type="List[ServiceDeskReportType]" Accessor="Internal" />
</Properties>
<Execution>
<UserContent Name="Pre" />
<Transaction>
<GetList Name="Get BackOffices" Type="BackOffice" OutputProperty="${BackOffices}" OrderBy="Id" OrderDirection="Ascending">
<Filters>
<PropertyFilter PropertyName="Status" Operator="=" PropertyValue="BackOfficeStatus.Concept" />
</Filters>
</GetList>
<ForEach Name="BackOffice" In="${BackOffices}" As="BackOffice">
<ChangeStatus Name="Activate BackOffice" DomainObject="${BackOffice}" NewStatus="BackOfficeStatus.Active" />
</ForEach>
<GetList Name="Get ServiceDeskReportTypes" Type="ServiceDeskReportType" OutputProperty="${ServiceDeskReportTypes}" OrderBy="Id" OrderDirection="Ascending">
<Filters>
<CombinedFilter FilterOperator="Or">
<NotFilter>
<InFilter PropertyName="BackOffice" Values="${BackOffices}" Comment="BackOffice not Concept or filled at all" />
</NotFilter>
<PropertyEmptyFilter PropertyName="BackOffice" />
</CombinedFilter>
<PropertyFilter PropertyName="Status" Operator="=" PropertyValue="ServiceDeskReportTypeStatus.Concept" />
</Filters>
</GetList>
<ForEach Name="ServiceDeskReportType" In="${ServiceDeskReportTypes}" As="ServiceDeskReportType">
<ChangeStatus Name="Activate ServiceDeskReportType" DomainObject="${ServiceDeskReportType}" NewStatus="ServiceDeskReportTypeStatus.Active" />
</ForEach>
<GetList Name="Get KnowledgeTopics" Type="KnowledgeTopic" OutputProperty="${KnowledgeTopics}" OrderBy="Id" OrderDirection="Ascending">
<Joins>
<Join Name="ServiceDeskReportType" Alias="serviceDeskReportType" Type="InnerJoin" />
</Joins>
<Filters>
<PropertyFilter PropertyName="serviceDeskReportType.Status" Operator="=" PropertyValue="ServiceDeskReportTypeStatus.Active" />
<PropertyFilter PropertyName="Status" Operator="=" PropertyValue="KnowledgeTopicStatus.Inactive" />
</Filters>
</GetList>
<ForEach Name="KnowledgeTopic" In="${KnowledgeTopics}" As="KnowledgeTopic">
<ChangeStatus Name="Activate KnowledgeTopic" DomainObject="${KnowledgeTopic}" NewStatus="KnowledgeTopicStatus.Active" />
</ForEach>
</Transaction>
<UserContent Name="Post" />
</Execution>
</Workflow>