Categorie: reference
Bijgewerkt: 2026-04-08
actionfield workflow actionfield1846
ActionField1846
Beschrijving: Select a 'progress status context' and add the associated default progress statuses for each record status for this entity (with custom context). Custom: Nee
Propertiesbewerken
| Property | Type | Accessor |
|---|---|---|
| DefaultProgressStatusContext | DefaultProgressStatusContext | Root |
XMLbewerken
<Workflow Name="ActionField1846" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
<Description>Select a 'progress status context' and add the associated default progress statuses for each record status for this entity (with custom context).</Description>
<Properties>
<Property Name="DefaultProgressStatusContext" Type="DefaultProgressStatusContext" Accessor="Root" Direction="In" />
<Property Name="DefaultProgressStatusContextRecordStatuses" Type="List[DefaultProgressStatusContextRecordStatus]" Accessor="Internal" />
<Property Name="DefaultProgressStatusForContext" Type="ProgressStatus" Accessor="Internal" />
<Property Name="SelectedProgressStatusContext" Type="Context" Accessor="Internal" />
</Properties>
<Execution>
<UserContent Name="Pre" />
<Validation Name="Validate this is for a entity with custom context" Condition="16777216 <= ${DefaultProgressStatusContext.Id.Id}" MessageCode="3866" Comment="Context value 16,777,216 is where the range of custom contexts starts">
<Parameter Name="Context" Direction="In" Value="${DefaultProgressStatusContext.Id.Id}" />
<Parameter Name="TableName" Direction="In" Value="${DefaultProgressStatusContext.Id.DefaultProgressStatusEntity.Id}" />
</Validation>
<WorkflowCall Name="Open dialog to select progress status context" WorkflowName="Dialog_SelectProgressStatusContext">
<Parameter Name="TableName" Direction="In" Value="${DefaultProgressStatusContext.Id.DefaultProgressStatusEntity.Id}" />
<Parameter Name="SelectedProgressStatusContext" Direction="Out" OutputProperty="${SelectedProgressStatusContext}" />
</WorkflowCall>
<Transaction>
<GetList Name="Get record statuses for which default progress status should be set" Type="DefaultProgressStatusContextRecordStatus" OutputProperty="${DefaultProgressStatusContextRecordStatuses}" OrderBy="Id" OrderDirection="Ascending">
<Filters>
<PropertyFilter PropertyName="Id.DefaultProgressStatusContext" Operator="=" PropertyValue="${DefaultProgressStatusContext}" />
</Filters>
</GetList>
<ForEach Name="Iterate record statuses for which default progress status should be set" In="${DefaultProgressStatusContextRecordStatuses}" As="DefaultProgressStatusContextRecordStatus">
<Command Name="Get progress status to set" CommandName="GetDefaultProgressStatusForRecordStatusLinkedToEntityWithStandardContext">
<Parameter Name="ProgressStatusContext" Direction="In" Value="${SelectedProgressStatusContext}" />
<Parameter Name="RecordStatus" Direction="In" Value="${DefaultProgressStatusContextRecordStatus.Id.Status}" />
<Parameter Name="TableName" Direction="In" Value="${DefaultProgressStatusContext.Id.DefaultProgressStatusEntity.Id}" />
<Parameter Name="DefaultProgressStatusForContext" Direction="Out" OutputProperty="${DefaultProgressStatusForContext}" />
</Command>
<Assign Name="Update default progress status for this entity and record status" Property="${DefaultProgressStatusContextRecordStatus.ProgressStatus}" Value="${DefaultProgressStatusForContext}" />
</ForEach>
</Transaction>
<UserContent Name="Post" />
</Execution>
</Workflow>