Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8693929
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T00:39:32+00:00 2026-06-13T00:39:32+00:00

I am about to make a UML activity diagram for an old program, full

  • 0

I am about to make a UML activity diagram for an old program, full of goto.
The program I’m going to model is constructed as in the example. First, it make something, then it check the error flag. And if the error flag is set, it writes an error code to a log and possibly go to another place in the program.

// When error, the program generate a Trap and then go to 1000
err = Foo(A,B,C)
if (err != 0) 
{
   CTrap(2000,err,A,B,C)
   goto(1000)
}

// When error, the program generate a trap and continue
err = Foo2(A,B,C)
if (err != 0)
{
   CTrap(2000,err,A,B,C)
}

CTrap writes an error code to the log, and I want the activity diagram to show the error codes that each activity can generate and when.

Now I have tried modeled this with countless of decisions and merges and added an action for each error code that is written to the log. But it is almost impossible to follow the program then. I could remove the action for the error codes, but then I lose important information. And it is then still countless decisions and merge. I wonder if there is any notation that I can use to simplify it somehow. So it shows the error codes that can be generated and when, without having to flood the chart with decisions and merges. If I can use the post-contion on the error flag in any way, or if you can have multiple outputs from a campaign with conditions on?

Edit

I’ve experimented a bit by placing information about error codes (Trap) in the comments. I do not know if it is possible to write as I have done?
And can I have different outputs from an activity that I have done in some places?
Then I wonder if I’ve been using the “Write Variable” correct?
This has been said one experiment, and not a complete diagram.

The functions that is prefixed with BFX is system functions, and function prefixed with BX2 are functions associated with this program.
All merge is a GOTO destination. For example the merge called 8100 is a part of the program that handle error situations that you go to with GOTO 8100

My experiment

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T00:39:33+00:00Added an answer on June 13, 2026 at 12:39 am

    You can do this using multiple activity diagrams. From your code, you don’t want to show the possible errors on the top level diagram, but on the diagram that shows CTrap you can show the possible error codes and what they do.

    If you want to show all the information in one diagram there is nothing you can do – the diagram will become pretty cluttered.

    Edit (after addition of diagram): you can concatenate the guards in the links so instead of having 4 links outgoing from the junction you get one. Don’t think that there is anything else that you can do.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm just about to make my first trip into the world of JNI (Java
I don't really know anything about make or makefile scripts, so I'm hoping someone
I read the german article about Make on Wikipedia and found the following 2
I am about to make some major changes to my Mercurial repositories. As I
I'm about to make a fool out of myself, but I've noticed many friendly
PostgreSQL is about to make me punch small animals. I'm doing the following SQL
I am about to make a simple search facility on my website, where a
We're about to make data transformation from one system to another using SSIS. We
Follow up to this question about GNU make : I've got a directory, flac
So, I was about to make a regular sitemap.xml for my site, then I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.