Maybe the variable is not in the root scope but in the sub-scope?  You may
want to walk the scope tree (from the root) to find the variable.

alex


On Sat, Apr 18, 2009 at 4:28 PM, Prakash Reddy Bande <[email protected]>wrote:

> Hello,
>
> I have deployed and started a BPEL process in ode deployed in apache
> tomcat.
> http://localhost:9111/ode/instances.html displays the instance as
> active.
>
> I am using the following code to get variable info.
> InstanceManagement im = new InstanceManagement();
> InstanceManagementPortType instanceManagementPort =
> im.getInstanceManagementPort();
> TInstanceInfo instanceInfo =
> instanceManagementPort.getInstanceInfo(1601);
> String siid = instanceInfo.getRootScope().getSiid();
> TScopeInfo scopeInfo =
> instanceManagementPort.getScopeInfo(Long.parseLong(siid));
> TVariableInfo variableInfo =
> instanceManagementPort.getVariableInfo(scopeInfo.getSiid(),
> "StartWorkflowIn"); // 2nd arg is
> scopeInfo.variables.variableRef[0].name
> if(variableInfo != null) {
>        variableInfo.getValue();
> }
>
> But I get the variableInfo as null.
>
> Please help.
>
> Regards,
>
> Prakash Reddy Bande
> Altair Engg. Inc,
> Troy, MI
>
>

Reply via email to