Comparing flow charts and activity diagrams

You can use Rhapsody® Developer for C® to include a Flowchart model located in the <Rhapsody installation>\Samples\CSamples\Flowchart folder in your activity diagram. These sample flow charts show you which flow chart patterns are recognized in order to generate the structured code.

About this task

Flow charts have the following elements in common with activity diagrams including start and end activities and actions:

  • Decision points that show branching points in the program flow based on guard conditions.
  • Actions that represent function invocations with a single exit action flow taken when the function completes. It is not necessary for all actions to be within the same object.
  • Action blocks that represent compound actions that can be decomposed into actions.

However, flow charts do not include And states, and flow charts for operations cannot receive events.

The following illustration shows the main elements of a flow chart. This particular flow chart generates if, then, and else code.

Flow chart - showing main elements