Have you tried stepping from Hook to Hook through the initialization?
As soon as you Step Into past your coded Hook, you can then
do a getParam() from the FC to check that the value is really
set. And if it's still not working, please open a PMR with our
L2 experts. Perhaps this Java Class for this component is
harvesting parameter values from the Config too early -- i.e.
before the Before Initialize Hook.
There is another thing that you could try:
First you have to configure the Initialize drop-down for the FC
(top of the Config tab) to "Only when used". This is just-in-time
initialization, so you can drop some values into Work Attributes
and then use a TDI Expression to apply them to the FC parameter
values.
You do this by clicking on the label for a parameter. This brings
up the Parameter Dialog. From here you can see what the internal
param name is (for get/setParam calls -- and you probably already
know this, but I can't help myself :) as well as restore inheritance
using the third button that is sometimes available at the lower right
of the dialog box.
The bottom-most field is called Expression, and here you
can enter any literal text, and use substitution tokens to have
TDI drop in values from your AL. For example, to use the
value of an Attribute called "host" you just enter this: {work.host}
You can also enter a snippet of JavaScript, like this:
{return "LOG_" + system.formatDate(new java.util.Date
(),"YYYYMMDDHHmm")}
Of course, you just have to remember to set the Initialize drop-down
correctly. For example, if you have a FileSystem Connector and
want to create a new file each cycle, naming it with an Attribute
value
(e.g. {work.FileName}), you set up the Expression and set the
Initialize option to terminate and initialize each time.
Hope this helps :)
-Eddie
On Jun 25, 3:17 pm, Payito <ejmeg...@gmail.com> wrote:
> Hello,
> I need to use function RemoteCmdLineFC and I want to use a variable
> command for configuration. I'm trying to do this:
> thisConnector.connector.setParam("hostame",myhost);
> in Prolog hook, but it is not working. Someone can help me??