|
| Mapping attributes from operations |
 |
Wed, 05 Dec 2007 15:39:45 -080 |
I am calling an AL using and AssemblyLine FC.
I defined an output map in my AssemblyLine FC getting values from the
Work Entry.
In the called AL, I defined a "Default" operation and put all the
attributes in the input map.
How do I now use these attributes in the AL?
I can see them in the "Operations" tab under the "Default"
folder but I
don't know how to either get them into the Work Entry or map directly
|
| Post Reply
|
| Re: Mapping attributes from operations |
 |
Thu, 06 Dec 2007 09:17:39 -080 |
I don't see anything in the Work Entry for IWE. Maybe I've done
something wrong.
I created an assembly line. Then, on the operations tab, added an
operation called "Default". I added an attribute to the schema of the
Input Attributes and mapped it into a work attribute. Now on the "Data
Flow" tab there is nothing on the "Work Entry" tab. On the
"Operations"
tab there is a folder called "Default" it contains the mapped
attribute.
But I can't map from there into my assembly line components.
I'm using TDI 6.1.1.
Thanks, Jo
Eddie Hartman wrote:
> Hi Jo,
>
> If you pass in Attributes like this then they
> should already be mapped to the Work Entry. This
> becomes what is called an "Initial Work Entry",
> or IWE for short, meaning that there is a Work Entry
> available before any Iterators start reading in
> data.
>
> The downside with regards to Iterators is that if
> there is an IWE, your Iterator will skip reading on
> the first cycle. However, you can easily stow away
> these Attributes and then clear out Work so that
> your Iterator works correctly.
>
> This is done from, for example, the AL Prolog -
> Before Init Hook:
>
> var someParamValue = work.getString("passInParam");
> var someAttribute = work.getAttribute("passInAttribute");
> task.setWork(null);
>
> Hope this helps,
> -Eddie
>
> J Fung wrote:
>> I am calling an AL using and AssemblyLine FC.
>> I defined an output map in my AssemblyLine FC getting values from the
>> Work Entry.
>>
>> In the called AL, I defined a "Default" operation and put all
the
>> attributes in the input map.
>>
>> How do I now use these attributes in the AL?
>> I can see them in the "Operations" tab under the
"Default" folder but
>> I don't know how to either get them into the Work Entry or map
|
| Post Reply
|
| Re: Mapping attributes from operations |
 |
Thu, 06 Dec 2007 09:25:15 +010 |
Hi Jo,
If you pass in Attributes like this then they
should already be mapped to the Work Entry. This
becomes what is called an "Initial Work Entry",
or IWE for short, meaning that there is a Work Entry
available before any Iterators start reading in
data.
The downside with regards to Iterators is that if
there is an IWE, your Iterator will skip reading on
the first cycle. However, you can easily stow away
these Attributes and then clear out Work so that
your Iterator works correctly.
This is done from, for example, the AL Prolog -
Before Init Hook:
var someParamValue = work.getString("passInParam");
var someAttribute = work.getAttribute("passInAttribute");
task.setWork(null);
Hope this helps,
-Eddie
J Fung wrote:
> I am calling an AL using and AssemblyLine FC.
> I defined an output map in my AssemblyLine FC getting values from the
> Work Entry.
>
> In the called AL, I defined a "Default" operation and put all the
> attributes in the input map.
>
> How do I now use these attributes in the AL?
> I can see them in the "Operations" tab under the
"Default" folder but I
> don't know how to either get them into the Work Entry or map directly
|
| Post Reply
|
| Re: Mapping attributes from operations |
 |
