IB - Developer Center    Forums  Hop To Forum Categories  iWay Products    How to carry forward an input document in Pflow?
Go
New
Search
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
Member
Posted
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


iWay adapter manager
SAP Adapter
Web Services
SAP BASIS, Java Core
 
Posts: 10 | Registered: January 15, 2008Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
Hi 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.


iWay 5.5 SMSP1 on Intel/Linux
 
Posts: 5 | Location: Birmingham, Blighty | Registered: October 30, 2007Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
Two 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.


iWay 55 SM SP2
 
Posts: 4 | Registered: April 18, 2008Reply With QuoteEdit or Delete MessageReport This Post
Member
Posted Hide Post
Thanks guys for your response. will try them.


iWay adapter manager
SAP Adapter
Web Services
SAP BASIS, Java Core
 
Posts: 10 | Registered: January 15, 2008Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

IB - Developer Center    Forums  Hop To Forum Categories  iWay Products    How to carry forward an input document in Pflow?

Copyright © 1996-2008 Information Builders, leaders in enterprise business intelligence.