|
SAP CC 3.0 IEC API | ||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||
See:
Description
| Packages | |
|---|---|
| com.highdeal.iec | |
| com.highdeal.iec.action | |
| com.highdeal.iec.hci | |
The IEC API Reference online documentation is intended for programmers that need to implement services provided by IEC (Import/Export Connector), a software component of SAP Convergent Charging (SAP CC) software product.
This document presents how to implement a Java class plugged into the Connector program (or the Connector Server program) of the IEC for adding:
JavaTask abstract class),
UserLogger Java interface).
com.highdeal.bart.iec.AcquisitionSessionReportHandler Java interface).
You can implement three Java classes detailed in this section.
You will develop a Java Action that can be integrated in a Scenario executed by a Connector program. A scenario is created with CAT program.
To implement a Java Action, you have to create:
JavaTask.execute(DataCollection collection) and JavaTask.setProperties(Properties props)).
To compile this task you need the iec.jar file in your Java compiler classpath.
Once developed, you have to declare your Java class (Java Task) in a Scenario by using the CAT and inserting a Java Action Component.
You will develop a Java class that implements the UserLogger interface. By using a Log Action ComponentScenario, you can configure
a Connector program to execute this Java class. A scenario is created with CAT program.
To implement the com.highdeal.iec.UserLogger Java interface,
you have to implement its 5 methods: UserLogger.init(), UserLogger.close(), terminated(...), rejected(...) and filtered(...).
To compile this task you need the iec.jar file in your Java compiler classpath.
Once developed, you have to declare your Java class in a Scenario by using the CAT and inserting a Log Action Component.
You will develop a Java class that implements the com.highdeal.bart.iec.AcquisitionSessionReportHandler) interface. By using a BART Acquisition Session ComponentScenario, you can configure
a Connector program to execute this Java class. A scenario is created with CAT program.
To compile this task you need the bart-iec.jar file in your Java compiler classpath.
Once developed, you have to declare your Java class in a Scenario by using the CAT and inserting a BART Acquisition Session Component.
With the Connector Administration Tool (CAT), create a Scenario and insert a Java Action Component in it. Configure this component with the details of the Java classe(s) you have developed.
Once compiled, put your development in the classpath of the Connector programs: 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 program in order 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 which can be integrated in a scenario
executed by a Connector program. 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, which extends the abstract class JavaTask and implement the following 2 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)com.mycompany.iec.Hello
Note: To compile this task, you need the iec.jar library 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" which contains the value to be used to generate the message.DataCollection. This make the property "message" available to the next actions.Make sure that the Connector program can access to Java classes referenced by the Java Action Component in your Scenario. Execute your new scenario in a connector program:
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:
For overviews, tutorials, examples, guides, and tool documentation, please see:
(c) Copyright 2009 SAP AG. 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 AG. The information contained herein may be changed without prior notice. Some software products marketed by SAP AG 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 AG 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.
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.
com.highdeal.iec.action.JavaTask (Abstract Class),
com.highdeal.iec.UserLogger (Interface)
|
SAP CC 3.0 IEC API | ||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||