Generates IS Flows programmatically
- Copy the package WxGenerate to <<IS_root>>/instances/default/replicate/inbound
- In IS Admin-GUI go to Packages->Management. Click on "Install Inbound Releases", and select "WxGenerate.zip".
- Click "Install Release"
The package has the following content.
WxGenerate.doctypes:addFieldToDoctype - adds a given field to a given doctype
WxGenerate.doctypes:createDoctype - creates a new doctype
WxGenerate.doctypes:createField - creates a new field
WxGenerate.doctypes:getJavaWrapperTypes - displays the possible Java values for an field of type object
WxGenerate.doctypes:saveDoctype - saves the doctype
WxGenerate.flows:addExitFrom - adds an exit step to the flow
WxGenerate.flows:addIfThanElse - adds a if-then-else-branch to the flow
WxGenerate.flows:addInvoke - adds an invoke step to the flow
WxGenerate.flows:addMap - adds a map line from source to dest field to the flow
WxGenerate.flows:addMapStep - adds a map step to the flow
WxGenerate.flows:addSwitchCase - adds a switch-case step to the flow
WxGenerate.flows:checkForPackage - checks if a given package is present in IS
WxGenerate.flows:createFlowRoot - creates the base flow service
WxGenerate.flows:getFlowRoot - get the flowRoot
WxGenerate.flows:saveFlow - saves the given flow
The flows in sample folder demos the usage of the aboved mentioned services in the following demo flows.
Generates the flow A:SimpleFlow in package A (assuming the default settings are chosen). If the package A doesn't exists, it's created and the flow A:SimpleFlow is created inside A. Refresh the package view in Designer and run A:Simple flow to examine the results.
Generates the flow A:aMoreComplexFlow in package A (assuming the default settings are chosen). If the package A doesn't exists, it's created and the flow A:aMoreComplexFlow is created inside A. You can watch the results of A:aMoreComplexFlow in the server.log file.
These tools are provided as-is and without warranty or support. They do not constitute part of the Software AG product suite. Users are free to use, fork and modify them, subject to the license agreement. While Software AG welcomes contributions, we cannot guarantee to include every contribution in the master project.
Contact us at TECHcommunity if you have any questions.