Skip Ribbon Commands
Skip to main content
SharePoint

Adding Calculation Child Elements to a Group Element

To add a calculation child element to a group element, including the root element, in a data model, complete the following steps:
  1. Check out and open the data model you want to edit. 
     
  2. In the Data Model window, right-click the group element to which you want to add the child element. A shortcut menu is displayed.
     
  3. Select Add Child and then select Calculation Element. The new child element is displayed under the selected group element.
     
    Note:
    You can also add child elements from the Toolbox pane by dragging and dropping the appropriate element into the workspace. Drop this element on the element to which you want to add the new child.

     
  4. Click the new calculation element.
     
  5. On the Properties tab, type the calculation element’s expression using other elements in the data model.

    IMPORTANT:
    Data models with calculation child elements must be associated with a data item before the solution will be considered valid. As a best practice, all data models should be associated with at least one data item. 
     
    If the data model is not associated with a data item, then the data model is considered an orphaned data model and will cause the solution to be invalid. You will see a message like the following:
    A Calculation Data Item or Rule in the process contains an invalid expression.
    ...
    CreateEntity failed with one or more Compile errors, listed in .CompilerErrors: Element could not be resolved from '<data model>.<calculation child element>' (<data model>.<calculation child element>) and 1 others.
    As soon as the data model is associated with a data item, the solution will be valid.


    Note:
    You can use solution data items and elements from this data model in the expression.

     
  6. Click the save button. You added a calculation child element to a group element in the data model.

Related Topics
Adding Simple Child Elements to a Group Element
Adding Group Child Elements to a Group Element
Adding Linked Child Elements to a Group Element


Source
BPM Designer Topics > Overview of Solution Items and Solution Item Topics > Data Models > Adding Elements to a Data Model
Last modified at 7/31/2020 11:05 AM