Creating a Process Flow to replace IMO Lines I am attempting to write a Process Flow to replace lines on Internal Material Orders. The intention here is to replace expensive parts with cheaper parts, but only for certain nodes. I am using an Event Driven process flow, Trigger: Lines Updated. First, I have added a PF Query Condition on Sub Document: Material Lines that returns rows where order_id = demand_material.order_id, and the demand_material.bpart_id is in a predefined list. select *from logistic_order lowhere lo.logistic_order_id = {order_id} and { bpart_id } IN ( 'D1464062', 'D1862218', 'D1862219', 'D1863054', 'D1496206', 'D1496207', 'D0BQ6141', 'D1504062', 'D1496208' ) Where this is true, I call a PF Action that looks up the demand ID based on the line order_id and the line bpart_id, deletes the line, and creates a replacement line. <root xmlns:dt="urn:schemas-microsoft-com:datatypes"> <session email="" alias=""> <state bc_name="log_int_order"> <action name="declare"> <attribute dtype="string" in_var="" out_var="" name="d