static void getListActiveLink(){
ARServerUser ctx=new ARServerUser("Demo","","e","ontario");
m_outFile.PrintARServerUser(ctx);
try{
ActiveLinkFactory factory =ActiveLinkFactory.getFactory();
WorkflowObjectListCriteria activeLinkListCriteria=new WorkflowObjectListCriteria();
ActiveLinkCriteria criteria=new ActiveLinkCriteria();
activeLinkListCriteria.setSchema(new NameID("AR 4.5 Sampler"));
NameID[] names= factory.find(ctx,activeLinkListCriteria);
System.out.println("results from ActiveLinkFactory.find()");
for (int i=0;i < names.length;i++)
{
System.out.println();
System.out.print("obj # ");
System.out.print(i);
System.out.print(": ");
System.out.print(names[i].toString());
System.out.flush();
}
System.out.println("end of results from ActiveLinkFactory.find()");
}
catch(ARException e)
{
e.describe();
}
finally
{
ctx.clear();
}
m_outFile.PrintARServerUser(ctx);
}