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

ActionField522

Beschrijving: Create a job for ConditionFlawPresent. Custom: Nee

Propertiesbewerken

Property Type Accessor
ConditionFlawPresent ConditionFlawPresent Root
FormName UltimoString Optional
JobContext Context Optional

XMLbewerken

<Workflow Name="ActionField522" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
	<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
	<Description>Create a job for ConditionFlawPresent.</Description>
	<Properties>
		<Property	Name="ConditionFlawPresent"	Type="ConditionFlawPresent"	Accessor="Root"		Direction="In" />

		<Property	Name="FormName"				Type="UltimoString"			Accessor="Optional"	Direction="In"		Default="job03"	Comment="Open this screen with the created Job" />
		<Property	Name="JobContext"			Type="Context"				Accessor="Optional"	Direction="In"						Comment="Create Job with this context" />

		<Property	Name="CreatedJob"			Type="Job"					Accessor="Internal" />
	</Properties>
	<Execution>
		<UserContent Name="Pre" />

		<Transaction>
			<WorkflowCall Name="Job_CreateAndInitialize" WorkflowName="Job_CreateAndInitialize">
				<Parameter	Name="Equipment"		Direction="In"		Value="${ConditionFlawPresent.Equipment}" />
				<Parameter	Name="JobContext"		Direction="In"		Value="${JobContext}" />
				<Parameter	Name="JobCreateMethod"	Direction="In"		Value="CreateStandard" />
				<Parameter	Name="Job"				Direction="Out"													OutputProperty="${CreatedJob}" />
			</WorkflowCall>

			<Command Name="Find department, costcenter and customer for created job" CommandName="Job_FindDepartmentCostCenterAndCustomer">
				<Parameter	Name="Job"	Direction="In"		Value="${CreatedJob}" />
			</Command>

			<When Name="Check ProcessFunction exist » ProcessFunctionIsNotEmpty" Condition="${CreatedJob.ProcessFunction} != Empty">
				<WorkflowCall Name="Job CopyOperationLoss" WorkflowName="Job_CopyOperationLoss">
					<Parameter	Name="Job"	Direction="In"		Value="${CreatedJob}" />
				</WorkflowCall>
			</When>

			<When Name="Check FlawPresent status » StatusIsActive" Condition="${ConditionFlawPresent.Status} == ConditionFlawPresentStatus.Active">
				<Assign Name="LinkSolveJobToConditionFlawPresent" Property="${ConditionFlawPresent.SolveJob}" Value="${CreatedJob}" />
			</When>
		</Transaction>

		<WorkflowCall Name="Job_WarnIfStartOrTargetDateIsInThePast" WorkflowName="Job_WarnIfStartOrTargetDateIsInThePast">
			<Parameter	Name="Job"	Direction="In"		Value="${CreatedJob}" />
		</WorkflowCall>

		<WorkflowCall Name="Job_WarnIfTargetDateIsPastSLATargetDate" WorkflowName="Job_WarnIfTargetDateIsPastSLATargetDate">
			<Parameter	Name="Job"	Direction="In"		Value="${CreatedJob}" />
		</WorkflowCall>

		<UserContent Name="Post" />

		<View Name="OpenScreen" ViewName="DataEntryScreen">
			<Parameter	Name="DomainObject"			Direction="In"		Value="${CreatedJob}" />
			<Parameter	Name="FocusEditableField"	Direction="In"		Value="=${CreatedJob.Description} == Empty" />
			<Parameter	Name="ScreenName"			Direction="In"		Value="${FormName}" />
		</View>
	</Execution>
</Workflow>