IOM Connector is a set of cartridges that allows data exchange and communication between Intershop Commerce Management and Intershop Order Management. It is an extension (or "service") module for Intershop Commerce Management. As such, it requires a base version against which it can be deployed. The table below describes the version dependencies between those entities.
IOM Connector | Intershop Commerce Management B2X | Intershop Order Management | |
---|---|---|---|
Version | 3.0 | 7.7.2.+ | 2.1.x |
Below you find some general information about IOM Connector - both technical and business.
In a nutshell, Intershop set up with IOM Connector will affect the following:
Intershop Commerce Management B2X features such as order approval or additional order information are fully compatible with IOM Connector. Orders will be exported to IOM only after the corresponding approval processes are completed. In addition, any information stored to the order - such as message to merchant, cost center and project - will be exported as well.
As with any Intershop feature that connects ICM to another system, all features are realized using Managed Services framework.
Intershop recommends to create and manage the IOM Services in the context of channels.
Term | Description |
---|---|
ICM | The abbreviation for Intershop Commerce Management |
IOM | The abbreviation for Intershop Order Management |
The component set f_iomconnector (IOM Connector) is composed of the following cartridges:
There are also a few test and development cartridges:
As mentioned before, the IOM Connector is to be set up alongside a standard ICM installation. It adds additional cartridges that define the following managed services:
The chevrons at the shapes of the services in the diagram below indicate the data communication direction. The picture below illustrates this.
Both ICM and IOM follow the same hierarchical concept of organizations that have expandable entities. These entities differ, however. In ICM one sales organization may have multiple channels, while in IOM one sales organization may have multiple shops.
Intershop recommends to consider channels and shops as synonyms in the context of this document and your setup. Although not the same, they are in close relation to each other.
As mentioned before, a couple IOM Services, although not mandatory, are to be created in the context of channel. This way you can ensure that the communication exchange between ICM and IOM is realized on the intended level.
The services mentioned in the previous chapter are realized with web services. They are exchanging data between the two systems in a specific format, but they also need to be configured. Web services require an end point that is different for each of them. In the table below you can see the end points, with IOM server host/address shown as a placeholder.
Service | End point |
---|---|
IOM Order Service | https://<iom-host>/webservices/OrderService/v1.1 |
IOM Order State Service | https://<iom-host>/webservices/OrderStateService/v1.0 |
IOM Download Service | https://<iom-host>/webservices/DownloadService/v1.0 |
IOM Reverse Service | https://<iom-host>/webservices/ReverseService/v1.0 |
IOM Inventory Service | https://<iom-host>/servlets/services/ |
When doing the configuration mentioned in the step above, you must also specify a shop. Usually, a channel in ICM represents a shop in IOM.
Consumers of the services must authorize themselves to IOM before any data is processed - either as input or output. To realize this, you must create a user in IOM with permissions necessary for the operations performed by the service. An easy way to ensure this is to assign the ShopServiceClient
role to the corresponding user. However, you may fine grain the permissions for each service as they all will need a user name/password combination.
Should you use prepared demo data (you do not if you do not know what this is) here are some prepared values:
Consumer Web-Service | consumer_ws |
---|---|
Company | inSPIRED |
Shop(s) | inTRONICS |
inTRONIC Business |
Both systems exchange data so they need a common ground as a base for this communication. The following table shows the mappings between IOM and ICM:
Identifier | IOM | ICM |
---|---|---|
Product | Shop's product ID | Channel's product SKU |
Customer | Shop's customer number | Customer No |
Order | Shop's order No | Order document number |
These identifiers must be identical for each item in both systems. For example, if an order with a line item that has the SKU 00910 is placed and then exported to IOM, the web services layer will report an error if the product with this product ID is not present in IOM.
IOM Connector provides instruments that route any order placed from ICM to IOM. To use this feature, you must configure the order export (see Configure Order Export), which depends on an existing service configuration (see Configure IOM Order Service). As mentioned before, on the configuration page you may tweak the export settings, but we generally use "on order creation" trigger.
The look and feel and the business processes in the standard ICM is not altered in any way, but placed orders are routed to IOM.
Order Confirmation in ICM | Order details in IOM |
---|---|
Order approval and Additional order information - works out of the box with order export to IOM. Orders are exported to IOM once they are approved by the responsible user(s) in the customer's organization. All approval and additional information details are exported to IOM upon order placement. They are accessible in the Attributes section.
The table below lists the mapping of data exchanged between ICM and IOM.
ICM | IOM |
---|---|
Order details | |
Order Document Number | Shop Order ID |
Creation Date | Sales Information / Order |
Payment Method | Payment Method |
Tax Rate | Tax Rate |
Order total | Order total |
Shipping Information | |
Shipping method ID | Carrier |
Invoice & Shipping Address | |
Company | Company |
Salutation | Salutation |
First Name | First Name |
Last Name | Last Name |
Address 1 | Street |
Address 2 | Address Suffix 1 |
Address 3 | Address Suffix 2 |
ZIP/Postal Code | ZIP/Postal Code |
City | City |
Country | Country |
Phone | Phone |
Line Item Information | |
Product SKU | Shop product ID |
Quantity | Quantity |
Tax Rate | Tax Rate |
Price | Price |
A note on shipping and carriers. They're different in their nature. While the sales channels in ICM have shipping methods which are select-able by the customers, IOM "knows" about carriers that execute those shipping methods. For example, in ICM one might have two shipping methods "DHL Express" and "DHL Standard" both of which are covered by single carrier "DHL".
This feature is governed by the IOM Order State Service. Once this service is configured and activated, the order status information in My Account -> Order history is taken in real time from IOM.
My Account -> Order History | Order search in IOM |
---|---|
Real time means that order statuses are updated the moment they are updated in IOM. Thus any action taken in IOM, for example Confirmation of delivery, will be shown in ICM the moment when someone requests their order history. In the table below you find the mapping between order statuses in the two systems.
Intershop Commerce Management | Intershop Order Management |
---|---|
transmitted | commissioned |
shipped | shipped |
in validation | check failed |
returned | returned |
The actual information about payment is very important for our customer. After you submit your order you can see details information about the order in "Order History". When you click on "view" it should show "Order Detail" page with "Payment Section" this section contains details information for your payment status represented with payment statuses (Paid,Part Paid,Not Paid) and progress bar :
Paid | If your order is completely paid. |
Part Paid | If you pay only part of total cost of the order. |
Not Paid | The order is not paid. |
The progress bar will be shown in "percent" how much money is remaining to be paid. The customer also should see this information in "Open Invoiced Amount" represented as money ($ 10.25). When the Order is completely paid the customer should see green progress bar with 100% and also $0 in Open Invoiced Amount.
My Account -> Order History ->View | Order Invoice in IOM |
---|---|
Customers are able to trigger returns of orders. Once the order is shipped, and its delivery confirmation is tracked in IOM, its status is changed to shipped. From the order history page, every order that has been shipped can be triggered for return by clicking the Return link. For each individual item, a return quantity and a reason can be specified. Return reasons are requested from IOM and available for selection to the customers.
The required service for order return is IOM Reverse Service. Without it configured and activated, customers will not be able to use this feature.
Once someone has requested a return, they will be able to download, or directly print a return slip. This return slip can be downloaded from the link shown on the Prepare Return Documents page.
As with the rest of IOM features, this one is also realized by using managed service - IOM Download Service. You must configure it first before using it.
This feature allows for the document and note information within the order to be displayed on the Order Details page. The Order Document retrieval from the IOM has a cache handling mechanism that preserves the information for a given time interval. When the order details page loads, a request is sent to the IOM, which in turn responds (if successful) with a report that contains various order information - in that number the order documents/notes. Then the documents and notes are handled accordingly and finally presented in the details page. The documents list is shown when the customer clicks the "View All" link at the bottom left side of the page. The info shown about the documents consists of: note type (invoice, credit , etc.), note creation date/time and a link for the document to be downloaded from. Also when the Download button is clicked that activates the download of the document. The badge on the right hand side of the "View all" link shows the actual number of documents which are available for viewing/downloading.
After downloading the document/note should look similar to the example shown below:
And the "see all" dialog box link as shown here:
The main task that the Inventory Service does is to check the product availability status for a particular product in IOM. IOM Inventory Service performs in real time, but at the same time it supports caching of the results for a given time interval (e.g., 5 seconds). When the page with the customers desired product is open, the Inventory Service sends a request to IOM that asks for the ATP (available to promise) status. If the product is available then the customer will see the button Add to Cart and a field in which to specify the desired quantity of the product. On the other hand, if the product is not available, on the screen will be shown the following: a button with the text Notify me when available. If in the service configuration the checkbox Availability check on failure is not ticked, then in the case of a problem with the communication with the IOM system, the Simple Inventory Service will be activated and the selected product will be checked for ATP (ICM) in the local database.
IOM Connector release package is available via Intershop's public Nexus server. To add it to your release you must: The IOM Connector contains parts that are distributed as binary artifacts (see iomConnectorCartridges below) and parts that are distributed as source (see productionCartridges below), so they can be copied and modified easily in a project. You can retrieve the source cartridges from the public Nexus under com.intershop.public.source.f_iomconnector. Unzip and copy the component set contents to your project directory <ProjectHome>/projects/intershop-project /<myCustomComponentset> . Long path names on Windows On Windows certain tools have trouble dealing with path names longer than 255 characters. When in doubt, please use 7-Zip 15.12 to uncompress the source packages. Edit the gradle.properties in your component set and add the following: Change Change Change Re-publish your component set. To add IOM Connector you may either: Open the file build.gradle of your assembly, add a list of IOM Connector's cartridges in In the same build.gradle file add add the following two cartridges to Alternatively, you can create a new assembly inheriting from an Intershop Commerce Management-based assembly. Exclude conflicting versions from the assembly build. Add the following directive at the end of build.gradle file of your assembly. If you already have defined configurations.all directive just enrich it with the excludes listed below. Define version directives for IOM Connector cartridges. Define a unique order sequence. For more details about see Recipe: Change Deployed File Content With Filters. After creating and appropriately configuring the assembly, you must deploy it to the intended target environment. You must run a database initialization to use the IOM connector. DBInit is necessary for the following cartridges: To execute full database initialization use: To execute the database initialization use on selected set of cartridges: For details about managing assembly artifacts, see:Precondition
See Cookbook - Setup CI Infrastructure (valid to Gradle Tools 2.7) for details.
See Concept - Continuous Delivery Tools (valid to 7.10) for basic information about Continuous Integration.
http://<your-reposerver:port>/nexus/content/repositories/ish-releases/com.intershop.public.source/f_iomconnector/3.0.0/zips/f_iomconnector-zip-src-3.0.0.zip
# dependency versions
...
version.com.intershop.services.iomconnector.ac_iomconnector_common = 3.0.0
version.com.intershop.services.iomconnector.ac_iomconnector_order = 3.0.0
version.com.intershop.services.iomconnector.ac_iomconnector_inventory = 3.0.0
version.com.intershop.services.iomconnector.init_iomconnector = 3.0.0
...
ac_iomconnector_orderhistory
, as_iomconnector
and demo_iomconnector
.build.gradle
of ac_iomconnector_orderhistory
Find Replace with compile project(':ac_iomconnector_common')
compile group: 'com.intershop.services.iomconnector', name: '
ac_iomconnector_common
'compile project(':ac_iomconnector_order')
compile group: 'com.intershop.services.iomconnector', name: '
ac_iomconnector
'_order
build.gradle
of as_iomconnector
Find Replace with compile project(':ac_iomconnector_common')
compile group: 'com.intershop.services.iomconnector', name: '
ac_iomconnector_common
'compile project(':ac_iomconnector_order')
compile group: 'com.intershop.services.iomconnector', name: '
ac_iomconnector
'_order
compile group: 'com.intershop.responsive', name: 'as_responsive_b2b'
compile project(':as_responsive_b2b')
build.gradle
of demo_iomconnector
Find Replace with compile project(':ac_iomconnector_common')
compile group: 'com.intershop.services.iomconnector', name: '
ac_iomconnector_common
'Configure the Assembly
assembly
directive and include this list into assembly's cartridgesassembly {
...
cartridges {
def iomConnectorCartridges = [
'ac_iomconnector_common',
'ac_iomconnector_order',
'ac_iomconnector_inventory',
'init_iomconnector',
]
include (*(iomConnectorCartridges.collect {"com.intershop.services.iomconnector:$it"}), in:[development, test, production])
def productionCartridges =
[
'<your-cartridge1>',
'<your-cartridge2>',
'ac_iomconnector_orderhistory',
'as_iomconnector',
'demo_iomconnector'
]
include (*(productionCartridges.collect {"<your-assembly-group>:$it"}), in:[development, test, production])
order = listFromAssembly('<your-assembly>') + storefrontCartridges + iomConnectorCartridges + productionCartridges + initCartridges + developerCartridges + testCartridges
}
...
}
assemblyBuild.database
.assembly {
...
}
assemblyBuild {
database {
inherit('<your-assembly>')
initCartridges =
[
'ac_iomconnector_common',
'demo_iomconnector',
'init_iomconnector'
]
}
}
configurations.all {
exclude group: 'org.apache.geronimo.specs', module: 'geronimo-activation_1.1_spec'
exclude group: 'org.apache.geronimo.specs', module: 'geronimo-jta_1.1_spec'
exclude group: 'org.apache.geronimo.specs', module: 'geronimo-javamail_1.4_spec'
exclude group: 'org.apache.geronimo.specs', module: 'geronimo-stax-api_1.0_spec'
exclude group: 'stax', module: 'stax-api'
exclude group: 'asm', module: 'asm'
exclude group: 'javax.servlet', module: 'servlet-api'
exclude group: 'org.apache.ws.commons.schema', module: 'XmlSchema'
}
Open gradle.properties
of your assembly and add following lines:# IOM binary delivered cartridges (Nexus)
version.com.intershop.services.iomconnector.ac_iomconnector_common = 3.0.0
version.com.intershop.services.iomconnector.ac_iomconnector_order = 3.0.0
version.com.intershop.services.iomconnector.ac_iomconnector_inventory = 3.0.0
version.com.intershop.services.iomconnector.init_iomconnector = 3.0.0
# IOM source delivered cartridges (local)
version.com.intershop.responsive.ac_iomconnector_orderhistory = YourAssemblyVersion-local
version.com.intershop.responsive.as_iomconnector = YourAssemblyVersion-local
version.com.intershop.responsive.demo_iomconnector = YourAssemblyVersion-local
Both Intershop Commerce Management and Intershop Order Management assign an unique identifier to any order placed in the corresponding system. These identifiers are often referred to as "order document number" or "order ID". In order to have a seamless integration between the two systems you must synchronize these identifiers. Since ICM has the "leading role" as the orders are created and submitted from customers in the web shop, system administrators need to apply an additional configuration to the order number generation.
IOM Connector requires an order number generation that provides unique order numbers for both systems.
If you are deploying IOM Connector with ICM and IOM anew, in other words you have no orders placed in both systems, it is safe to skip this step. However, you may want to define unique order sequence just in case. All you need to do is to negotiate a starting number with all parties involved and then add a deployment step that alters /share/system/config/cluster/database.properties file, namely the property intershop.sequence.startsWith
. Open settings.gradle of your assembly and add following lines:deployment {
...
filters {
overrideProperties('uniqueOrderSequence') {
dir = target.shareDirectory
include 'system/config/cluster/database.properties'
properties['intershop.sequence.startsWith'] = <negotiated-order-sequence>
}
}
}
Deploy the Assembly
For details about deploying an assembly, see Recipe: Run the Deployment (Initial Installation / Upgrade / Downgrade)Initialize the Database
gradlew dbinit
dbinit -t=ac_iomconnector_common,demo_iomconnector,init_iomconnector
References
In order to deploy IOM Connector with Intershop Commerce Management, you do not need to configure anything.
For a proper interaction of the two systems (IOM and ICM), however, some configuration is necessary. For more detailed information on how to do this, refer to Guide - ICM & IOM Configuration Tasks.
Additionally in order to get the IOM working with the ICM 7.7 demo scenario (inSPIRED storefront) specific demo content needs to be uploaded into the IOM. The description and the content can be found here: Guide - IOM Demo Data Setup for IOM Connector 2.0, 3.0 and 4.0
Do not use warranties. Intershop Order Management currently does not support service product types.
Both Intershop Commerce Management and Intershop Order Management assign an unique identifier to any order placed in the corresponding system. These identifiers are often referred to as order document number or order ID. In order to have a seamless integration between the two systems you must synchronize these identifiers. Since ICM has the "leading role" as the orders are created and submitted from customers in the web shop, system administrators need to apply an additional configuration to the order number generation.
Intershop Commerce Management's server(s) should be turned off before the steps bellow are executed.
Go to <server-installation-dir>/local/bin and execute environment.<bat|sh>.
./iomconnector/server/local/bin/environment.sh
Go to <server-installation-dir>/local/tools/misc and execute ant export-sequence-info -f database.xml
.
[/iomconnector/server/local/tools/misc]# ant export-sequence-info -f database.xml Buildfile: /iomconnector/server/local/tools/misc/database.xml dbenvironment.environment.decrypt: dbenvironment.environment: environment: export-sequence-info: [sql] Executing commands [sql] 1 of 1 SQL statements executed successfully [sql] Executing commands [sql] 1 of 1 SQL statements executed successfully log: [echo] [02/17/2016 03:20:56 PM] The used enfinity specific sequence informations were successfully exported to file 'sequences-info.properties'. BUILD SUCCESSFUL Total time: 2 seconds
In <server-installation-dir>/local/tools/misc open the newly generated file called sequences-info.properties.
It looks like:
#,LAST_NUMBER,INCREMENT_BY,SEQUENCE_NAME,DOMAIN_SPECIFIC,DOMAINNAME,IDENTIFIER #,51,10,SQHHBAQDGBYQAAAAFUCBLM4M0_,TRUE,inSPIRED-inTRONICS,SellerOrder.DocumentNo.NfsKAB1PpEUAAAFTFT89kGWR # Largest last_number is: SellerOrder.DocumentNo.NfsKAB1PpEUAAAFTFT89kGWR - inSPIRED-inTRONICS #intershop.sequence.blockSize = 10 #intershop.sequence.startsWith = 51
Memorize or write down the number of intershop.sequence.startsWith
and intershop.sequence.blockSize
.
intershop.sequence.startsWith
taken at step 3. You may also add a date prefix to the order number, or put a unique machine identifier, as long as it contains only numbers.intershop.sequence.blockSize
to it - 20160128017063 + 10 = 20160128017073 - and then add 1. The end result is 20160128017074.Remove #
from line intershop.sequence.startWith=
and change its value to the unused order sequence determined in step 7.
################################################################################ ## ## Series (Sequence) Creation Options ## ## ## series numberPattern settings ## #intershop.sequence.numberPattern=00000000 ## ## blockSize - "increment by <n>" ## startsWith - "start with <n>" ## cacheSize - "cache <n>" or "nocache" if <n> = 0 ## orderFlag - "order" if true or "noorder" if false ## #intershop.sequence.blockSize=50 intershop.sequence.startsWith=20160128017074 #intershop.sequence.cacheSize=0 #intershop.sequence.orderFlag=true