Categorie: reference
Bijgewerkt: 2026-04-08
actionfield workflow actionfield1910
ActionField1910
Beschrijving: Add RCA Roles when creating a RCA. Custom: Nee
Propertiesbewerken
| Property | Type | Accessor |
|---|---|---|
| RootCauseAnalysis | RootCauseAnalysis | Root |
XMLbewerken
<Workflow Name="ActionField1910" Version="2025.07.28" WorkflowType="Standard" xmlns="urn:Ultimo.Framework.Workflow-mapping">
<Security EditLevel="10" ViewLevel="20" UserContentLevel="30" />
<Description>Add RCA Roles when creating a RCA.</Description>
<Properties>
<Property Name="RootCauseAnalysis" Type="RootCauseAnalysis" Accessor="Root" Direction="In" />
<Property Name="ConfirmationRoles" Type="List[ConfirmationRole]" Accessor="Internal" />
<Property Name="ExistingRolesCount" Type="Int64" Accessor="Internal" />
<Property Name="ObjectConfirmationRole" Type="ObjectConfirmationRole" Accessor="Internal" />
</Properties>
<Execution>
<UserContent Name="Pre" />
<Transaction>
<GetList Name="Search for context and Add automatically boolean" Type="ConfirmationRole" OutputProperty="${ConfirmationRoles}" OrderBy="Id" OrderDirection="Ascending">
<Filters>
<PropertyFilter PropertyName="AddAutomatically" Operator="=" PropertyValue="True" />
<PropertyFilter PropertyName="Context" Operator="=" PropertyValue="ConfirmationRoleContext.RootCauseAnalysis" />
</Filters>
</GetList>
<GetCount Name="Count existing RCA Roles" Type="ObjectConfirmationRole" OutputProperty="${ExistingRolesCount}">
<Filters>
<PropertyFilter PropertyName="RootCauseAnalysis" Operator="=" PropertyValue="${RootCauseAnalysis.Id}" />
<PropertyFilter PropertyName="Context" Operator="=" PropertyValue="ObjectConfirmationRoleContext.RootCauseAnalysis" />
</Filters>
</GetCount>
<When Name="There are no existing RCA roles" Condition="${ExistingRolesCount} == 0">
<ForEach Name="Insert Roles into ObjectConfirmationRole" In="${ConfirmationRoles}" As="ConfirmationRole">
<Insert Name="Insert RCA Roles" ObjectType="ObjectConfirmationRole" OutputProperty="${ObjectConfirmationRole}">
<Parameter Name="Context" Direction="In" Value="ObjectConfirmationRoleContext.RootCauseAnalysis" />
<Parameter Name="ConfirmationRole" Direction="In" Value="${ConfirmationRole.Id}" />
<Parameter Name="Description" Direction="In" Value="${ConfirmationRole.Description}" />
<Parameter Name="RootCauseAnalysis" Direction="In" Value="${RootCauseAnalysis.Id}" />
</Insert>
</ForEach>
</When>
</Transaction>
<UserContent Name="Post" />
</Execution>
</Workflow>