Categorie: reference Bijgewerkt: 2026-04-08 actionfield workflow actionfield712

ActionField712

Beschrijving: Change ProgressStatus for DomainObjects with ProgressStatus property and foreign key in ObjectProgressStatusHistory. Be advised to only use this ActionField for custom entities or else consult Ultimo. Custom: Nee

Propertiesbewerken

Property Type Accessor
DomainObject DomainObject Root
ProgressStatusContext Context Required
AddTextAboveTotalText Boolean Optional
Custom Boolean Optional
DomainObjectTextField String Optional
HideWorkDescription Boolean Optional
ListAskContinueForRecordStatusChanges List[Status] Optional
UseProgressStatus ProgressStatus Optional

XMLbewerken

<Workflow Name="ActionField712" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Change ProgressStatus for DomainObjects with ProgressStatus property and foreign key in ObjectProgressStatusHistory. Be advised to only use this ActionField for custom entities or else consult Ultimo.</Description>
	<Properties>
		<Property	Name="DomainObject"								Type="DomainObject"		Accessor="Root"		Direction="In"											Comment="Only works for DomainObjects with property ProgressStatus/_ProgressStatus and a foreign key to ObjectProgressStatusHistory" />

		<Property	Name="ProgressStatusContext"					Type="Context"			Accessor="Required"	Direction="In"											Comment="Only choose ProgressStatus with this context" />

		<Property	Name="AddTextAboveTotalText"					Type="Boolean"			Accessor="Optional"	Direction="In"		Default="True"						Comment="Add text above existing text" />
		<Property	Name="Custom"									Type="Boolean"			Accessor="Optional"	Direction="In"		Default="False"						Comment="Use _ProgressStatus when true, otherwise ProgressStatus" />
		<Property	Name="DomainObjectTextField"					Type="String"			Accessor="Optional"	Direction="In"		Default="Empty"						Comment="Text field to add the text from domainobject to" />
		<Property	Name="HideWorkDescription"						Type="Boolean"			Accessor="Optional"	Direction="In"											Comment="Hide the work description in the change status dialog" />
		<Property	Name="ListAskContinueForRecordStatusChanges"	Type="List[Status]"		Accessor="Optional"	Direction="In"											Comment="List of statuses for which an 'Do you want to continue?' question should be asked" />
		<Property	Name="UseProgressStatus"						Type="ProgressStatus"	Accessor="Optional"	Direction="In"		Default="Empty"						Comment="Bypass dialog and just set this ProgressStatus" />

		<Property	Name="CurrentRecordStatus"						Type="Status"			Accessor="Internal"						Default="${DomainObject.Status}"	Comment="Used to determine whether message should be shown after progress status change" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<WorkflowCall Name="DomainObject_ValidateProgressStatusIsTrashed" WorkflowName="DomainObject_ValidateProgressStatusIsTrashed">
			<Parameter	Name="DomainObject"	Direction="In"		Value="${DomainObject}" />
		</WorkflowCall>

		<When Name="Is DomainObject a Permit which transits to status Closed?" Condition="${DomainObject.EntityName} == Permit &amp;&amp; ${UseProgressStatus.NextStatus?} == PermitStatus.Closed">
			<WorkflowCall Name="Permit_ValidateCloseConditions " WorkflowName="Permit_ValidateCloseConditions">
				<Parameter	Name="Permit"	Direction="In"		Value="${DomainObject}" />
			</WorkflowCall>
		</When>

		<WorkflowCall Name="Call DomainObject_ChangeProgressStatus" WorkflowName="DomainObject_ChangeProgressStatus">
			<Parameter	Name="AddTextAboveTotalText"					Direction="In"		Value="${AddTextAboveTotalText}" />
			<Parameter	Name="Custom"									Direction="In"		Value="${Custom}" />
			<Parameter	Name="DomainObject"								Direction="In"		Value="${DomainObject}" />
			<Parameter	Name="DomainObjectTextField"					Direction="In"		Value="${DomainObjectTextField}" />
			<Parameter	Name="HideWorkDescription"						Direction="In"		Value="${HideWorkDescription}" />
			<Parameter	Name="ListAskContinueForRecordStatusChanges"	Direction="In"		Value="${ListAskContinueForRecordStatusChanges}" />
			<Parameter	Name="ProgressStatusContext"					Direction="In"		Value="${ProgressStatusContext}" />
			<Parameter	Name="UseProgressStatus"						Direction="In"		Value="${UseProgressStatus}" />
		</WorkflowCall>

		<When Name="When this is a requested LockoutTagoutRequest that was previously open" Condition="${DomainObject.EntityName} == LockoutTagoutRequest &amp;&amp; ${DomainObject.Status} == LockoutTagoutRequestStatus.Requested &amp;&amp; ${CurrentRecordStatus} == LockoutTagoutRequestStatus.Open">
			<Message Name="the LockoutTagoutRequest was requested" MessageCode="3174">
				<Parameter	Name="LockoutTagoutRequest"	Direction="In"		Value="${DomainObject}" />
			</Message>
		</When>

		<When Name="Is DomainObject a Permit?" Condition="${DomainObject.EntityName} == Permit">
			<WorkflowCall WorkflowName="Permit_AfterProgressStatusChange">
				<Parameter	Name="Permit"	Direction="In"		Value="${DomainObject}" />
			</WorkflowCall>
		</When>

		<UserContent Name="Post" />
	</Execution>
</Workflow>