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

ActionField1840

Beschrijving: Change the status of AbcCode via a dialog. Custom: Nee

Propertiesbewerken

Property Type Accessor
AbcCode AbcCode Root

XMLbewerken

<Workflow Name="ActionField1840" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Change the status of AbcCode via a dialog.</Description>
	<Properties>
		<Property	Name="AbcCode"				Type="AbcCode"				Accessor="Root"		Direction="In" />

		<Property	Name="NewStatus"			Type="Status"				Accessor="Internal" />
		<Property	Name="ScheduledWorkflow"	Type="ScheduledWorkflow"	Accessor="Internal" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<WorkflowCall Name="Choose AbcCode status" WorkflowName="Dialog_ChooseStatus">
			<Parameter	Name="DomainObject"	Direction="In"		Value="${AbcCode}" />
			<Parameter	Name="Status"		Direction="Out"							OutputProperty="${NewStatus}" />
		</WorkflowCall>

		<UserContent Name="AfterDialog" />

		<Transaction>
			<ChangeStatus Name="ChangeStatusToNewStatus" DomainObject="${AbcCode}" NewStatus="${NewStatus}" />

			<GetItem Name="ScheduledWorkflow" Type="ScheduledWorkflow" OutputProperty="${ScheduledWorkflow}">
				<Filters>
					<PropertyFilter	PropertyName="Id"	Operator="="		PropertyValue="B02FDA87-D694-4648-8654-94E5B8328BB3" />
				</Filters>
			</GetItem>
		</Transaction>

		<Choose Name="Scheduled Wf active or not?">
			<When Name="scheduled Wf active?" Condition="${ScheduledWorkflow.Active} == True &amp;&amp; ${ScheduledWorkflow.NextCheck} != Empty &amp;&amp; ${ScheduledWorkflow.NextCheck} &gt;= #{Environment.CurrentDateTime}">
				<Message Name="Articles will be updated during the next execution of the event" MessageCode="3851">
					<Parameter	Name="NextCheck"	Direction="In"		Value="${ScheduledWorkflow.NextCheck}" />
				</Message>
			</When>


			<When Name="scheduled Wf not active?" Condition="${ScheduledWorkflow.Active} == False">
				<Message Name="Articles will not be updated during the next execution of the event" MessageCode="3855" />
			</When>
		</Choose>

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