Creating the types, lists, objects, values (Smart farming)

These are a list of the types, lists, objects, and values we will be creating beforehand for the smart farming app we are building.

  1. We need to create a type called Chart with three String properties – Label, Border color, and Background color.

    We will add a fourth number property called Data.
  2. Let’s create a list value called Chart Data 1 of the Chart type.

    We will add four default data objects, thusly:
    Data – 10, Label – Label 1
    Data – 20, Label – Label 2
    Data – 30, Label – Label 3
    Data – 40, Label – Label 4

    We will save the value when done.
  3. We will now create an object called tempChart of the Chart type.
  4. Let’s create a second list value called ChartTemp of the Chart type.
  5. We will also create a third list value of the Chart type and call it ChartHumid.
  6. We will create another type CaseMockType. The type will have eight string properties —  Number, CreatedDate, Description, Type, AssetID, Reason, Origin, and Status.
  7. Next up. A list called CaseMockLists, of the CaseMockType type. We will add a default data object as well.

    This is what we will copy-paste in the respective fields, and of course save the value when done.
    AssetID — XDX1  
    CreatedDate — 2018-03-28T10:36:03.000Z
    Description — An issue has been reported. Please investigate the device with details: DeviceID:XDX1 with lux value of 48600.
    Number — 00001678
    Origin — Web
    Reason — An issue has been reported. Please investigate the device with details: DeviceID:XDX1 with lux value of 48600.
    Status — Open
    Type — Electrical.
  8. Last in the CaseMock line of values, though not the least, is an object, also called CaseMock.

    We will add a bit of default data. Exactly the same as with the list earlier. This is what we will copy-paste in the respective fields, and of course save the value when done.
    AssetID — XDX1  
    CreatedDate — 2018-03-28T10:36:03.000Z
    Description — An issue has been reported. Please investigate the device with details: DeviceID:XDX1 with lux value of 48600.
    Number — 00001678
    Origin — Web
    Reason — An issue has been reported. Please investigate the device with details: DeviceID:XDX1 with lux value of 48600.
    Status — Open
    Type — Electrical 
  9. We will create another type called ProductCatalogMock. This type will have six string properties — Name, Description, Active, Category, Code, and Color, respectively.
  10. Yes; we will create a list value of the ProductCatalogMock type as well. Let’s call it ProductCatalogMockList.
  11. Let’s add a default data object.
    Active — Yes
    Category — IoT
    Code — 1221212
    Color — White
    Description — Smart light
    Name — White neon

  12. Almost done! We will create two more types. The first one is called WaveMockType. It has two string properties – DateTimeF and Lux.
  13. There will be a list value called Root of the WaveMockType.

    We will add the following default data:
    DateTimeF/Lux – 20180328 103410.918, 5000
    DateTimeF/Lux – 20180328 103411.9184995
    DateTimeF/Lux – 20180328 103409.91840
    DateTimeF/Lux –20180328 103409.918300

  14. We want an object of the WaveMockType as well. Let’s name it tempWave.
  15. Let’s create another type called WaveMockType(Env). This will have three string properties – DateTimeF, Temp, and Humidity.
  16. We will create a list and an object value of the WaveMockType(Env) type. Let’s call the list Root(Env). This is the default data we are going to add:
    DateTimeF/Humidity/Temp – 20180328 103410.91890, 32
    DateTimeF/Humidity/Temp – 20180328 103411.9185035
    DateTimeF/Humidity/Temp – 20180328 103409.91857, 20
    DateTimeF/Humidity/Temp – 20180328 103409.91889, 24

  17. We are going to call the object tempWave(Env).
  18. We will create three number values called avgLums, avgTemp, and avgHum.

Aaand we are done!


Check out the glossary for a definition of terms and key concepts that appear in the Boomi Flow website, drawing tool, technical documentation, blogs, and marketing communications.

If you need to take a closer look, click on the images to enlarge them. Have a question? Click the Help button on the bottom right-hand corner of this page to ask.