cancel
Showing results for 
Search instead for 
Did you mean: 

PDB access problem

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

former_member185029
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

I am not sure on this , but you can try

For Action 1

Inputstructure(0..n)

Parameter1(0..1)

For Action 2

Inputstructure(0..n)

Parameter2(0..1)

Map Parameter1 and Parameter2.

Edited by: Pratik Khandelwal on Oct 7, 2008 11:15 AM

Former Member
0 Kudos

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

Answers (3)

Answers (3)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Sakshi,

The problem that i had was with the GP Context mapping, I've created a structure as input for the PDB, which was not required, as it already gives one...

Try to avoid nested structures....

Regards,

Sudheer.

Former Member
0 Kudos

thanks all..

former_member185029
Active Contributor
0 Kudos

Hi Sudheer,

Are you passing user ids through the context?

-Ashutosh

Former Member
0 Kudos

Hi Ashutosh,

I am sending the User Ids through context.

(User Ids in the right format -- USER.R3_DATASOURCE.SKARETI)

I am able to send the notifications to required users.

but when one of the users' completes his action, the remaining users notification disappears.

Thanks,

Sudheer.