Categorie: reference
Bijgewerkt: 2026-04-08
actionfield workflow actionfield1536
ActionField1536
Beschrijving: Create Job based on Kwis Custom: Nee
Propertiesbewerken
| Property | Type | Accessor |
|---|---|---|
| KwisId | String | Required |
| CustomScreenName | String | Optional |
XMLbewerken
<Workflow Name="ActionField1536" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
<Description>Create Job based on Kwis</Description>
<Properties>
<Property Name="KwisId" Type="String" Accessor="Required" Direction="In" Comment="Create job based on this Kwis" />
<Property Name="CustomScreenName" Type="String" Accessor="Optional" Direction="In" Comment="Do not open default screen but the given screen" />
<Property Name="Job" Type="Job" Accessor="Internal" />
<Property Name="KnowledgeTopics" Type="List[KnowledgeTopic]" Accessor="Internal" />
<Property Name="Kwis" Type="Kwis" Accessor="Internal" />
</Properties>
<Execution>
<UserContent Name="Pre" />
<Transaction>
<GetItem Name="Get Kwis" Type="Kwis" OutputProperty="${Kwis}">
<Filters>
<PropertyFilter PropertyName="Id" Operator="=" PropertyValue="${KwisId}" />
</Filters>
</GetItem>
<Validation Name="NoKwisFound" Condition="${Kwis} != Empty" MessageCode="2809">
<Parameter Name="KwisId" Direction="In" Value="${KwisId}" />
</Validation>
<Insert Name="Create Job" ObjectType="Job" OutputProperty="${Job}">
<Parameter Name="Context" Direction="In" Value="JobContext.SelfService" />
<Parameter Name="Status" Direction="In" Value="JobStatus.Requested" />
<Parameter Name="AllowChangeKnowledgeTopic" Direction="In" Value="True" />
<Parameter Name="AllowChangeServiceDeskReportType" Direction="In" Value="True" />
<Parameter Name="Kwis" Direction="In" Value="${Kwis}" />
<Parameter Name="SelfServiceRequest" Direction="In" Value="True" />
</Insert>
<Assign Name="Clear open status history Date" Property="${Job.StatusCreatedDate}" Value="Empty" />
<Assign Name="Clear eopen status history Employee" Property="${Job.StatusCreatedEmployee}" Value="Empty" />
<GetList Name="Get KnowledgeTopic" Type="KnowledgeTopic" OutputProperty="${KnowledgeTopics}" OrderBy="Id" OrderDirection="Ascending">
<Joins>
<Join Name="ServiceDeskReportType" Alias="serviceDeskReportType" Type="InnerJoin" />
</Joins>
<Filters>
<PropertyFilter PropertyName="serviceDeskReportType.Kwis" Operator="=" PropertyValue="${Kwis}" />
<PropertyFilter PropertyName="serviceDeskReportType.Status" Operator="=" PropertyValue="ServiceDeskReportTypeStatus.Active" />
<PropertyFilter PropertyName="serviceDeskReportType.UseInSelfService" Operator="=" PropertyValue="True" />
<PropertyFilter PropertyName="Status" Operator="=" PropertyValue="KnowledgeTopicStatus.Active" />
</Filters>
</GetList>
<When Name="1 KnowledgeTopic found" Condition="${KnowledgeTopics.Count} == 1">
<Assign Name="Set the found knowledgetopic automatically" Property="${Job.KnowledgeTopic}" Value="${KnowledgeTopics[0]}" />
<Assign Name="Set the servicedeskreporttype automatically" Property="${Job.ServiceDeskReportType}" Value="${KnowledgeTopics[0].ServiceDeskReportType}" />
<WorkflowCall Name="Job_SetServiceDeskReportTypeValues" WorkflowName="Job_SetServiceDeskReportTypeValues">
<Parameter Name="Job" Direction="In" Value="${Job}" />
</WorkflowCall>
</When>
</Transaction>
<UserContent Name="Post" />
<View Name="OpenScreen" ViewName="DataEntryScreen">
<Parameter Name="DomainObject" Direction="In" Value="${Job}" />
<Parameter Name="FocusEditableField" Direction="In" Value="=${Job.Description} == Empty" />
<Parameter Name="ScreenName" Direction="In" Value="${CustomScreenName}" />
</View>
</Execution>
</Workflow>