[Anthill-pro] Scripted Lockable Resource - Once Per Agent
Mark Melvin
Mark.Melvin at onsemi.com
Wed Apr 22 13:45:24 CDT 2009
Is there a way to have the a workflow emit a scripted lockable resource
that allows a single instance of a specific lock "per-Agent"? I
basically want to accomplish exactly what the scripted example in the
docs accomplishes (EnvironmentLookup.getCurrent().getName() +
"-server"), but I want to return the current Agent name, no the
environment name. I tried this:
AgentHelper.getCurrent().getName() + "-some-identifier";
..but this throws a NullPointerException as AgentHelper.getCurrent()
seems to return null. How do I get a handle to the current agent?
Thanks,
Mark.
More information about the Anthill-pro
mailing list