Skip to Content

List all Tasks with a given stereotype


we have to implement some additional functionality to the BPM diagrams.

The whole task is about capturing process risk and controls on the BPM diagrams.

My idea is to:

1. create underneath the standard task stereotype two new stereotypes: one for risk and one for controls

2. define extended attributes for that new stereotypes to capture it's properties etc.

3. since a risk shall always be covered by a control, the idea is to link the risks with controls using traceability links to establish the relation risk -> control

Implementing 1-3 is easy and pretty straight forward in PD. Now the tricky part:

4. we want to automatically color-code (and report) risks:

- without a control associated -> shall appear red

- with a control associated -> shall appear green

I thought this can be done by implementing a custom check on that stereotype, but then I realized, this check is performed when we perform the model check, and not "on-the-fly".

Now to the questions:

q1. How to list all objects, in that case tasks of a given stereotype?

q2. How to check the relation task -> control, which is realized via a traceability link?

q3. How to automatically change the background of a task in the code (FillColor?)?

q4. How to implement this check so that it works "on-the-fly" when creating the link? Is that possible?



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 24, 2014 at 03:28 PM

    Hi Rafal,

    just brief answers:

    q1) Here are some options. You can use menu Model - List of Tasks/Processes/Risks and filter them with sterotype value. Or you can create List report with stereotype filter to do the same job.

    q2) You can develop your own custom check for Check model function or (if the check model is too late for you) it can be implemented as a real-time check (on-the-fly). Actually it can be so strict, that PD even won`t let you create a new risk without immediate creation of traceability link to a Control. Or that it will check, if every newly created traceability link connects one risk to one control. Or you can have live dependency matrix showing you list of all risks, that are not connected to any control. As you can see, there are more options.

    q3) Can be done by event handlers and a little scripting.

    q4) See second part of answer #2.

    Hope this helps. In case you need more information contact me on



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.