Fri, 07 Dec 2007 10:34:24 +010 |
Ah, yes, the IWE does not show up in the Work Entry
window. But if you try this in, for example, the
AL Prolog Before Init Hook:
task.dumpEntry(work);
you should see Attributes there.
Note that FP2 for 6.1.1 addresses this issue, giving
you IWE display in the Work Entry list again.
-Eddie
J Fung wrote:
> I don't see anything in the Work Entry for IWE. Maybe I've done
> something wrong.
>
> I created an assembly line. Then, on the operations tab, added an
> operation called "Default". I added an attribute to the schema of
the
> Input Attributes and mapped it into a work attribute. Now on the "Data
> Flow" tab there is nothing on the "Work Entry" tab. On the
"Operations"
> tab there is a folder called "Default" it contains the mapped
attribute.
> But I can't map from there into my assembly line components.
>
> I'm using TDI 6.1.1.
>
> Thanks, Jo
>
> Eddie Hartman wrote:
>> Hi Jo,
>>
>> If you pass in Attributes like this then they
>> should already be mapped to the Work Entry. This
>> becomes what is called an "Initial Work Entry",
>> or IWE for short, meaning that there is a Work Entry
>> available before any Iterators start reading in
>> data.
>>
>> The downside with regards to Iterators is that if
>> there is an IWE, your Iterator will skip reading on
>> the first cycle. However, you can easily stow away
>> these Attributes and then clear out Work so that
>> your Iterator works correctly.
>>
>> This is done from, for example, the AL Prolog -
>> Before Init Hook:
>>
>> var someParamValue = work.getString("passInParam");
>> var someAttribute = work.getAttribute("passInAttribute");
>> task.setWork(null);
>>
>> Hope this helps,
>> -Eddie
>>
>> J Fung wrote:
>>> I am calling an AL using and AssemblyLine FC.
>>> I defined an output map in my AssemblyLine FC getting values from
the
>>> Work Entry.
>>>
>>> In the called AL, I defined a "Default" operation and put
all the
>>> attributes in the input map.
>>>
>>> How do I now use these attributes in the AL?
>>> I can see them in the "Operations" tab under the
"Default" folder but
>>> I don't know how to either get them into the Work Entry or map
|
| Post Reply
|
| Re: Mapping attributes from operations |
 |
Fri, 07 Dec 2007 10:34:44 +010 |
6.1.1 FP2 :
http://www-1.ibm.com/support/docview.wss?rs=697&context=SSCQGF&q1=iwe+6.
1.1&uid=swg24017390&loc=en_US&cs=utf-8&lang=en
Eddie Hartman wrote:
> Ah, yes, the IWE does not show up in the Work Entry
> window. But if you try this in, for example, the
> AL Prolog Before Init Hook:
>
> task.dumpEntry(work);
>
> you should see Attributes there.
>
> Note that FP2 for 6.1.1 addresses this issue, giving
> you IWE display in the Work Entry list again.
>
> -Eddie
>
> J Fung wrote:
>> I don't see anything in the Work Entry for IWE. Maybe I've done
>> something wrong.
>>
>> I created an assembly line. Then, on the operations tab, added an
>> operation called "Default". I added an attribute to the
schema of the
>> Input Attributes and mapped it into a work attribute. Now on the
"Data
>> Flow" tab there is nothing on the "Work Entry" tab. On
the
>> "Operations" tab there is a folder called "Default"
it contains the
>> mapped attribute. But I can't map from there into my assembly line
>> components.
>>
>> I'm using TDI 6.1.1.
>>
>> Thanks, Jo
>>
>> Eddie Hartman wrote:
>>> Hi Jo,
>>>
>>> If you pass in Attributes like this then they
>>> should already be mapped to the Work Entry. This
>>> becomes what is called an "Initial Work Entry",
>>> or IWE for short, meaning that there is a Work Entry
>>> available before any Iterators start reading in
>>> data.
>>>
>>> The downside with regards to Iterators is that if
>>> there is an IWE, your Iterator will skip reading on
>>> the first cycle. However, you can easily stow away
>>> these Attributes and then clear out Work so that
>>> your Iterator works correctly.
>>>
>>> This is done from, for example, the AL Prolog -
>>> Before Init Hook:
>>>
>>> var someParamValue = work.getString("passInParam");
>>> var someAttribute =
work.getAttribute("passInAttribute");
>>> task.setWork(null);
>>>
>>> Hope this helps,
>>> -Eddie
>>>
>>> J Fung wrote:
>>>> I am calling an AL using and AssemblyLine FC.
>>>> I defined an output map in my AssemblyLine FC getting values
from
>>>> the Work Entry.
>>>>
>>>> In the called AL, I defined a "Default" operation and
put all the
>>>> attributes in the input map.
>>>>
>>>> How do I now use these attributes in the AL?
>>>> I can see them in the "Operations" tab under the
"Default" folder
>>>> but I don't know how to either get them into the Work Entry or
map
|
| Post Reply
|
|
|