on 10-04-2008 9:00 PM
Hi all,
I have some problem in the PDB block. I want to assign multiple users to a block at runtime.
My process structure :
Process
--Sequential block1
-
Action1
-
Block (PDB)
-
Sequential block2
-
Action2
I am assigning the Users to Action2 using the "Fill using the Context Parameter" option for Sequential block2.
However, when any one of the users' completes his action, the other user loses his notification or he will get some message like "no Activity has been assigned"
I would really appretiate any help in this issue.
Thanks,
Sudheer.
Your process structure :
Process
--Sequential block1
-
Action1
-
Block (PDB)
-
Sequential block2
-
Action2
Hi,
I also faced the same problem. The problem is when you are assigning users,
the same action is assigned to all users. Now, when u logged in to these users you can see the assigned action.
but once any user executes it that action is completed.So, now the action cannot be available for other users.
here what I tried and got sucess
1. For Action1
Create web dynpro form CO which contain table (User as one field).
2. For Action2
2.1 Create a Data Display form CO with input parameters as
Name-"Input"-->Type-"Structure"-->List (checkbox checked)
Inside this structure declare one parameter "username"----> type-"String".
Save it.
3.In Sequential block1 Map "User" field from action1 and username from Action2(PDP Block).
assign Users to Action2 using the "Fill using the Context Parameter" option for Sequential block2 as you have done previously.
Save, activate and run the process.
While executing Action1 give users in table row.
You will find that the same action is available to all the users with different instances. So all users can execute independently.
Regards,
Pratik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pratik,
thanks for the reply.
But , actually i am using the WD Callable Objects that implement GP Interface.
So, the input and output parameters are declared in the getDescription() methods of corresponding WD components.
And i am not still successful in getting the parallel notifications right !!!
what could possibly go wrong...??
Thanks,
Sudheer.
The problem is
you are assigning user by "context parameter" in Sequential block2. While assigning users action1 should pass multiple users and you should assign this action(different instances for every user).
In your case single instance of action is assigned to all the users. so all users are getting the same action and who so ever executes it first, it's get finished.
Thats why you are facing that problem.
You can solve this by mentioning proper Cardinality in WD CO(parameter from where user is assigned).
Regards,
Pratik
Hi,
I have tested the GP process using PDB here.
I created a simple process and I passed the users though a table UI (Webdynpro form).
At runtime, I assigned 2 users to the action and I was able to see item pending in the inbox of both the users.
Probable problem area: The users id passed through webdynpro callable object. Please check if you are passing multiple userids.
Also, check the mapping of UserId parameters from GP side.
-Ashutosh
Hi
Thanks for the replys.
@Ashutosh
I also am able to send the uwl notifications to the list of users, however, when the first user completes his action, the second user , on clicking his uwl task would get a message like "No activity is currently selected ".
In your case , are both the users able to compete the action individually ???
the PDB does not create multiple instances of its Sub-Block at runtime.
Can u plz tell me what SP level your server is on ??
ours is NW 7.0 SP14.
@Pratik
While assigning users action1 should pass multiple users and you should assign this action(different instances for every user).
How can i assign different instances of the same action for different users ??
Output Structure of Action1 is like this.
--InputStructure1 (0..n)
-
ItemStructure2 (0...n)
-
Param1 (0...n)
Input Structure of Action2 is like this.
--ItemStructure1 (0...n)
-
Param1 (0...n)
Both the ItemStructures are mapped in the GP Context.
Best Regards,
Sudheer Kareti.
Edited by: Sudheer Kareti on Oct 7, 2008 2:19 PM
Hi Pratik,
If the Parameter1 and Parameter2 has 0..1 Cardinality....
How can i pass users' List through this Attribute ??
I am using the code in the complete method of Action1
PSTATVal has multiplicity 0..N i.e its a List
ArrayList userList = new ArrayList();
userList.add("USER.R3_DATASOURCE.USER1");
userList.add("USER.R3_DATASOURCE.USER2");
ItemStructure.setAttributeValues("PSTATVal",userList );
Best Regards,
Sudheer Kareti
Hi Sudheer,
I m facing the same problem as mentioned by you in this post.
Can you please guide, how u resolved the problem.
Thanks and Regards,
Sakshi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks all..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sudheer,
Are you passing user ids through the context?
-Ashutosh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.