Hi, Name I am passing is actually scopeInfo.variables.variableRef[0].name, hence the variable should be in the scope. Or if there is another way to get the variables for a process instance please let me know.
Moreover, I should tell that I am using apache-ode-war-2.0-beta2. Thanks, Prakash Reddy Bande Altair Engg. Inc, Troy, MI -----Original Message----- From: Alex Boisvert [mailto:[email protected]] Sent: Saturday, April 18, 2009 10:40 PM To: [email protected] Subject: Re: getVariableInfo from InstanceManagement api is null 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 > >
