Skip to content

controlm/self-conversion-api-quickstart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Control-M Self Conversion API quick start

This repository contains "Conversion Rules" code samples that use groovy and Control-M Self Conversion API to convert sample demo input data into Control-M Data. You can also view these conversion rules code samples from the Control-M Self Conversion homepage in the “sample_project”. You can use these conversion rules code samples to learn different script rules structures and learn how you can use the Control-M Self Conversion API to create Control-M data, such as Folders, Jobs, Hierarchy, Conditions, and different job types (like OS Command jobs SAP R3, File transfer, Informatica and more).

Online Documentation

For more information, see Control-M Self Conversion and the Control-M Self Conversion API online documentation. To download the latest Control-M Self Conversion, go to:
ftp://ftp.bmc.com/pub/control-m/opensystem/Control-M_Conversions_for_DS/
For Control-M Self Conversion Training Video click Here.

Demo Tool Conversion example

The Demo Tool Conversion example includes:

  • SampleData - A folder that holds demo tool sample Input Data in XML format that we want to convert to Control-M data.
  • MappingLogic.xlsx - The mapping logic used for conversion in this sample, from the demo tool sample input data to Control-M data.
  • ConversionRules.json - The Demo Tool Conversion Rules json file that contains the Self Converion rules code.
  • ControlM_Result.xml - The Control-M data created by the Self Converion when converting the Demo tool sample data using the Demo Tool conversion rules.

XML structure sample:

<BOX>
  <JOB Name="JOB1">Job Text</JOB>
</BOX> 

Above sample contains:

  • BOX Element that has child JOB Element.
  • JOB Element contains an "Name" attribute with value "JOB1"
  • JOB Element text value is "Job Text"

Demo Tool mapping logic

Demo Tool Data Control-M Data
BOX Element Smart Folder
BOX "Box_Name" Attribute value Smart Folder name
JOB Element Job
JOB "Name" Attribute value Job Name
JOB Element with Attribute "TYPE=OS" OS Job
JOB "Command" Attribute value OS Job - Command
JOB "UserName" Attribute value OS Job - Run As
JOB Element with Attribute "TYPE=SAP" SAP R3 Job
JOB > saptask > jobname Element text SAP R3 Job - SAP Job Name
JOB "UserName" Attribute value SAP R3 Job - Connection Profile
JOB > saptask > step > abap SAP R3 Job - ABAP Step
JOB Element with Attribute "TYPE=SAPBW" SAP BW Job
JOB "UserName" Attribute value SAP BW Job - Connection Profile
JOB > saptask > ProcessChain SAP BW Job - Process Chain
JOB Element with Attribute "TYPE=MFT" File Transfer Job
JOB "UserName" Attribute value File Transfer Job - Connection Profile
JOB > transfer File Transfer Job - Transfer Attributes
Hierarchy: BOX > JOB Smart Folder parent of Job

Usage Instructions

  1. Clone or download the repository.
  2. Open Control-M Self Conversion.
  3. Import the Demo Tool Conversion Rules json file.
  4. Create a new Self Conversion project:
    • Enter a project name.
    • Load the Demo Tool Sample Input Data.
    • In "Use existing conversion rules" dropdown list, select the conversion rules imported in step 3.
    • Click "Create Project".
  5. Click Run.
  6. Review the conversion results.

Contribution guide

To contribute, please follow these guidelines.

Files, folders and naming conventions

  1. Every conversion and its associated files must be contained in its own folder. Name this folder as the name of the tool that you convert from.

  2. The folder should contain:

    • SampleData - A folder that holds tool sample Input Data in XML format that we want to convert to Control-M data.
    • MappingLogic.xlsx - The mapping logic used for conversion in this sample, from the tool sample input data to Control-M data.
    • ConversionRules.json - The tool Conversion Rules json file that contains the Self Converion rules code.
    • ControlM_Result.xml - The Control-M data created by the Self Converion when converting the tool sample data using the Demo Tool conversion rules.
  3. Include a README.md file that explains the sample. A good description helps other community members to understand your sample. The README.md uses Github Flavored Markdown for formatting text.

About

Control-M Self Conversion API quickstart

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published