Questo contenuto non è disponibile nella lingua selezionata.

Chapter 4. Data objects


Data objects are the building blocks for the rule assets that you create. Data objects are custom data types implemented as Java objects in specified packages of your project. For example, you might create a Person object with data fields Name, Address, and DateOfBirth to specify personal details for loan application rules. These custom data types determine what data your assets and your decision services are based on.

4.1. Creating the ITOrderService data object

The ITOrderService data object specifies the data type that will be used to define the IT Orders variables.

Prerequisites

  • The IT_Orders_New project is created.

Procedure

  1. Click Add Asset Data Object.
  2. In the Create new Data Object wizard, enter the following values:

    • Data Object: ITOrderService
    • Package: com.myspace.it_orders_new
  3. Click Ok.
  4. Click plus sign next to the Package pull-down menu to specify a new package for the data object.
  5. Input org.jbpm.demo.it_orders.services
  6. Click Add.
  7. Click Save Yes, Move, and then click Save to confirm your changes.

4.2. Creating the Survey data object

The Survey data object contains data fields, such as deliveredOnTime and missingEquipment. You will use the data and values when you design your case.

Prerequisites

  • The IT_Orders_New project is created.

Procedure

  1. In Business Central, go to Menu Design Projects and click IT_Orders_New.
  2. Click Add Asset Data Object.
  3. In the Create new Data Object wizard, enter the following values:

    • Data Object: Survey
    • Package: org.jbpm.demo.it_orders
  4. Click Ok.
  5. Add the Survey data object constraints.

    1. Click add field.
    2. Enter the following values:

      • Identifier: comment
      • Label: Leave empty
      • Type: Sting
    3. Click Create and continue, and then enter the following values:

      • Identifier: deliveredOnTime
      • Label: Leave empty
      • Type: Boolean
    4. Click Create and continue, and then enter the following values:

      • Identifier: missingEquipment
      • Label: Leave empty
      • Type: String
    5. Click Create and continue, and then enter the following values:

      • Identifier: satisfied
      • Label: Leave empty
      • Type: Boolean
    6. Click Create.
  6. Click Save, and then click Save to confirm your changes.

    Figure 4.1. Survey data object details

Torna in cima
Red Hat logoGithubredditYoutubeTwitter

Formazione

Prova, acquista e vendi

Community

Informazioni sulla documentazione di Red Hat

Aiutiamo gli utenti Red Hat a innovarsi e raggiungere i propri obiettivi con i nostri prodotti e servizi grazie a contenuti di cui possono fidarsi. Esplora i nostri ultimi aggiornamenti.

Rendiamo l’open source più inclusivo

Red Hat si impegna a sostituire il linguaggio problematico nel codice, nella documentazione e nelle proprietà web. Per maggiori dettagli, visita il Blog di Red Hat.

Informazioni su Red Hat

Forniamo soluzioni consolidate che rendono più semplice per le aziende lavorare su piattaforme e ambienti diversi, dal datacenter centrale all'edge della rete.

Theme

© 2025 Red Hat