See: Description
| Package | Description |
|---|---|
| com.highdeal.iec |
This
Java package specifies some useful Java interfaces and exceptions. |
| com.highdeal.iec.action |
This
Java package provides the JavaTask class and some Java interfaces to assign to your customized class
when developing a Java class dedicated to customize the behavior of an SAP CC Import/Export Connector (IEC) application in your system landscape. |
| com.highdeal.iec.hci |
This
Java package provides the JavaActionModel class. |
The SAP CC 5.0 Java API Reference (IEC Library) documentation is intended for developers that need to implement business services provided by IEC (Import/Export Connector), a software component of the SAP Convergent Charging (SAP CC) software product. The necessary Java libraries are included in a dedicated Software Development Kit (Core SDK).
Caution
Make sure that you have the latest version of this documentation extracted from the Core SDK.
This SAP product document presents how to implement a Java class plugged to
an SAP CC Import/Export Connector (IEC) application in your SAP system landscape to customize its business or technical behavior by adding
the following features:
These SAP CC Java libraries provide you with the necessary Java classes and Java interfaces
to develop a Java class to
customize the behavior of an SAP CC Import/Export Connector (IEC) application in your system landscape.
During the planning and preparation steps of your project implementation phase, you develop the relevant Java class that can be plugged in an IEC application:
Depending on your business requirements, you design and develop your customized Java classes detailed in this section:
When you need to add and set up a Java Action component in a
scenario configured
with the SAP CC CAT Tool user interface,
you must develop a Java class that can be specified in this scenario and executed by
an Import/Export Connector (IEC) application.
To implement a Java Action in a scenario, you have to:
Java class that extends the
JavaTask abstract class
To compile this task you need the iec.jar file in your Java compiler classpath.
Once developed, you specify your Java class (Java Task) in the relevant customized scenario and component: Set up a Java Action component with CAT Tool.
When you need to add and customize a Log Action component in a
scenario configured
with the SAP CC CAT Tool user interface,
you must develop a Java class that can be specified in this scenario and executed by
an Import/Export Connector (IEC) application.
Your customized Java class must implement the UserLogger Java interface.
To implement this interface, you must develop its five methods:
UserLogger.init()
UserLogger.close()
UserLogger.terminated(DataCollection, String)
UserLogger.rejected(DataCollection, String, String[], String)
UserLogger.filtered(DataCollection, String, String[], String)
To compile this Java class you need the iec.jar file in your Java compiler classpath.
Once developed, you specify your Java class in the relevant customized scenario and component: Set up a Log Action component with CAT Tool.
When you need to add a BART Acquisition Session component in a
scenario configured
with the SAP CC CAT Tool user interface,
you must develop a Java class that can be specified in this scenario and executed by
an Import/Export Connector (IEC) application.
com.highdeal.bart.iec.AcquisitionSessionReportHandler Java interface.
By using a BART Acquisition Session component in a scenario, you can configure
a Connector application to execute this Java class.
A scenario is created with SAP CC CAT Tool.
To compile this Java class you need the bart-iec.jar file in your Java compiler classpath.
Once developed, you specify your Java class in the relevant customized scenario and component: Set up a BART Acquisition Session component with CAT Tool.
Important Note
This documentation does not provide any information about how to implement such a Java class. Refer to the SAP CC BART Java/XML API Reference.
The application programming interface (API) specification defines the interaction between an SAP CC Import/Export Connector (IEC) application and a customized Java class plugged to this IEC application.
This API specification has the form of a Java API also named Javadoc.
With the SAP CC Connector Administration Tool (CAT Tool) user interface, you create a scenario that specifies the behavior of the SAP CC Import/Export Connector application that will use this scenario as configuration file.
When you add some specific scenario components you need to develop customized Java classes and to configure the scenario component with the details of the Java classe(s) you have developed with the SAP CC Java libraries.
Once compiled, place your development in the classpath of the Import/Export Connector (IEC) applications in your system landscape: add your classes
or jar in the <IEC_HOME>/jars/ folder.
Note
It is not recommended to modify directly the launch script of the connector application to add your directory to the classpath.
Prefer the copy of your implementation to the <IEC_HOME>/jars/ folder.
This section describes how to implement a Java Action that can be specified in a scenario executed by an Import/Export Connector application in your system landscape.
To illustrate this tutorial, let's take an original example, which will receive a name from the previous action and will send the string "HELLO "+name to the next action. It can be very funny if name is "WORLD", I let you imagine.
com.mycompany.iec.Hello that extends the abstract class JavaTask.
Implement the following two methods:
JavaTask.execute(DataCollection collection)DataCollection can be seen as a Map on which actions share data.
The main useful methods of a DataCollection are DataCollection.get(String key) to get the object mapped with the specified key and
DataCollection.set(String key, Object value) to map the specified object with the specified key.
JavaTask.setProperties(Properties props)
Let's back to our example, we create a class: com.mycompany.iec.Hello
Note
To compile this task, you need the iec.jar library file in you Java compiler classpath.
Note
If you are interested by the final state of a DataCollection,
your JavaTask has to implement the interface JavaTaskStateListener.
This interface is the following:
JavaTaskStateListener.stateTerminated(String actionUid)JavaTaskStateListener.stateRejected(String actionUid, String[] arguments)JavaTaskStateListener.stateFiltered(String actionUid)DataCollection a String mapped
with the key "name" that contains the value to be used to generate the message.DataCollection.
This makes the property "message" available to the next actions.Make sure that the Import/Export Connector application can access to Java classes referenced by the Java Action component in your scenario. Execute your new scenario in an IEC application:
connector myscenario
The following example shows you how to implement the UserLogger interface.
This example shows the ConsoleLogger class that is used to print each event on a console:
Example
You can access online to the "Javadocs" of SAP Convergent Charging 5.0 on SAP Help Portal at: help.sap.com/cc >> SAP CC 5.0 >> Development Information.
Recommendation
Use always the more up-to-date version of this documentation. It is available in the following software unit of SAP CC: Software Development Kit (SDK) for the SAP CC Core Server. You can download all the SDKs from SAP Software Download Center (SWDC): Initial version or maintenance versions.
For more information about the business and technical processes, see the SAP CC Application Help and the SAP CC Configuration Guide on SAP Help Portal at: help.sap.com/cc >> SAP CC 5.0 >> Development:
Other related documents can help you:
Other Java API References (for integration with other SAP CC systems)
Other Java API References (for integration with other SAP CC systems)
(c) Copyright 2017 SAP SE or an SAP affiliate company. All rights reserved.
No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP SE or an SAP affiliate company. The information contained herein may be changed without prior notice. Some software products marketed by SAP SE and its distributors contain proprietary software components of other software vendors.
All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.
These materials are subject to change without notice. These materials are provided by SAP SE and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.
This documentation may describe use cases that are not authorized for all customers in all regions. Please refer to your license agreement and comply with any territorial or use restrictions that apply.
Some components of this product are based on Java. Any code change in these components may cause unpredictable and severe malfunctions and is therefore expressively prohibited, as is any decompilation of these components.