Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      Sunshine And March Vibes (2025 Wallpapers Edition)

      May 22, 2025

      The Case For Minimal WordPress Setups: A Contrarian View On Theme Frameworks

      May 22, 2025

      How To Fix Largest Contentful Paint Issues With Subpart Analysis

      May 22, 2025

      How To Prevent WordPress SQL Injection Attacks

      May 22, 2025

      Sam Altman says ChatGPT’s viral Ghibli effect “forced OpenAI to do a lot of unnatural things”

      May 22, 2025

      How to get started with Microsoft Copilot on Windows 11

      May 22, 2025

      Microsoft blocks employees from sending emails that mention “Palestine” or “Gaza”

      May 22, 2025

      I missed out on the Clair Obscur: Expedition 33 Collector’s Edition but thankfully, the developers are launching something special

      May 22, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      Perficient is Shaping the Future of Salesforce Innovation

      May 22, 2025
      Recent

      Perficient is Shaping the Future of Salesforce Innovation

      May 22, 2025

      Opal – Optimizely’s AI-Powered Marketing Assistant

      May 22, 2025

      Content Compliance Without the Chaos: How Optimizely CMP Empowers Financial Services Marketers

      May 22, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      Sam Altman says ChatGPT’s viral Ghibli effect “forced OpenAI to do a lot of unnatural things”

      May 22, 2025
      Recent

      Sam Altman says ChatGPT’s viral Ghibli effect “forced OpenAI to do a lot of unnatural things”

      May 22, 2025

      How to get started with Microsoft Copilot on Windows 11

      May 22, 2025

      Microsoft blocks employees from sending emails that mention “Palestine” or “Gaza”

      May 22, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Development»A Step-by-Step Guide to Extracting Workflow Details for PC-IDMC Migration Without a PC Database

    A Step-by-Step Guide to Extracting Workflow Details for PC-IDMC Migration Without a PC Database

    November 8, 2024

    In the PC-IDMC conversion process, it can be challenging to gather detailed information about workflows. Specifically, we often need to determine:

    • The number of transformations used in each mapping.
    • The number of sessions utilized within the workflow.
    • Whether any parameters or variables are being employed in the mappings.
    • The count of reusable versus non-reusable sessions used in the workflow etc.

    To obtain these details, we currently have to open each workflow individually, which is time-consuming. Alternatively, we could use complex queries to extract this information from the PowerCenter metadata in the database tables.

    This section focuses on XQuery, a versatile language designed for querying and extracting information from XML files. When workflows are exported from the PowerCenter repository or Workflow Manager, the data is generated in XML format. By employing XQuery, we can effectively retrieve the specific details and data associated with the workflow from this XML file.

    Step-by-Step Guide to Extracting Workflow Details Using XQuery: –

    For instance, if the requirement is to retrieve all reusable and non-reusable sessions for a particular workflow or a set of workflows, we can utilize XQuery to extract this data efficiently.

    Step 1:
    Begin by exporting the workflows from either the PowerCenter Repository Manager or the Workflow Manager. You have the option to export multiple workflows together as one XML file, or you can export a single workflow and save it as an individual XML file.

    Step 1 Pc Xml Files

    Step 2:-
    Develop the XQuery based on our specific requirements. In this case, we need to fetch all the reusable and non-reusable sessions from the workflows.

    let $header := "Folder_Name,Workflow_Name,Session_Name,Mapping_Name"
    let $dt := (let $data := 
        ((for $f in POWERMART/REPOSITORY/FOLDER
        let $fn:= data($f/@NAME)
        return
            for $w in $f/WORKFLOW
            let $wn:= data($w/@NAME)
            return
                for $s in $w/SESSION
                let $sn:= data($s/@NAME)
                let $mn:= data($s/@MAPPINGNAME)
                return
                    <Names>
                        {
                            $fn ,
                            "," ,
                            $wn ,
                            "," ,
                            $sn ,
                            "," ,
                            $mn
                        }
                    </Names>)
        |           
        (for $f in POWERMART/REPOSITORY/FOLDER
        let $fn:= data($f/@NAME)
        return          
            for $s in $f/SESSION
            let $sn:= data($s/@NAME)
            let $mn:= data($s/@MAPPINGNAME)
            return
                for $w in $f/WORKFLOW
                let $wn:= data($w/@NAME)
                let $wtn:= data($w/TASKINSTANCE/@TASKNAME)
                where $sn = $wtn
                return
                    <Names>
                        {
                            $fn ,
                            "," ,
                            $wn ,
                            "," ,
                            $sn ,
                            "," ,
                            $mn
                        }
                    </Names>))
           for $test in $data
              return
                replace($test/text()," ",""))
          return
     string-join(($header,$dt), "
    ")

    Step 3:
    Select the necessary third-party tools to execute the XQuery or opt for online tools if preferred. For example, you can use BaseX, Altova XMLSpy, and others. In this instance, we are using Basex, which is an open-source tool.

    Create a database in Basex to run the XQuery.

    Step 3 Create Basex Db

    Step 4: Enter the created XQuery into the third-party tool or online tool to run it and retrieve the results.

    Step 4 Execute XqueryStep 5:
    Export the results in the necessary file extensions.

    Step 5 Export The Output

    Conclusion:
    These simple techniques allow you to extract workflow details effectively, aiding in the planning and early detection of complex manual conversion workflows. Many queries exist to fetch different kinds of data. If you need more XQueries, just leave a comment below!

    Source: Read More 

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleCISA Alerts to Active Exploitation of Critical Palo Alto Networks Vulnerability
    Next Article Ready to ditch Google Drive? Here are the 5 best alternatives to check out

    Related Posts

    Machine Learning

    Researchers from the National University of Singapore Introduce ‘Thinkless,’ an Adaptive Framework that Reduces Unnecessary Reasoning by up to 90% Using DeGRPO

    May 23, 2025
    Security

    Nmap 7.96 Launches with Lightning-Fast DNS and 612 Scripts

    May 23, 2025
    Leave A Reply Cancel Reply

    Continue Reading

    Can Benign Data Undermine AI Safety? This Paper from Princeton University Explores the Paradox of Machine Learning Fine-Tuning

    Development

    10 Best Free Legal Compliance Plugins for WordPress

    Learning Resources

    Elden Ring DLC: Should you start a new game for Shadow of the Erdtree?

    Development

    Abracadabra Cyberattack: How Hackers Drained $13M from DeFi Platform

    Development

    Highlights

    CVE-2025-47862 – Apache HTTP Web Server Information Disclosure

    May 13, 2025

    CVE ID : CVE-2025-47862

    Published : May 13, 2025, 4:16 a.m. | 4 hours, 22 minutes ago

    Description : Rejected reason: Not used

    Severity: 0.0 | NA

    Visit the link for more details, such as CVSS details, affected products, timeline, and more…

    Another MLB park now scans your face as your entry ticket. Here’s how it works

    August 14, 2024

    How to Setup Kubernetes Cluster with Minikube on Ubuntu

    March 22, 2025

    Top 50 MERN Stack Interview Questions and Answers

    December 20, 2024
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.