Documentation for a newer release is available. View Latest

How to Add Business Functions to an existing IPF Solution

Prerequisites

Your project must be using IPF release 2024.1.0 or later.

Update your maven dependency plugin executions

Add the `unpack-ipf-business-functions-plugin execution to the maven-dependency-plugin build plugin included within your mps module. If your project was generated using the IPF Archetype this will be a submodule of <your-project-name>-domain. See below:`

<execution>
    <id>unpack-ipf-business-functions-plugin</id>
    <phase>initialize</phase>
    <goals>
        <goal>unpack</goal>
    </goals>
    <configuration>
        <artifactItems>
            <artifactItem>
                <groupId>com.iconsolutions.ipf.businessfunctions.aggregator.domain</groupId>
                <artifactId>mps</artifactId>
                <version>${icon-business-functions-aggregator.version}</version>
                <type>zip</type>
                <overWrite>true</overWrite>
                <outputDirectory>${plugin_home}</outputDirectory>
            </artifactItem>
        </artifactItems>
    </configuration>
</execution>

Add the aggregator’s external libraries as a dependency

Add the below dependency to the pom.xml for your domain module. If your project was generated using the IPF Archetype this will be a submodule of <your-project-name>-domain.

	<dependency>
	    <groupId>com.iconsolutions.ipf.businessfunctions.aggregator.domain</groupId>
	    <artifactId>external-libraries</artifactId>
	</dependency>

Rebuild your MPS project

Rebuild your project with mvn clean install.

You will see the business functions listed within your MPS project. They can be found at the package path com.iconsolutions.ipf.businessfunctions in the Solutions and DevKits folders of your Modules Pool.