Categorie: reference
Bijgewerkt: 2026-04-08
actionfield workflow actionfield705
ActionField705
Beschrijving: Delete PmJob details if standard JobPlan will be used. Custom: Nee
Propertiesbewerken
| Property | Type | Accessor |
|---|---|---|
| PmJob | PmJob | Root |
XMLbewerken
<Workflow Name="ActionField705" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
<Description>Delete PmJob details if standard JobPlan will be used.</Description>
<Properties>
<Property Name="PmJob" Type="PmJob" Accessor="Root" Direction="In" />
<Property Name="DeletePmJobDetails" Type="RequestResult" Accessor="Internal" />
<Property Name="PmJobExternalList" Type="List[PmJobExternal]" Accessor="Internal" />
<Property Name="PmJobInspectionLineList" Type="List[PmJobInspectionLine]" Accessor="Internal" />
<Property Name="PmJobMaterialList" Type="List[PmJobMaterial]" Accessor="Internal" />
<Property Name="PmJobPurchaseRequestLineList" Type="List[PmJobPurchaseRequestLine]" Accessor="Internal" />
<Property Name="PmJobResourceList" Type="List[PmJobResource]" Accessor="Internal" />
<Property Name="PmJobToolList" Type="List[PmJobTool]" Accessor="Internal" />
</Properties>
<Execution>
<UserContent Name="Pre" />
<Transaction>
<GetList Name="Get PmJob Externals" Type="PmJobExternal" OutputProperty="${PmJobExternalList}" OrderBy="Id" OrderDirection="Ascending">
<Filters>
<PropertyFilter PropertyName="Id.PmJob" Operator="=" PropertyValue="${PmJob}" />
</Filters>
</GetList>
<GetList Name="Get PmJob InspectionLine" Type="PmJobInspectionLine" OutputProperty="${PmJobInspectionLineList}" OrderBy="Id" OrderDirection="Ascending">
<Filters>
<PropertyFilter PropertyName="Id.PmJob" Operator="=" PropertyValue="${PmJob}" />
</Filters>
</GetList>
<GetList Name="Get PmJob Materials" Type="PmJobMaterial" OutputProperty="${PmJobMaterialList}" OrderBy="Id" OrderDirection="Ascending">
<Filters>
<PropertyFilter PropertyName="Id.PmJob" Operator="=" PropertyValue="${PmJob}" />
</Filters>
</GetList>
<GetList Name="Get PmJob PurchaseRequestLines" Type="PmJobPurchaseRequestLine" OutputProperty="${PmJobPurchaseRequestLineList}" OrderBy="Id" OrderDirection="Ascending">
<Filters>
<PropertyFilter PropertyName="Id.PmJob" Operator="=" PropertyValue="${PmJob}" />
</Filters>
</GetList>
<GetList Name="Get PmJob Resources" Type="PmJobResource" OutputProperty="${PmJobResourceList}" OrderBy="Id" OrderDirection="Ascending">
<Filters>
<PropertyFilter PropertyName="Id.PmJob" Operator="=" PropertyValue="${PmJob}" />
</Filters>
</GetList>
<GetList Name="Get PmJob Tools" Type="PmJobTool" OutputProperty="${PmJobToolList}" OrderBy="Id" OrderDirection="Ascending">
<Filters>
<PropertyFilter PropertyName="Id.PmJob" Operator="=" PropertyValue="${PmJob}" />
</Filters>
</GetList>
</Transaction>
<When Name="UseStandardJobPlan" Condition="${PmJob.UseStandardJobPlan} != False">
<When Name="If detail found" Condition="${PmJobExternalList} != Empty || ${PmJobInspectionLineList} != Empty || ${PmJobMaterialList} != Empty || ${PmJobPurchaseRequestLineList} != Empty || ${PmJobResourceList} != Empty || ${PmJobToolList} != Empty">
<Question Name="Delete PmJob Details" Type="YesNo" MessageCode="1456" Default="Yes" OutputProperty="${DeletePmJobDetails}">
<Parameter Name="PmJob" Direction="In" Value="${PmJob}" />
</Question>
<Transaction>
<Choose Name="Check DeletePmJobDetails">
<When Name="DeleteJobDetailsIsNo" Condition="${DeletePmJobDetails} != Yes">
<Assign Name="Restore value UseStandardJobPlan" Property="${PmJob.UseStandardJobPlan}" Value="False" />
</When>
<Otherwise Name="DeleteJobDetailsIsYes">
<ForEach Name="Foreach PmJobExternal" In="${PmJobExternalList}" As="PmJobExternal">
<DeleteObject Name="Delete PmJobExternal" DomainObject="${PmJobExternal}" />
</ForEach>
<ForEach Name="Foreach PmJobInspectionLine" In="${PmJobInspectionLineList}" As="PmJobInspectionLine">
<DeleteObject Name="Delete PmJobInspectionLine" DomainObject="${PmJobInspectionLine}" />
</ForEach>
<ForEach Name="Foreach PmJobMaterial" In="${PmJobMaterialList}" As="PmJobMaterial">
<DeleteObject Name="Delete PmJobMaterial" DomainObject="${PmJobMaterial}" />
</ForEach>
<ForEach Name="Foreach PmJobPurchaseRequestLine" In="${PmJobPurchaseRequestLineList}" As="PmJobPurchaseRequestLine">
<DeleteObject Name="Delete PmJobPurchaseRequestLine" DomainObject="${PmJobPurchaseRequestLine}" />
</ForEach>
<ForEach Name="Foreach PmJobResource" In="${PmJobResourceList}" As="PmJobResource">
<DeleteObject Name="Delete PmJobResource" DomainObject="${PmJobResource}" />
</ForEach>
<ForEach Name="Foreach PmJobTool" In="${PmJobToolList}" As="PmJobTool">
<DeleteObject Name="Delete PmJobTool" DomainObject="${PmJobTool}" />
</ForEach>
</Otherwise>
</Choose>
</Transaction>
</When>
</When>
<UserContent Name="Post" />
<When Name="CheckIfPmJob_JobPlanExitsSkillcat" Condition="${PmJob.JobPlan} != Empty && ${PmJob.JobPlan.SkillCategory} != Empty && ${PmJob.SkillCategory} != Empty">
<Message Name="ShowInvalidMessage1509" MessageCode="1509" Comment="PmJob.SkillCategory and PmJob.JobPlan.SkillCategory can not be filled at the same time">
<Parameter Name="PmJob" Direction="In" Value="${PmJob}" />
</Message>
</When>
<When Name="CheckIfPmJob_JobPlanExitsDocument" Condition="${PmJob.JobPlan} != Empty && ${PmJob.JobPlan.Document} != Empty && ${PmJob.Document} != Empty">
<Message Name="ShowInvalidMessage2350" MessageCode="2350" Comment="PmJob.Document and PmJob.JobPlan.Document can not be filled at the same time">
<Parameter Name="PmJob" Direction="In" Value="${PmJob}" />
</Message>
</When>
</Execution>
</Workflow>