Categorie: reference
Bijgewerkt: 2026-04-08
actionfield workflow actionfield247
ActionField247
Beschrijving: Copy JobPlan to PmJob. Jobplan is selected via collectinput. Custom: Nee
Propertiesbewerken
| Property | Type | Accessor |
|---|---|---|
| PmJob | PmJob | Root |
| JobPlanSqlWhereClause | String | Optional |
XMLbewerken
<Workflow Name="ActionField247" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
<Description>Copy JobPlan to PmJob. Jobplan is selected via collectinput.</Description>
<Properties>
<Property Name="PmJob" Type="PmJob" Accessor="Root" Direction="In" />
<Property Name="JobPlanSqlWhereClause" Type="String" Accessor="Optional" Direction="In" Default="jpContext = 1" Comment="Select only JobPlan with this whereclause" />
<Property Name="AnswerContinue" Type="RequestResult" Accessor="Internal" />
<Property Name="JobPlan" Type="JobPlan" Accessor="Internal" />
<Property Name="PmJobDetailRecordsFound" Type="Boolean" Accessor="Internal" />
</Properties>
<Execution>
<UserContent Name="Pre" />
<Validation Name="PmJobStatusCreated" Condition="${PmJob.Status} == PmJobStatus.Created" MessageCode="1927">
<Parameter Name="PmJob" Direction="In" Value="${PmJob}" />
</Validation>
<Transaction>
<Command Name="Check pmjob has details" CommandName="PmJob_HasDetailRecords">
<Parameter Name="PmJob" Direction="In" Value="${PmJob}" />
<Parameter Name="PmJob_HasDetailRecords" Direction="Out" OutputProperty="${PmJobDetailRecordsFound}" />
</Command>
</Transaction>
<When Name="PmJobDetailRecordsFoundCheck » PmJobDetailRecordsFoundIsTrue" Condition="${PmJobDetailRecordsFound} == True">
<Question Name="Continue" Type="YesNo" MessageCode="0085" Default="Yes" OutputProperty="${AnswerContinue}">
<Parameter Name="PmJob" Direction="In" Value="${PmJob}" />
</Question>
<When Name="AnswerContinueIsNo" Condition="${AnswerContinue} == No">
<Message Name="ShowMessage" MessageCode="0087" />
<Stop Name="Stop" Mode="Abort" />
</When>
</When>
<Dialog Name="JobPlan" TitleCode="SELECT_JOBPLAN">
<Container>
<SelectionList Name="JobPlan" OutputProperty="${JobPlan}" ColumnName="JpId" ViewfieldConfiguration="Default" SqlWhereClause="${JobPlanSqlWhereClause}" />
</Container>
</Dialog>
<When Name="Check For JobPlan » No JobPlan" Condition="${JobPlan} == Empty">
<Stop Name="Stop" Mode="Abort" />
</When>
<Transaction>
<Command Name="Copy jobplan to pmjob" CommandName="PmJob_CopyFromJobPlan">
<Parameter Name="JobPlan" Direction="In" Value="${JobPlan}" />
<Parameter Name="PmJob" Direction="In" Value="${PmJob}" />
</Command>
</Transaction>
<UserContent Name="Post" />
<Message Name="Finished" MessageCode="0086">
<Parameter Name="JobPlan" Direction="In" Value="${JobPlan}" />
<Parameter Name="PmJob" Direction="In" Value="${PmJob}" />
</Message>
</Execution>
</Workflow>