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.

    Hostinger
    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 

    Hostinger
    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

    Security

    Nmap 7.96 Launches with Lightning-Fast DNS and 612 Scripts

    May 23, 2025
    Common Vulnerabilities and Exposures (CVEs)

    CVE-2025-2394 – Ecovacs Home Android and iOS Mobile Apps Stored XSS Vulnerability

    May 23, 2025
    Leave A Reply Cancel Reply

    Continue Reading

    Microsoft AI Introduces LazyGraphRAG: A New AI Approach to Graph-Enabled RAG that Needs No Prior Summarization of Source Data

    Development

    Microsoft explains why it’s better to use a local account on Windows 11 — perhaps on purpose

    Development

    I controlled things at CES by pointing at them

    News & Updates

    Building an AIOps chatbot with Amazon Q Business custom plugins

    Machine Learning

    Highlights

    Mozilla Firefox 138.0.3 update rolls out with some known bug fixes

    May 14, 2025

    Mozilla has released Firefox 138.0.3, which is a small but important bug-fixing update for users…

    Microsoft Credits EncryptHub, Hacker Behind 618+ Breaches, for Disclosing Windows Flaws

    April 5, 2025

    Multi-Stage Malware Attack Uses .JSE and PowerShell to Deploy Agent Tesla and XLoader

    April 18, 2025

    This viral iPhone keyboard case is the most ingenious accessory I’ve tested

    November 12, 2024
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

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