cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot resolve DataObject

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I solved it.