External systems in use cases?

0 votes
asked May 31, 2013 in Wanted features by Fuhrmanator (1,700 points)

How can I make an actor be an external system (rectangle) in a use case? The following is close, but I want the stick-figure (human) CreditAuthorizationService to be the CAS rectangle. Links to the CAS (rectangle) object give syntax errors.

PlantUML image

@startuml
left to right direction
skinparam packageStyle rect
actor Client
actor "CreditAuthorizationService" as ac
rectangle CAS {
}
rectangle Système {
  Client -- (CU01:Handle registration)
  (CU01:Handle registration) -- ac
}
@enduml

 

1 Answer

+1 vote
answered Jun 4, 2013 by plantuml (295,000 points)
selected Jul 25, 2014 by Fuhrmanator
 
Best answer

Hello,

You can use this:

@startuml
left to right direction
actor Client
rectangle CAS
rectangle Systeme {
  Client -- (CU01:Handle registration)
  (CU01:Handle registration) -- ac
  (CU01:Handle registration) --> CAS : delegate
}
@enduml

http://www.plantuml.com/plantuml/png/XOwn2i8m68JtFCMDEXHqxL2GBEx51_X9hl67c43wBo9zTnjmS177k_lkkCp5O1LDqzqGjJ6Ork8aM6tmMLdCTLDAoeI_p5zgVgx61_5o-A0O1XpyxNGUhrBYZZGcNQr97ptksE-mLoNyGwP-0ICYCvCOtVO6

Is this what you are expecting ?

PS: Edited to change "rect" to "rectangle"

commented Jun 4, 2013 by Fuhrmanator (1,700 points)
Thanks. Here's the precise thing I was looking to do:

@startuml
left to right direction
actor Client
rect "Credit authorization service" as CAS
rectangle Systeme {
  Client -- (CU01:Handle registration)
  (CU01:Handle registration) -- CAS
}
@enduml
commented Jul 25, 2014 by Fuhrmanator (1,700 points)
The latest build of PlantUML (on the server) gives a syntax error for this (as well as your example).
commented Jul 25, 2014 by Fuhrmanator (1,700 points)
actually, using "rectangle" as opposed to "rect" works.
commented Jul 25, 2014 by plantuml (295,000 points)
We have removed "rect" because it was unclear (sorry that it has been was never mentionned : I will update the previous post).
This breaks compatibility, but we think/hope that this change is minor.
Please tell us if it's a real issue for you.

Regards,
commented Jul 25, 2014 by Fuhrmanator (1,700 points)
Not an issue for me - I appreciate the quick reply.
commented Jul 25, 2014 by plantuml (295,000 points)
Well, we also appreciate user's feedback : it allows us to save time on tests :-)
commented Jul 25, 2014 by Fuhrmanator (1,700 points)
About tests, I imagine you have already a set of source files you run each release against (relying on users to find broken things is maybe not so good). I realize the language is evolving, and it's probably hard to maintain the tests. But, don't forget some professors have students who need senior projects and this would be a great experience (if ever you wanted to help with a little direction).
...