Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Complex Payload with Array of Objects - Not able to enter Payload Data

Sameer.DarbhaSep 11 2012 — edited Sep 19 2012
Hi

JDeveloper 11.1.1.6, WLS 10.3.6, BPM 11.1.1.6

I have defined 2 PayloadObjects, say HeaderObject and LineObject.
HeaderObject has some attributes and an Array of LineObjects.
There can be multiple lines for a header.

I used this object as payload in a process (simple process with 2 user tasks, one to enter data and one to approve)
When I created ADF Task forms out of the Human Tasks with Payload, then I got a Table wizard for the Lines object in the Payload.

So in the TaskForm, all the Header attributes are visible and Line attributes in a Table below.
The table has buttons for Creating and Deleting Line Rows.

I also have to create the lines in the payload with required information programmatically, deriving it from our custom database.
So I extended the InvokeActionBean to create our own bean to write code to add lines data when the page is submitted.
I followed the following post to do so.
10287395
So I overwrote setOperation and invokeOperation methods in the bean and am calling these methods on Submit.

By default when the page is first rendered there is a blank row already created.
If I enter any data in the Lines, or create a new line row and Save or Submit, then I am getting the following error.
If I do not enter anything in the lines table and leave it as it is, I am not getting the following error.

The Payload is Editable in the Human Task. (HeaderPayload is the instance of the PayloadObject)

Error
------
oracle.jbo.JboException: Insufficient privileges to access the task information for this task.
User 0965d936-5632-4a71-b34f-aa06b62fad63 cannot access the task information for task: {1}.
Ensure that the user has been granted appropriate privileges to access the task information for this task.

Qs.
1. Do we have to do anything else for being able to enter data in the Lines table in the payload?
2. I also want to know how to modify or add rows data in the Lines payload object, programmatically like in the above Discussion thread.

One observation, If I do not call the custom extended methods on Submit, then the error is not coming.

Thanks for any help.
Sameer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 17 2012
Added on Sep 11 2012
4 comments
1,242 views