Hi,
currently I work on an internal service repository defining macros for sequence diagrams that describe how services call subsequent other services. For that I need to automatically create participant for services if they are used.
I tried to use the following, as there is no "real if" condition, such as !if boolean=true of !if boolean, but only !ifdef MACRO:
'Definition of the participant
!ifndef PARTICIPANT_CREATED
participant "P" as p #color
!define PARTICIPANT_CREATED true
!endif
However, this doesn't work reliable. So sometimes plantuml generates the according participant automatically, which is a good behavior, but for me the color and the name of the participant are wrong.
If I always create a participant by "participant "P" as p #Red" the moment a service call would expect it. However the ordering of participants is often weird. Therefore, I would need either:
a real boolean condition to check a flag
a conditional to check whether a participant was already create
a priority that I can attach to a participant which orders the participants
Is there any chance to get something like that?
Best Regards,
Michael