Skip to Content
0
Former Member
Nov 24, 2011 at 08:31 AM

Cannot resolve DataObject

80 Views

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