on 11-24-2011 8:31 AM
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
I solved it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.