Book a Demo

Author Topic: BPMN Activity Graphical Icon  (Read 4156 times)

lovettb

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
BPMN Activity Graphical Icon
« on: February 13, 2008, 10:23:07 pm »
I would like to be able to associate an image with a BPMN Activity element (i.e. task), e.g. a computer screen icon to signify that the task involves interaction with a computer or a person icon to indicate that the task is a manual task performed by a person.  

See Web Stereotypes (class elements with graphical icons instead of the usual <<stereotype>> format) in EA help for an example of the kind of thing I would like to do for the BPMN activity element.

Krzysztof Swiatkowski

  • EA User
  • **
  • Posts: 76
  • Karma: +0/-0
  • Understanding is a three-edged sword
    • View Profile
Re: BPMN Activity Graphical Icon
« Reply #1 on: February 14, 2008, 06:03:19 am »
You can do it yourself. Type of a task is being set by tagged value TaskType and you can modify BPMN Activity shape script and check for that value.
I did sth like that for one of my clients. Requires some experimenting with layouts and automated resizing :). You will also need to add proper icons to image list.

Regards
If I put you finger in the eye
then you have finger in the eye
and I have finger in the eye
but it's not the same

rdhupar

  • EA Novice
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: BPMN Activity Graphical Icon
« Reply #2 on: June 25, 2008, 10:31:34 am »
Can you give me some pointers on what needs to be done or looked at to do this?

Krzysztof Swiatkowski

  • EA User
  • **
  • Posts: 76
  • Karma: +0/-0
  • Understanding is a three-edged sword
    • View Profile
Re: BPMN Activity Graphical Icon
« Reply #3 on: June 30, 2008, 10:14:12 am »
There is a post on the forum that you need to install BPMN technology to get shape scripts for BPMN activities. Then you will need to modify Shape Scripts for stereotype Activity (Settigns>UML). You need to add sth like this:

Code: [Select]
 shape imagepart{
     if( HasTag("TaskType","User")){
        image("Manufacturing",30,10,70,90);
     }
     if( HasTag("TaskType","Receive")){
        image("Mail Room",30,10,70,90);
     }
     if( HasTag("TaskType","Service")){
        image("Server-Application",30,10,70,90);
     }    
  }

you will have to play with layouts to get the effect you want. I didn't want scaling and had to work a little towards non-scaled portion of the activity :). Images that you use must be in the imagelist Settings>Images. In code there are the ones you can download from Sparx.

Regards
Kris
« Last Edit: June 30, 2008, 10:15:50 am by ged »
If I put you finger in the eye
then you have finger in the eye
and I have finger in the eye
but it's not the same

rdhupar

  • EA Novice
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: BPMN Activity Graphical Icon
« Reply #4 on: June 30, 2008, 10:58:09 am »
Thanks Kris.