Open project view
Open MENU at the top and select: DESIGN -> PROJECT
Open the retail project
Select the RETAIL-WEBSHOP project:
Add a new asset
Open new assets view and click on ADD ASSET
button:
Add new data object
Select new data object from list, click on DATA OBJECT
:
Product - Create object
Create PRODUCT
by filling out pop-up as shown and click on OK button:
Product - General properties
Add label Product
to general properties and click SAVE:
Product - Add name field
Add the first property 'name' to product object by clicking on +ADD FIELD button to open pop-up editor:
Product - Name properties
Fill out fields for name property as shown and click on CREATE button to add field to object:
Product - Updated field
Product object should look like the following:
Product - Add itemId field
Now add ITEMID as shown using +ADD FIELD button:
Product - Complete adding fields
Now add DESC and PRICE as shown using +ADD FIELD button:
Saving your work
- Be sure to SAVE your work by clicking button top right
- Optionally add a comment and click SAVE WITH COMMENTS drop-down in menu
- This completes the
Product
object for now...
Returning to Asset view
To add another data object, first we have to return to Asset view by clicking on
retail-webshop
project in bread crumb menu at top. (Returning to
Asset view can be done at any time)
PromoEvent - Create object
Click on ADD ASSET -> DATA OBJECT
to open data modeling pop-up and
create PromoEvent object as shown:
PromoEvent - General properties
Add label PromoEvent
to general properties, click SAVE:
PromoEvent - Open role editor
PromoEvent is an EVENT, so we need to add that to it's ROLE by clicking the
top right Drools&jBPM
button to open the editor:
PromoEvent - Add Event role
Select EVENT
from the drop down menu in ROLE as shown and click
on SAVE button:
PromoEvent - Add all fields
Using +ADD FIELD button, add field properties to complete EventPromo
as shown:
Saving your work
- Be sure to SAVE your work by clicking button top right
- Optionally add a comment and click SAVE WITH COMMENTS drop-down in menu
- This completes the
EventPromo
object for now...
Returning to Asset view
To add another data object, first we have to return to Asset view by clicking on
retail-webshop
project in bread crumb menu at top. (Returning to
Asset view can be done at any time)
ShoppingCart - Create object
Click on ADD ASSET -> DATA OBJECT
to open data modeling pop-up
and create ShoppingCart object as shown:
ShoppingCart - General properties
Add label ShoppingCart
to general properties and click SAVE:
ShoppingCart - Add all fields
Using +ADD FIELD button, add field properties to complete ShoppingCart object as shown:
Saving your work
- Be sure to SAVE your work by clicking button top right
- Optionally add a comment and click SAVE WITH COMMENTS drop-down in menu
- This completes the
ShoppingCart
object for now...
Returning to Asset view
To add another data object, first we have to return to Asset view by clicking on
retail-webshop
project in bread crumb menu at top. (Returning to
Asset view can be done at any time)
ShoppingCartItem - Create object
Click on ADD ASSET -> DATA OBJECT
to open data modeling pop-up and
create ShoppingCartItem object as shown:
ShoppingCartItem - General properties
Add label ShoppingCartItem
and click SAVE:
ShoppingCartItem - Add all fields
Using +ADD FIELD button, add field properties to complete ShoppingCartItem object
as shown (note: shoppingCart
is Type ShoppingCart object):
Saving your work
- Be sure to SAVE your work by clicking button top right
- Optionally add a comment and click SAVE WITH COMMENTS drop-down in menu
- This completes the
ShoppingCartItem
object
Returning to Asset view
To add another data object, first we have to return to Asset view by clicking on
retail-webshop
project in bread crumb menu at top. (Returning to
Asset view can be done at any time)
ShoppingCart - Add another field (List)
- Click on
ShoppingCart
object to open the asset
- Click on
+Add Field
button to add ShoppingCartItemList
as a
field to the ShoppingCart
Type: ShoppingCartItem
(from the drop-down menu)
- Check the
List
and click on Create
button to finish:
ShoppingCart - finished (finally)
Your ShoppingCart object should look like this now:
Saving your work
- Be sure to SAVE your work by clicking button top right
- Optionally add a comment and click SAVE WITH COMMENTS drop-down in menu
- This completes the
ShoppingCart
object
Reveiw the domain model
Another way to work with the data objects, open the side menu by clicking on
the left most arrow '>' to expand the side menu. Click on DATA OBJECTS to open
menu, note the lock indicates working on SHOPPINGCART data object:
Returning to Asset view
Finally, we return to Asset view by clicking on retail-webshop
project
in bread crumb menu at top. (Returning to Asset view can be done at any time):
More Red Hat Decision Manager Workshops:
Red Hat Decision Manager Articles:
Red Hat Decision Manager Demos: