Ramus
Help topics
← Help

Example — order processing

Build a model from receiving to shipping an order. Start with explicitly named flows, then use a separate exercise to examine two states of one document. Saving the model records its description; it does not execute the order.

1. Prepare shared data

  1. Create an IDEF0 project with model “Order processing” and author “Olena”. Save it as Orders.rsf.
  2. In the Classifiers workspace create the lists and elements below.
  3. Add Description and numeric Amount attributes to Documents. Give the four documents amounts 100, 200, 300 and 400. Set the Order description to “Items, quantities and customer details”.
  4. In project properties, enable Positions under owner classifiers and apply the change.
Classifier Elements
Documents Order; Validation rules; Invoice; Confirmation
Positions Sales manager
Resources Accounting system
Wizard step listing Documents, Positions and Resources.
Wizard step listing Documents, Positions and Resources.
Open image

Each document exists once and can be attached to several flows. See creating a classifier, adding an attribute and preparing owners.

2. Define the process boundary

  1. Open context diagram A-0. Add its single activity, “Process order”, numbered A0.
  2. With the Arrow tool click the start and end of each connection below. For input, control and mechanism start at the border; for output start at the activity.
  3. In each arrow's properties attach the element on the Flow tab and enter the explicit flow name. Use the same Order document on the output, despite its different label.
  4. In A0 properties select Sales manager as owner.
Arrow Connection Attached element / explicit name
Input Left border → left of A0 Order / Order
Control Top border → top of A0 Validation rules / Validation rules
Mechanism Bottom border → bottom of A0 Sales manager / Sales manager
Output Right of A0 → right border Order / Shipped order
A-0 context: Process order and four labelled ICOM flows.
A-0 context: Process order and four labelled ICOM flows.
Open image

The overview shows all four ICOM roles. Explicit names make this overview easy to read and override automatic labels containing states. A mechanism label alone does not assign an owner. See drawing and flow names.

3. Connect four activities

  1. Select A0 and go to its child diagram. Choose four blocks in the decomposition wizard and confirm. Cancel leaves the activity without new children.
  2. Name the activities from left to right: Accept order, Check order, Pack order, Ship order.
  3. Connect the free internal end of the inherited input to A1 and the output to A4. Connect control to A2 and the mechanism to the activities that need it.
  4. Connect A1→A2→A3→A4. Name the transfers Received order, Checked order and Packed order; attach Order.
  5. Open child activity properties and check the inherited owner.
A0 decomposition wizard with four activities selected before confirmation.
A0 decomposition wizard with four activities selected before confirmation.
Open image
A0: Accept, Check, Pack and Ship order, with boundary arrows attached.
A0: Accept, Check, Pack and Ship order, with boundary arrows attached.
Open image

Diagram A0 now contains A1–A4. An inherited border stub still needs its internal end connected even though it already has a parent counterpart. See decomposition.

4. Branch a control and clarify a label

  1. With the Arrow tool start in the middle of Validation rules and finish at the top of A1. The control should reach A1 and A2.
  2. Move the Received order label into an empty area. Enable its tilde leader and choose a point on this transfer line.
  3. Enter an alternative label for one control segment in its properties. Keep text display enabled.
Validation rules control branches to A1 and A2 with one ordinary label.
Validation rules control branches to A1 and A2 with one ordinary label.
Open image

An ordinary connected group of one flow has one label; a segment with visible alternative text can have its own. The tilde only links a displaced label to its line. See branches and labels.

5. Break down the order check

  1. Select A2 and open its child diagram. Create Check details, Check stock and Confirm order.
  2. Connect the inherited border continuations to the appropriate activities. Connect the details result to A23, then draw from the stock check output to the middle of that transfer to form a merge.
  3. Return to parent diagram A0 and open A2 again.
A2 with A21 Check details, A22 Check stock and A23 Confirm order.
A2 with A21 Check details, A22 Check stock and A23 Confirm order.
Open image

A2 shows A21–A23. Reopening it does not repeat the wizard. The two merge inputs remain separate transfers: matching labels alone do not prove they share a flow. See branches and merges.

6. Continue a local mechanism

  1. On A2 draw from the bottom border to the bottom of A22. Attach Accounting system from Resources and use that flow name.
  2. Select its tunneled start at the border. Inspect the square and simple rounded options in the Tunnel menu.
  3. Create a border continuation and return to A0. A counterpart appears at A2; connect its free end to the required source.
  4. For a separate comparison, delete this child continuation on A2. On A0 select the tunneled endpoint at A2: the ordinary rounded option is also available there. Undo the exercise and restore the continuation afterwards.
A2 lower boundary: local Accounting system arrow with a square mark at its start.
A2 lower boundary: local Accounting system arrow with a square mark at its start.
Open image
A0 now contains the parent counterpart of the local Accounting system arrow at A2.
A0 now contains the parent counterpart of the local Accounting system arrow at A2.
Open image

A tunnel belongs to one endpoint. The ordinary rounded option is unavailable on a child border; at a decomposed activity it can affect reports about child activities. These options are not order execution stages. See tunnels.

7. Compare two document states

  1. Create two new transfers A21→A23 and A22→A23 on A2. Do not join them at a common node or select an existing flow.
  2. Attach the same Order document to each new flow. Leave explicit names and alternative labels empty and keep text display enabled.
  3. In the lower half of each attachment row enter received for the first and checked for the second.
  4. Inspect the labels, then give one flow an explicit name. To clear a state, clear only its text.
Two independent flows with automatic labels showing Order as received and checked.
Two independent flows with automatic labels showing Order as received and checked.
Open image

The labels show Order (received) and Order (checked); the document name in the classifier stays Order. An explicit flow name overrides the automatic text. Independence here applies to two separate flows. Connected branches follow propagation rules. Undo the exercise before returning to the main model.

8. Mark diagram preparation

  1. In A2 diagram properties choose Draft and confirm.
  2. Open properties again, choose Other and enter Under review. Confirm and reopen properties.
  3. Check the selection and custom text. Make a trial change and Cancel; it is not applied.
Reopened A2 properties showing Other and the saved text Under review.
Reopened A2 properties showing Other and the saved text Under review.
Open image

The custom text is retained in the dialog. The frame has only four standard status rows. This status describes editorial preparation, not approval or execution of an activity. See diagram properties.

9. Edit and restore

  1. On A0 move A1 to the right of another activity. Inspect the new numbers and undo the move.
  2. Copy a block and paste it on A2. Inspect the copy's new number, then undo the paste.
  3. On A0 delete the decomposed A2 and confirm. Undo, redo, then undo again.
  4. Reopen the restored A2 and check its activities and arrows.
Tree and A0 after confirming deletion of Check order and its descendants.
Tree and A0 after confirming deletion of Check order and its descendants.
Open image

Moving preserves the activity while changing its order; pasting creates a copy. Cut and Paste delete the original and insert a copy, without guaranteeing all external connections. See editing and undo/redo.

10. Save and reopen

  1. Restore the main model after the exercises. Save Orders.rsf.
  2. Close the project, open that exact file and visit A0 and A2.
  3. Check the four and three activities, attachments, tunnels, labels and status.
Reopened Orders.rsf with restored A0, A2 and flows.
Reopened Orders.rsf with restored A0, A2 and flows.
Open image

Reopening shows the recorded state. An old file's existence does not prove the latest edit was saved; canceling Save As is not a successful save. See reopening.

11. Read the same data in a report

  1. Open Document register, configured for Documents with name and amount columns.
  2. Switch to preview. Check the four rows and amounts 100, 200, 300, 400.
  3. Use printing or diagram export to share the result.
Document register preview with four document rows and amounts 100, 200, 300, 400.
Document register preview with four document rows and amounts 100, 200, 300, 400.
Open image

The report reads the same classifier data, so changing an amount in the table changes the next preview. It does not prove the order was executed. See reports.

Check the result