Categorie: reference
Bijgewerkt: 2026-04-08
actionfield workflow actionfield447
ActionField447
Beschrijving: Prolong ServiceContract by creating a new ServiceContract. Custom: Nee
Propertiesbewerken
| Property | Type | Accessor |
|---|---|---|
| ServiceContract | ServiceContract | Root |
| ExtraServiceContractFieldsToCopy | List[String] | Optional |
| ExtraServiceContractLineFieldsToCopy | List[String] | Optional |
XMLbewerken
<Workflow Name="ActionField447" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
<Description>Prolong ServiceContract by creating a new ServiceContract.</Description>
<Properties>
<Property Name="ServiceContract" Type="ServiceContract" Accessor="Root" Direction="In" />
<Property Name="ExtraServiceContractFieldsToCopy" Type="List[String]" Accessor="Optional" Direction="In" Comment="Indicate additional columns to be copied to new ServiceContract" />
<Property Name="ExtraServiceContractLineFieldsToCopy" Type="List[String]" Accessor="Optional" Direction="In" Comment="Indicate additional columns to be copied to new ServiceContractLines" />
<Property Name="CreatedServiceContract" Type="ServiceContract" Accessor="Internal" />
<Property Name="FieldWidth" Type="Int32" Accessor="Internal" Default="0" />
<Property Name="ServiceContractId" Type="UltimoString" Accessor="Internal" />
<Property Name="UseAutoKey" Type="Boolean" Accessor="Internal" />
</Properties>
<Execution>
<UserContent Name="Pre" />
<Transaction>
<Command Name="HasAutoKey" CommandName="HasAutoKey">
<Parameter Name="EntityName" Direction="In" Value="ServiceContract" />
<Parameter Name="HasAutoKey" Direction="Out" OutputProperty="${UseAutoKey}" />
</Command>
</Transaction>
<When Name="UseAutoKeyIsFalse" Condition="${UseAutoKey} == False">
<Command Name="GetFieldWidth" CommandName="GetFieldWidth" Comment="GetFieldWidth">
<Parameter Name="FieldName" Direction="In" Value="SvcId" />
<Parameter Name="FieldWidth" Direction="Out" OutputProperty="${FieldWidth}" />
</Command>
<Dialog Name="Get ServiceContractId" TitleCode="CODENEWSERVICECONTRACT">
<Container>
<Text Name="NewServiceContractId" OutputProperty="${ServiceContractId}" Required="True" LabelCode="CODESERVICECONTRACT" MaxLength="${FieldWidth}" />
</Container>
</Dialog>
</When>
<Transaction>
<Command Name="Prolong serviceContract" CommandName="ServiceContract_Prolong">
<Parameter Name="ExtraServiceContractFieldsToCopy" Direction="In" Value="${ExtraServiceContractFieldsToCopy}" />
<Parameter Name="ExtraServiceContractLineFieldsToCopy" Direction="In" Value="${ExtraServiceContractLineFieldsToCopy}" />
<Parameter Name="ServiceContract" Direction="In" Value="${ServiceContract}" />
<Parameter Name="ServiceContractId" Direction="In" Value="${ServiceContractId}" />
<Parameter Name="CreatedServiceContract" Direction="Out" OutputProperty="${CreatedServiceContract}" />
</Command>
</Transaction>
<UserContent Name="Post" />
<Message Name="ContractProlongedSuccess" MessageCode="0900">
<Parameter Name="CreatedServiceContract" Direction="In" Value="${CreatedServiceContract}" />
<Parameter Name="ServiceContract" Direction="In" Value="${ServiceContract}" />
</Message>
</Execution>
</Workflow>