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

Cannot resolve DataObject

Hi experts,

i try to resolve a DataObject that gives me the input data of a task. The process context contains one node wich contains two child nodes. in this child nodes are the attributes. The name of the parent node is "mobileMeta" and the child nodes are called "elements" and "visibility".

Here is my code:

int i = 0;
while(true){
     try{
          ITaskInputElement tElement = tnode.createAndAddTaskInputElement();
          tElement.setInput1(taskInput.getDataObject(0).getDataObject("mobileMeta").getDataObject("elements").getDataObject(i).getString(0));		
     }catch(NullPointerException e){
          break;
     }
     i++;
}

When i try to execute this code i get the following error code:

java.lang.ClassCastException: Can not convert list of size 9 to commonj.sdo.DataObject

The "elemets" node contains 9 data sets.

Regards

Johannes

Edited by: jtrebess on Nov 24, 2011 10:18 AM

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Nov 24, 2011 at 01:14 PM

    I solved it.

    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.