Modeling How-To's > Modeling Activities > Entity-Based Activities

Entity-Based Activities

The activity time or other activity action (JOIN, SPLIT, ASSIGN, etc.) is based on the type of entity being processed.

 

The model used for this example, as well as all of the modeling "how-to" examples, can be found in the ProModel Solutions Café (http://www.promodel.com/solutionscafe/howto/). A video demonstrating this solution can be found here.

Solution A (If only the activity time is a function of the entity type)

  1. Click on the Multi Entity tab at the bottom of the activity Properties dialog.
  2. In the table that appears, select each entity processed at that activity and its associated activity time.

Solution B (For specifying any activity action-not just a time-as a function of the entity type)

  1. Click on the Logic button in the activity Properties dialog.
  2. Define an IF statement to test for the entity type using the Entity function.
  3. Define a logic statement (Wait, Get, Send, etc.) based on the entity being tested.
Example

Two types of orders (A and B) must go through a Review activity. A orders take .5 minute to review and B orders take 1.2 minutes.

Solution A

The time for each order has been entered on the Multi Entity tab of the Properties dialog for the Review activity. The number on the Multi Entity tab (2) represents the total number of entities defined.

Solution B

In the Activity Logic Builder, an IF statement was defined testing whether the entity is Order A. If true, a WAIT time occurs for .5 minutes. An ELSE statement is also defined (to cover Order B entities) with a WAIT time of 1.2 minutes.


© 2011 ProModel Corporation • 556 East Technology Avenue • Orem, UT 84097 • Support: 888-776-6633 • www.promodel.com