cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

ThingWorx Solutions in Food Industry Part 2

100% helpful (1/1)

 

 

Step 3: Important Factors

 

If the company cannot ship or deliver their products fast enough, that will cause food waste and less revenue. At the same time, having nonstop access to meaningful data about the logistics side of the company provides a new level of decision-making capabilities.

 

Let’s first see what some of the pitfalls are that causes bad logistics or room for improvement. We can keep these items in mind as we work on our application.

 

  1. Customer behavior – More attention can be put on how customers are shopping in certain areas. It’s not enough to know what areas are buying the most products and send them more shipments. Deadhead miles and load management will help save unnecessary costs.

  2. Shipment tracking and route planning – The traveling salesman problem is one that scientists have been working on for ages. There is no one solution to this problem, but there are many bad ones. Planning methods and routes is almost magic, but the more methodical the process, the more can be saved here. Something as simple and selecting the routes based on the number of right turns to reduce gas can save millions on yearly gas expenses.

  3. Method of travel utilization – Sea. Air. Road. Train. Each method has its benefits and down sides. When you pick a method, also incorporate how to utilize all the space provided. This could be using smaller boxes, a different type of packaging material, or playing Tetris in a trailer.

 

Customer Models

 

Understanding your customer and their habits is of utmost importance. We'll start by creating some of the base models used for customers in this applications. You will build on top of these models as you progress through this learning path.

 

  1. In the ThingWorx Composer, click the + New in the top left of the screen.

    select_new.png

     

  2. Select Data Shape in the dropdown.

    create_new_datashape.png

     

  3. In the name field, enter Fizos.Customers.DataShape. All of our customers will be based off this Data Shape.

  4. Set the Project (ie, PTCDefaultProject) and click Save to store all changes.

  5. Click on the Field Definitions tab and click the + Add button to add new Field Definitions.

    new_customer_ds.png

     

  6. Add the list of Properties below:

 Name       Base Type      Aspects                           Description
IDInteger0 minimum, primary key, default 0Row identifier
UUIDStringN/AString used as unique identifer across multiple platforms
TypeStringN/AType of customer (individual or another company)
FactorsTagsData TagThis will hold the different type of data points or tags that will help to analyze a customer's characteristics and behavior
NameStringN/ACustomer name
EmailStringN/ACustomer email
AddressStringN/ACustomer address
PhoneStringN/ACustomer phone number

 

The Properties for the Fizos.Customers.DataShape Data Shape should match the following:

customer_ds_properties.png

 

7. In the ThingWorx Composer, click the + New in the top left of the screen.

select_new.png

 

8. Select Data Table in the dropdown and select Data Table in the prompt.

create_new_datatable.png

 

9. In the name field, enter Fizos.Customers.DataTable. Our differing types of customers will fall under this template.

 

10. For the Data Shape field, select Fizos.Customers.DataShape.

11. Set the Project (ie, PTCDefaultProject) and click Save to store all changes.

new_customer_table.png

 

12. This entity will be used to house our data and provide assistance with our analytics.

Vehicle Models

 

To build a plan for your logistics solutions, you first need to have the data necessary for your vehicles and factories. Let's begin housing this data to help us with our planning.

  1. In the ThingWorx Composer, click the + New in the top left of the screen.

    select_new.png

     

  2. Select Data Shape in the dropdown.

    create_new_datashape.png

     

  3. In the name field, enter Fizos.Vehicles.DataShape. All of our vehicles will be based off this Data Shape.

  4. Set the Project (ie, PTCDefaultProject) and click Save to store all changes.

    new_vehicles_ds.png

     

  5. Add the list of properties below:

Name          Base Type       Aspects                               Description
IDInteger0 minimum, primary key, default 0Row identifier
FactoryIDInteger0 minimum, default 0Factory row identifier
LocationLocationN/AString used as unique identifer across multiple platforms
FeaturesTagsData TagThis will hold the different type of data points or tags that will help to plan what this vehicle can and will build
SizeStringN/AFactory size

 

The properties for the Fizos.Factories.DataShape Data Shape are as follows:

 

vehicles_ds_properties.png

  1. In the ThingWorx Composer, click the + New in the top left of the screen.

    select_new.png

     

  2. Select Data Table in the dropdown and select Data Table in the prompt.

    create_new_datatable.png

     

  3. In the name field, enter Fizos.Vehicles.DataTable. Our differing types of vehicles will be inside of this Data Table.

  4. For the Data Shape field, select Fizos.Vehicles.DataShape.

  5. Set the Project (ie, PTCDefaultProject) and click Save to store all changes.

    new_vehicles_table.png

     

  6. This entity will be used to house our data and provide assistance with our analytics.

 

Factory Models

 

  1. In the ThingWorx Composer, click the + New in the top left of the screen.

    select_new.png

     

  2. Select Data Shape in the dropdown.

    create_new_datashape.png

     

  3. In the name field, enter Fizos.Factories.DataShape. All of our factories will be based off this Data Shape.

  4. Set the Project (ie, PTCDefaultProject) and click Save to store all changes.

    new_factories_ds.png

     

  5. Add the list of properties below:

Name        Base Type       Aspects                                  Description
IDInteger0 minimum, primary key, default 0Row identifier
LocationLocationN/AString used as unique identifer across multiple platforms
FeaturesTagsData TagThis will hold the different type of data points or tags that will help to plan what this factory can and will build
SizeStringN/AFactory size

 

The properties for the Fizos.Factories.DataShape Data Shape are as follows:

 

factories_ds_properties.png

 

  1. In the ThingWorx Composer, click the + New in the top left of the screen.

    select_new.png

     

  2. Select Data Table in the dropdown.

    create_new_datatable.png

     

  3. In the name field, enter Fizos.Factories.DataTable. Our differing types of factories will be inside of this Data Table.

  4. For the Data Shape field, select Fizos.Factories.DataShape.

  5. Set the Project (ie, PTCDefaultProject) and click Save to store all changes.

    new_factories_table.png

     

  6. This entity will be used to house our data and provide assistance with our analytics.

 

Centralized Logistics

 

Our application needs an efficient system of logistics. We already have sensors for our food entities, so see below how we work to move in the right direction. We'll be using a Thing Template to allow our new services to be overriden later if we so choose.

 

  1. In the ThingWorx Composer, click the + New in the top left of the screen.

    select_new.png

     

  2. Select Thing Template in the dropdown.

    create_new_thingtemplate.png

     

  3. In the name field, enter Fizos.Logstics. All of our product line will fit this abstract entity.

  4. For the Base Thing Template field, select GenericThing.

  5. Set the Project (ie, PTCDefaultProject) and click Save to store all changes.

    new_factories_table2.png

     

  6. Add the list of Services below. The level of the complexity in these Service vary based on how you would like to start your daily routine, the number of employees, number of deliveries and facilities, etc.

Name                                    Return Type   Override    Async     Description
PerformDailyDeliveriesNothingYesYesStart process of regular product deliveries.

 

The list of services should look like the following:

fizos_thing_services.png

 

 
Click here to view Part 3 of this guide.
Comments

Hi,

 

I found an error in this document regading the Fizos.Vehicles.DataShape. In fact there is a mismatch between the table with the fileds definition we need to add and the picture. 

Version history
Last update:
‎Mar 07, 2023 02:47 PM
Updated by:
Labels (1)
Contributors