Create a local data model using JSON

You can define a data model local to a process, case, rule or custom service using a JSON file.

See Data model.

  1. Open the process map for which to create a data model.
  2. On the Process modeling bar, click Data models.

    The Data models page appears.

    The local data model inherits the process category.

  3. Click New.
    The Add Data model dialog box is displayed.
  4. Enter a Name for the data model.
  5. Optional. Provide a Description for the data model.
  6. To add a JSON file, click Load from external source.

    The Load from external dialog box is displayed.

  7. On the Type list select JSON Expression. (Default: JSON Expression)
  8. Browse the file or drag the file into the File box.

    You can also paste the sample JSON format in the File content.

    Once you add the files, the file preview is displayed in the File content box. You can edit the file if required.

  9. Click Add.

    The JSON file is parsed and the fields are displayed in the tree structure in the canvas. You can change or rename the field properties or delete them from the tree.

    • The field names support these special characters (!@#$%^&*()_+-={}|:"<>?,./;'[]\).

    • If the JSON file cannot be parsed, an error message is displayed.

    • When you define a tree structure for the data model, but provide a different JSON sample, an error message is displayed that the existing model will be overwritten. You must confirm if you want to continue; this action cannot be undone.

  10. Click Add.

    The data model is saved as part of the process definition.

    You can create a data model local to a business rule, case or custom service using a JSON file in a similar manner.