Categorie: reference
Bijgewerkt: 2026-04-08
actionfield workflow actionfield1649
ActionField1649
Beschrijving: Create new Job (action) for SurveyAssessmentLine. Custom: Nee
Propertiesbewerken
| Property | Type | Accessor |
|---|---|---|
| DomainObject | DomainObject | Root |
XMLbewerken
<Workflow Name="ActionField1649" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
<Description>Create new Job (action) for SurveyAssessmentLine.</Description>
<Properties>
<Property Name="DomainObject" Type="DomainObject" Accessor="Root" Direction="In" Comment="SurveyAssessmentLine" />
<Property Name="Change" Type="Change" Accessor="Internal" />
<Property Name="CreatedJob" Type="Job" Accessor="Internal" />
<Property Name="CurrentDateTime" Type="DateTime" Accessor="Internal" Default="#{Environment.CurrentDateTime}" />
<Property Name="SurveyAssessmentLine" Type="SurveyAssessmentLine" Accessor="Internal" />
</Properties>
<Execution>
<UserContent Name="Pre" />
<Transaction>
<Choose Name="EntityName">
<When Name="From SurveyAssessmentLine" Condition="${DomainObject.EntityName} == SurveyAssessmentLine">
<Assign Name="Set SurveyAssessmentLine" Property="${SurveyAssessmentLine}" Value="${DomainObject}" />
</When>
</Choose>
<Command Name="Job_CreateAndInitialize" CommandName="Job_CreateAndInitialize">
<Parameter Name="InitialStatus" Direction="In" Value="JobStatus.Active" />
<Parameter Name="JobContext" Direction="In" Value="JobContext.SurveyAction" />
<Parameter Name="JobCreateMethod" Direction="In" Value="CreateActive" />
<Parameter Name="Job" Direction="Out" OutputProperty="${CreatedJob}" />
</Command>
<When Name="From SurveyAssessmentLine" Condition="${DomainObject.EntityName} == SurveyAssessmentLine">
<When Name="Vendor" Condition="${SurveyAssessmentLine.Id.SurveyAssessment.Context} == SurveyAssessmentContext.VendorRating">
<Assign Name="Set Vendor" Property="${CreatedJob.Vendor}" Value="${SurveyAssessmentLine.Id.SurveyAssessment.Vendor}" />
</When>
<When Name="ServiceContract" Condition="${SurveyAssessmentLine.Id.SurveyAssessment.Context} == SurveyAssessmentContext.ContractAssessment">
<Assign Name="Set ServiceContract" Property="${CreatedJob.ServiceContract}" Value="${SurveyAssessmentLine.Id.SurveyAssessment.ServiceContract}" />
</When>
<Assign Name="Set SurveyAssessmentLine" Property="${CreatedJob.SurveyAssessmentLine}" Value="${SurveyAssessmentLine}" />
<Add Name="Increase SurveyAssessmentLine.NumberOfJobs" ValueLeft="${SurveyAssessmentLine.NumberOfJobs}" ValueRight="1" OutputProperty="${SurveyAssessmentLine.NumberOfJobs}" />
</When>
<Assign Name="Assign Active Employee" Property="${CreatedJob.StatusActiveEmployee}" Value="#{User.EmployeeId}" />
<Assign Name="Assign Employee" Property="${CreatedJob.Employee}" Value="#{User.EmployeeId}" />
<Assign Name="Assign Active Date" Property="${CreatedJob.StatusActiveDate}" Value="${CurrentDateTime}" />
<Assign Name="Assign ChangeLinkDate" Property="${CreatedJob.ChangeLinkDate}" Value="${CurrentDateTime.Date}" />
<Assign Name="Clear TargetDate from Job" Property="${CreatedJob.TargetDate}" Value="Empty" />
</Transaction>
<UserContent Name="Post" />
<View Name="OpenScreen" ViewName="DataEntryScreen">
<Parameter Name="DomainObject" Direction="In" Value="${CreatedJob}" />
<Parameter Name="FocusEditableField" Direction="In" Value="=${CreatedJob.Description} == Empty" />
</View>
</Execution>
</Workflow>