cancel
Showing results for 
Search instead for 
Did you mean: 

Changing Priority of BPM Activity dynamically based upon Context values

Former Member
0 Kudos

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.

Regards,

Amol

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member191643
Active Contributor
0 Kudos

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.

Regards,

-Sid

Former Member
0 Kudos

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.

Thanks

Manish

Former Member
0 Kudos

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

http://scn.sap.com/thread/1923732

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,

Jochen