Hi,
Is it possible to use the basic connector without workflow? How?
How should I configure the domains in the connector to work?
I have defined the following configuration in transform.xsl
<xsl:template match="/inventory/system">
<PC_OA key="SYSTEM_ID" identifiers="SYSTEM_ID">
<SYSTEM_ID>
<xsl:value-of select="./SYSTEM_ID" />
</SYSTEM_ID>
<fqdn>
<xsl:value-of select="./fqdn" />
</fqdn>
<hostname>
<xsl:value-of select="./hostname" />
</hostname>
<os_name>
<xsl:value-of select="./os_name" />
</os_name>
<model>
<xsl:value-of select="./model" />
</model>
<manufactur>
<xsl:value-of select="./manufactur" />
</manufactur>
</PC_OA>
</xsl:template>
<xsl:template match="/CMDBUILD/PC_OA">
<PC_OA key="SYSTEM_ID" identifiers="SYSTEM_ID">
<xsl:attribute name="objid">
<xsl:value-of select="./@objid" />
</xsl:attribute>
<SYSTEM_ID>
<xsl:value-of select="./SYSTEM_ID" />
</SYSTEM_ID>
<fqdn>
<xsl:value-of select="./fqdn" />
</fqdn>
<os_name>
<xsl:value-of select="./os_name" />
</os_name>
<model>
<xsl:value-of select="./model" />
</model>
<manufactur>
<xsl:value-of select="./manufactur" />
</manufactur>
</PC_OA>
</xsl:template>
<xsl:template match="/inventory/sys_sw_software">
<PC_Software_OA domain="OA_PC_SoftwareInstalled" domaindirection="directed" identifiers="software_id">
<software_id>
<xsl:value-of select="./software_id" />
</software_id>
<software_name>
<xsl:value-of select="./software_name" />
</software_name>
<software_version>
<xsl:value-of select="./software_version" />
</software_version>
<software_install_date>
<xsl:value-of select="./software_install_date" />
</software_install_date>
</PC_Software_OA>
</xsl:template>
<xsl:template match="/CMDBUILD/PC_Software_OA">
<PC_Software_OA domain="OA_PC_SoftwareInstalled" domaindirection="directed" identifiers="software_id">
<xsl:attribute name="objid">
<xsl:value-of select="./@objid" />
</xsl:attribute>
<software_id>
<xsl:value-of select="./software_id" />
</software_id>
<software_name>
<xsl:value-of select="./software_name" />
</software_name>
<software_version>
<xsl:value-of select="./software_version" />
</software_version>
<software_install_date>
<xsl:value-of select="./software_install_date" />
</software_install_date>
</PC_Software_OA>
</xsl:template>
The cards were created for both class, but not the relations.
There aren't errors in log files. I saw these traces in cmdbuild.log
INFO 2014-07-04 11:27:38 [workflow] synchronizing process state, activities and (maybe) variables
INFO 2014-07-04 11:27:38 [workflow] synchronizing variables
DEBUG 2014-07-04 11:27:38 [workflow] synchronizing variable 'Code' with value 'Inserimento Modifiche'
DEBUG 2014-07-04 11:27:38 [workflow] synchronizing variable 'Description' with value 'Creazione di PC_Software_OA - PC_OA: 1'
DEBUG 2014-07-04 11:27:38 [workflow] synchronizing variable 'FlowStatus' with value 'null'
DEBUG 2014-07-04 11:27:38 [workflow] synchronizing variable 'actionList' with value '<?xml version="1.0" encoding="UTF-8"?>
<ExternalSync>
<cardList>
<PC_Software_OA identifiers="software_id" domaindirection="directed" domain="OA_PC_SoftwareInstalled">
<software_id>293</software_id>
<software_name>Microsoft .NET Framework 3.0 Service Pack 2</software_name>
<software_version>3.2.30729</software_version>
<software_install_date>20131017</software_install_date>
</PC_Software_OA>
</cardList>
<cardMaster>
<masterCardId>1524</masterCardId>
<masterClassName>PC_OA</masterClassName>
</cardMaster>
<action>create</action>
</ExternalSync>
'
DEBUG 2014-07-04 11:27:38 [workflow] synchronizing variable 'actionDetail' with value 'Creato un nuovo elemento: PC_Software_OA
Descrizione: software_id: 293
software_name: Microsoft .NET Framework 3.0 Service Pack 2
software_version: 3.2.30729
software_install_date: 20131017
'
DEBUG 2014-07-04 11:27:38 [workflow] synchronizing variable 'ProcessCode' with value '1998_Package_importasset_Process_importasset'
DEBUG 2014-07-04 11:27:38 [workflow] synchronizing variable 'NextExecutor' with value 'null'
DEBUG 2014-07-04 11:27:38 [workflow] synchronizing variable 'ActivityInstanceId' with value 'null'
DEBUG 2014-07-04 11:27:38 [workflow] synchronizing variable 'PrevExecutors' with value 'null'
DEBUG 2014-07-04 11:27:38 [workflow] synchronizing variable 'UniqueProcessDefinition' with value 'null'
DEBUG 2014-07-04 11:27:38 [workflow] synchronizing variable 'ActivityDefinitionId' with value 'null'
DEBUG 2014-07-04 11:27:38 [workflow] synchronizing variable 'Notes' with value ''
INFO 2014-07-04 11:27:39 [workflow] process is completed, delete if from workflow service
Thanks.