Get Subgraph's Parent Graph Name and Properties

Discussion on developing CloverETL engine, transformation components etc.

impulse101587
Posts: 16
Joined: Mon Sep 28, 2015 6:10 pm

Get Subgraph's Parent Graph Name and Properties

Postby impulse101587 » Mon Sep 28, 2015 8:30 pm

Trying to figure out how to in CTL2 code to fetch the name of the parent graph for a subgraph. Anyone have ever tried this or know of a solution?

cholastal
Posts: 103
Joined: Tue Sep 01, 2015 1:22 pm

Re: Get Subgraph's Parent Graph Name and Properties

Postby cholastal » Thu Oct 01, 2015 9:24 am

Hi

Unfortunately there is no CTL function to get the name of parent graph. However it can be done by using parameters. You need to create a parameter in the subgraph (e.g. 'parent_job') and pass the name via input mapping settings. I have attached an example graph + subgraph, so you can see it in action.

Hope this helps.

Best regards
Attachments
subgraph_param.rar
(2.56 KiB) Downloaded 41 times
---
Lukas Cholasta
CloverCARE Support
CloverETL | Rapid Data Integration

Visit us online at http://www.cloveretl.com
How to speed up communication with CloverCARE support

impulse101587
Posts: 16
Joined: Mon Sep 28, 2015 6:10 pm

Re: Get Subgraph's Parent Graph Name and Properties

Postby impulse101587 » Thu Oct 08, 2015 4:27 pm

Thanks ill give that a try. Is there any documentation for CTL besides from the broad CTL language functions. ?

cholastal
Posts: 103
Joined: Tue Sep 01, 2015 1:22 pm

Re: Get Subgraph's Parent Graph Name and Properties

Postby cholastal » Mon Oct 12, 2015 10:17 am

Hi

This is our complete CTL2 documentation, however there are some CTL examples in other categories too.

Best regards
---
Lukas Cholasta
CloverCARE Support
CloverETL | Rapid Data Integration

Visit us online at http://www.cloveretl.com
How to speed up communication with CloverCARE support