June 03, 2008, 06:14 PM
ESkyHow to carry forward an input document in Pflow?
Hi All,
I am creating a pflow. Basically I want to access the original input document from Start object in all paths within the pflow.
I tried Join Object connecting from Start Object to the point I need the input document. It doesn't work on optional path because it's always waiting for another input document which doesn't happen sometimes.
I am not sure what's the best approach to carry forward an input documet and make it globally accessable?
Thanks,
Dennis
June 04, 2008, 07:27 AM
AdeHHi Dennis,
One technique is to store the original document using an XDSREGAgent in a service object immediately after the start object. Set an SREG to "_flatof()". This SREG value can be reintroduced later in the flow using an XDConstantAgent service object.
June 04, 2008, 09:47 AM
Ganesh IyerTwo ways I can think of -
1. write the document out to a file dir using a file object at the start of the flow. Subsequently use the File object to read the document back in the respective branches
2. Try using the Junction object instead of the join. Excerpt from the user guide -
A Junction object joins two or more paths of execution into a single path. It does not join
documents that travel along the path. For example, if you have five distinct paths that run to a certain point and then all paths execute the same logic, use the Junction object to consolidate the flow at the point of common execution.
June 04, 2008, 02:18 PM
ESkyThanks guys for your response. will try them.