Book a Demo

Author Topic: c# code from activity diagram  (Read 2538 times)

davijeb

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
c# code from activity diagram
« on: July 17, 2012, 01:45:36 am »
Hi,

I have a simple activity diagram that has a single decision which leads to two actions. All works well and I see:

Code: [Select]
if(blah = true) {
} else {
}

But, I also want to have variable values set during this so it will look something like:


Code: [Select]
if(blah = true) {
this.myflag = true;
} else {
this.myflag = false;
}

Can't see where I need to add this operation into the Activity diagram

Cheers  :)

Jez

Cisore

  • EA User
  • **
  • Posts: 67
  • Karma: +0/-0
    • View Profile
Re: c# code from activity diagram
« Reply #1 on: July 18, 2012, 12:19:27 am »
I'm not sure that I'm understand but :

You want on activity diagram how generate  this code :
Code: [Select]
if(blah = true) {
this.myflag = true;
} else {
this.myflag = false;
}

???