Hi,
I'm trying to implement the specification as indicated in the the attached image.
The actor part works, the style part does not (relies on the attribute Status).
Please see my code below.
1GRAPHREP
2SHADOW mode:off
3
4AVAL actor:"Actor"
5SET c:"red"
6
7IF (actor = "customer")
8SET c:$ff7f00
9ELSIF (actor = "service provider")
10SET c:$00bf5f
11ELSIF (actor = "other actor")
12SET c:$56aaff
13ENDIF
14
15AVAL status:"Status"
16SET st:"dot"
17
18IF (status = "completed")
19SET st:solid
20ELSIF (status = "missing")
21SET st:dot
22ELSIF (status = "failed")
23SET st:solid
24ENDIF
25
26PEN color:(c) style:(st) w:3pt
27ELLIPSE x:0pt y:0pt rx:20pt ry:20pt
28
29#icon
30AVAL iconFile:"Icon"
31BITMAPINFO (iconFile)
32BITMAP (iconFile) x:-20pt y:-20pt w:40pt h:40pt
33
34ATTR "Actor" x:-0cm y:25pt w:c h:t
A further question appears with the “failed” selection of “Status”. How do I need to implement the following code, that it only appears when “failed” is selected and disappears if one of the other is selected?
1PEN style:solid w:0.1cm
2LINE x1:-0.5cm y1:0.5cm x2:0.5cm y2:-0.5cm
3LINE x1:-0.5cm y1:-0.5cm x2:0.5cm y2:0.5cm
Thanks for your feedback in advance and best regards.