Focal Point Banner

As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at and provide your corporate email address, company, and name.

Connect to myibi
Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    how to get pflow name in "sub" pflow

Read-Only Read-Only Topic
how to get pflow name in "sub" pflow
Hi All

I want to create a generic pflow in iway designer (5.5) which follows different paths based on what was the "parent" pflow. Is there an easy way to get the parent pflow name? I would prefer not to pass the name to the subprocess.


iWay Datamigrator 76,
iWay Service Manager 5.5, Windows server 2000,
Posts: 6 | Registered: April 15, 2009Report This Post
Gold member
posted Hide Post
Hi Tsepe,
To paraphrase Darksider's answer to another post:

Drop a QA agent, iwQAAgent (com.ibi.agents.XDQAAgent) in the subflow, give it a file name and change *When to Always. This provides you with all the SREGs that are in play during the document lifecycle.

If parent flow name is available as an SREG, it will appear in the QA agent's output.

If parent flow name is not available, you will need to set an SREG in the parent pflow, probably to Global and Hdr scope, giving it the name of the parent flow as it's value, and then interrogate the SREG in the sub flow.

Ade - not at Summit Frowner

iWay 5.5 SMSP1 and 6.0.1 on Intel/Linux
Posts: 59 | Location: Birmingham, Blighty | Registered: October 30, 2007Report This Post
There is special validation and processing that takes place when you publish a pflow which calls a subflow via the standard Designer Process Object..This results in a snapshot of the subflow code being tightly coupled with the main pflow, and also in any deployment it is included in.

If you instead call the subflow via a Service Object of class XDPFlowAgent, you can force the publish/deployment logic to postpone linkage to the subflow so it becomes dynamic, and it is called by name. This means it will work even when called via a defined SREG (or other iWay Functional Language expression). Inspection of the generated “main flow” constructed this way reveals it does not contains the subflow code.

1. In the Designer, use a ServiceObject of type XDPFlowAgent . (this object is used instead of the usual ProcessObject) to call a subflow from the mainflow. All critical processing which may change should be moved to the subflow.

2. Use an SREG to contain the subflow name as the XDPFlowAgent property. Do not use a literal name (or else Designer Test Run will fail; not being able to use Designer Test Run with a literal will be addressed.

3. You may test-run the mainflow against a config (i.e. base) only, not against the registry (this will also be addressed in the near future)

4 .To use or modify the subflow, in the Designer, publish the subflow to Registry

5. Deploy via iSM webconsole :
Deployments => Services (if you omit this you get a runtime error)

You can continuously undeploy and re-deploy new versions of the subflow without error, with all callers (i.e the webservice) dynamically inheriting the new subflow version
Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    how to get pflow name in "sub" pflow

Copyright © 1996-2020 Information Builders