Skip to Content
author's profile photo Former Member
Former Member

Changing Priority of BPM Activity dynamically based upon Context values

Hi Experts,

I am using BPM 7.2.

In the BPM Process Design time, Priority of BPM task can be set from available values (Low / Med / High).

I have a requirement to change the priority of BPM task based upon the context values Like wise how we change the User text displayed in UWL based upon the Context values.

Thanks for your help in advance.



Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 14, 2012 at 03:28 AM

    No its not possible with standard UWL until and unless u use 7.3.1(even with 7.3 its not possible).Custom UWL can solve this prob though.



    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Dear Experts,

      we also facing such a requirement of setting a dynamic priority depending on runtime data or a rule defined in BRM.

      In a second thread there was the idea of solving this using the BPM API

      I looked into document explaining some common usecase for BPM API, but couldn't find a solution for changing "header data" of a task, which should be located in the "abstract" part of the task (class TaskAbstract)

      Any ideas how this requirement could be solved and also how it could be integrated in the process flow?

      Thanks for your help in advance.

      best regards,


  • Posted on Sep 10, 2013 at 09:26 AM

    Hi Amol/Jochen,

    Both these issues can be solved at Design-Time itself in the NWDS Process Composition.

    1. You cannot set the priority of the task to anything other than the predefined ones(Low/Medium/High) at design time. But you can set the priority to any one of these based on the values in the context data.

    This can be achieved using an "Exclusive choice" gateway where you set the conditions using the processs context data(using expression editor for each branch and setting one as default). After that you can extract 3 different branches from the Exclusive Choice and place 3 Different Human Activities for the 3 extracted branches coming out of the Exclusive Choice. (One for each priority-Low,Medium and High).

    These 3 Human Activities will have the same integrated UI but only the priorites will be different.

    Hence, with this, you are able to set different priorites for the same task based on your Context Data.

    Note: The Input and Output mappings for tall these Human Activities should be the same.

    2. As far as changing the User text based on the context data, this also can be achieved using the same steps as mentioned above. As the Human Activities are going to have the same UI, you can set different task descriptions (just like you set different priorities) which will appear in the UWL(Go to properties of the Task->User Texts Tab).

    Hence, to summarize, both of these issues can be resolved using a simple exclusive choice and place 3 human activities (one for each priority-Low,medium and High) where you can set different different task descriptions(user texts) for the same UI-Tasks.

    Again, please note that the Input and Output mappings should be the same for all Human Activities to avoid diffference in data.

    To end it, you can use an "Uncontrolled merge" to merge all the branches coming out from the Human Activities so that even a single task execution does not wait for other tasks to get executed.

    Hope this helps. Please do get back on this. 😊



    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.