-
Re: AF Transformer - editing a AF hierarchy
csawyerMay 16, 2018 3:24 PM (in response to Archie)
1 of 1 people found this helpfulYes. You can place filters at the Task, Element and Attribute level to screen items out of the SearchShape which you don't want carried forward into the OutputShape, including screening out bad/garbage attribute values.
-
-
Re: AF Transformer - editing a AF hierarchy
Archie May 16, 2018 3:59 PM (in response to Archie)Is discardfilter the only way to eliminate garbage attributes?
-
Re: AF Transformer - editing a AF hierarchy
csawyerMay 16, 2018 9:44 PM (in response to Archie)
Let me see if I can fashion an example of my own.
-
Re: AF Transformer - editing a AF hierarchy
Archie May 17, 2018 2:03 PM (in response to csawyer)thank you. I am trying to discard attributes whose value is a "NOData" PI Point. I am unable to delete using PI Builder as my AF hierarchy is template based and I can't seem to delete anything.
-
Re: AF Transformer - editing a AF hierarchy
skwanMay 18, 2018 4:28 AM (in response to Archie)
By design you cannot delete attributes that were instantiated from template. Afterall, that the whole idea of a template. We do give you a way to exclude the attribute that you don't need. Have you tried that?
--
Steve Kwan
-
Re: AF Transformer - editing a AF hierarchy
Archie May 21, 2018 4:09 PM (in response to skwan)Hi Stephen,
My AF hierarchy is completely template based. i tried discard filters and it didnt work as the AF hierarchy is template based.
-
Re: AF Transformer - editing a AF hierarchy
csawyerMay 21, 2018 7:37 PM (in response to Archie)
You can solve this by running AF Transform twice. Use the output DB from the first run as the input for your second run (I think you can also just add a new <Task> and define additional <SearchShapes> and <OutputElementShapes> tied into that task.
Essentially you can just screen out the null elements in the second pass with a Task-level data filter, like this...
<Task Id="1000">
<SearchShapes>
<SearchShape Id="1003" ReaderId="1004" FilterMatchType="Any" >
<DataFilters>
<Filter Expression="[10.value]==null" />
</DataFilters>
</SearchShape>
</SearchShapes>
<OutputElementShapes>
<OutputElement Id="1005" />
</OutputElementShapes>
<TaskWriters>
<TaskWriter Id="1006" />
</TaskWriters>
</Task>
-
-
-
-
-
-