Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » OSEE » Artifact type exists but can't create instance
Artifact type exists but can't create instance [message #14539] Fri, 01 May 2009 14:45 Go to next message
Mark D-B is currently offline Mark D-BFriend
Messages: 188
Registered: July 2009
Senior Member
I have created two new artifact types, "Model" and "Signal", from the
"NativeArtifact" and "Artifact" base types, by generating an XML table and
importing it using Import->OSEE Types.

They appear in the New Child menu in Define, in the Artifact Type tab of
Sky Walker, and in the database table osee.osee_artifact_type.

The relations for them also appear in the Relation Type tab of Sky Walker
and in the database table osee.osee_relation_type_link.

However, when I create an instance using New Child, I get asked for a name
and no error is produced but the new artifact does not appear in the tree.
It also does not appear in the database table osee.osee_artifact.

What am I doing wrong please?
Re: Artifact type exists but can't create instance [message #14774 is a reply to message #14539] Thu, 07 May 2009 19:40 Go to previous messageGo to next message
Roberto Escobar is currently offline Roberto EscobarFriend
Messages: 10
Registered: July 2009
Junior Member
I am not sure what could be the problem. Have you checked in the Error log
to see if a problem is being reported. If you find an exception please
post so I can follow up.

Thanks
Re: Artifact type exists but can't create instance [message #14864 is a reply to message #14774] Fri, 08 May 2009 16:28 Go to previous messageGo to next message
Mark D-B is currently offline Mark D-BFriend
Messages: 188
Registered: July 2009
Senior Member
There's nothing appearing in the .log files in the configuration
directories for either the application server or client. Is there anywhere
else that error logs are written please?
Re: Artifact type exists but can't create instance [message #15142 is a reply to message #14864] Tue, 12 May 2009 15:12 Go to previous messageGo to next message
Mark D-B is currently offline Mark D-BFriend
Messages: 188
Registered: July 2009
Senior Member
Can anyone see what I've done wrong in the XML below that was supposed to
add the new artifact "Signal" please?

<?xml version="1.0"?>
<?mso-application progid="Excel.Sheet"?>
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:html="http://www.w3.org/TR/REC-html40">
<DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
<Author>Robert Fisher</Author>
<LastAuthor>Mark Dawson-Butterworth</LastAuthor>
<LastPrinted>2006-03-15T03:49:16Z</LastPrinted>
<Created>2005-07-01T21:31:12Z</Created>
<LastSaved>2009-05-01T12:32:37Z</LastSaved>
<Company>The Boeing Company</Company>
<Version>12.00</Version>
</DocumentProperties>
<OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office">
<DoNotRelyOnCSS/>
</OfficeDocumentSettings>
<ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">
<WindowHeight>6690</WindowHeight>
<WindowWidth>15480</WindowWidth>
<WindowTopX>360</WindowTopX>
<WindowTopY>4530</WindowTopY>
<ProtectStructure>False</ProtectStructure>
<ProtectWindows>False</ProtectWindows>
</ExcelWorkbook>
<Styles>
<Style ss:ID="Default" ss:Name="Normal">
<Alignment ss:Vertical="Bottom"/>
<Borders/>
<Font ss:FontName="Arial"/>
<Interior/>
<NumberFormat/>
<Protection/>
</Style>
<Style ss:ID="s62">
<Font ss:FontName="Arial" x:Family="Swiss" ss:Size="9"/>
</Style>
<Style ss:ID="s64">
<Alignment ss:Horizontal="Left" ss:Vertical="Bottom" ss:WrapText="1"/>
<Borders/>
<Font ss:FontName="Arial" x:Family="Swiss" ss:Size="9"/>
</Style>
<Style ss:ID="s65">
<Alignment ss:Horizontal="Left" ss:Vertical="Bottom" ss:WrapText="1"/>
<Borders>
<Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="3"/>
</Borders>
<Font ss:FontName="Arial" x:Family="Swiss" ss:Size="9"/>
</Style>
<Style ss:ID="s66">
<Alignment ss:Horizontal="Left" ss:Vertical="Bottom"/>
<Borders>
<Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="3"/>
<Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="3"/>
<Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="3"/>
<Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="3"/>
</Borders>
<Font ss:FontName="Arial" x:Family="Swiss" ss:Size="9" ss:Bold="1"/>
</Style>
<Style ss:ID="s67">
<Borders>
<Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="3"/>
</Borders>
<Font ss:FontName="Arial" x:Family="Swiss" ss:Size="9"/>
</Style>
<Style ss:ID="s68">
<Alignment ss:Horizontal="Left" ss:Vertical="Bottom"/>
<Borders>
<Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="3"/>
<Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="3"/>
</Borders>
<Font ss:FontName="Arial" x:Family="Swiss" ss:Size="9"/>
<NumberFormat/>
</Style>
<Style ss:ID="s69">
<Alignment ss:Horizontal="Left" ss:Vertical="Bottom"/>
<Borders>
<Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="3"/>
<Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="3"/>
</Borders>
<Font ss:FontName="Arial" x:Family="Swiss" ss:Size="9"/>
<NumberFormat ss:Format="Short Date"/>
</Style>
<Style ss:ID="s70">
<Alignment ss:Horizontal="Left" ss:Vertical="Bottom"/>
<Borders/>
<Font ss:FontName="Arial" x:Family="Swiss" ss:Size="9"/>
<NumberFormat ss:Format="Short Date"/>
</Style>
<Style ss:ID="s71">
<Alignment ss:Horizontal="Left" ss:Vertical="Bottom"/>
<Borders/>
<Font ss:FontName="Arial" x:Family="Swiss" ss:Size="9"/>
<NumberFormat/>
</Style>
<Style ss:ID="s72">
<Alignment ss:Horizontal="Left" ss:Vertical="Bottom"/>
<Borders>
<Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="3"/>
<Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="3"/>
<Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="3"/>
<Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="3"/>
</Borders>
<Font ss:FontName="Arial" x:Family="Swiss" ss:Size="9" ss:Bold="1"/>
<Interior/>
</Style>
<Style ss:ID="s73">
<Alignment ss:Horizontal="Left" ss:Vertical="Bottom"/>
<Borders>
<Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="3"/>
<Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="3"/>
</Borders>
<Font ss:FontName="Arial" x:Family="Swiss" ss:Size="9"/>
</Style>
<Style ss:ID="s74">
<Borders>
<Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="3"/>
<Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="3"/>
<Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="3"/>
<Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="3"/>
</Borders>
<Font ss:FontName="Arial" x:Family="Swiss" ss:Size="9" ss:Bold="1"/>
</Style>
<Style ss:ID="s75">
<Borders>
<Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="3"/>
<Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="3"/>
</Borders>
<Font ss:FontName="Arial" x:Family="Swiss" ss:Size="9"/>
</Style>
<Style ss:ID="s76">
<Font ss:FontName="Arial" x:Family="Swiss" ss:Size="9" ss:Bold="1"/>
</Style>
<Style ss:ID="s77">
<Alignment ss:Horizontal="Left" ss:Vertical="Bottom"/>
<Borders>
<Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="3"/>
<Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="3"/>
</Borders>
<Font ss:FontName="Arial" x:Family="Swiss" ss:Size="9"/>
<NumberFormat ss:Format="0"/>
</Style>
<Style ss:ID="s78">
<Alignment ss:Horizontal="Left" ss:Vertical="Bottom"/>
<Borders/>
<Font ss:FontName="Arial" x:Family="Swiss" ss:Size="9"/>
</Style>
<Style ss:ID="s79">
<Alignment ss:Horizontal="Left" ss:Vertical="Bottom"/>
<Borders/>
<Font ss:FontName="Arial" x:Family="Swiss" ss:Size="9"/>
<NumberFormat ss:Format="0"/>
</Style>
<Style ss:ID="s80">
<Alignment ss:Horizontal="Left" ss:Vertical="Bottom"/>
<Font ss:FontName="Arial" x:Family="Swiss" ss:Size="9"/>
<NumberFormat ss:Format="@"/>
</Style>
</Styles>
<Worksheet ss:Name="skynetBase">
<Names>
<NamedRange ss:Name="_FilterDatabase"
ss:RefersTo="=skynetBase!R25C1:R26C4"
ss:Hidden="1"/>
</Names>
<Table ss:ExpandedColumnCount="10" ss:ExpandedRowCount="31"
x:FullColumns="1"
x:FullRows="1" ss:StyleID="s62" ss:DefaultRowHeight="12">
<Column ss:StyleID="s62" ss:AutoFitWidth="0" ss:Width="339"/>
<Column ss:StyleID="s62" ss:Width="294.75"/>
<Column ss:StyleID="s62" ss:Width="108.75"/>
<Column ss:StyleID="s62" ss:AutoFitWidth="0" ss:Width="101.25"/>
<Column ss:StyleID="s62" ss:Width="132.75"/>
<Column ss:StyleID="s62" ss:Width="71.25"/>
<Column ss:StyleID="s62" ss:AutoFitWidth="0" ss:Width="101.25"/>
<Column ss:StyleID="s62" ss:Width="58.5"/>
<Column ss:StyleID="s62" ss:Width="75.75"/>
<Column ss:StyleID="s62" ss:Width="56.25"/>
<Row ss:AutoFitHeight="0" ss:Height="105">
<Cell ss:MergeAcross="1" ss:StyleID="s64"><Data ss:Type="String">#
Copyright (c) 2004, 2007 Boeing.&#10;# All rights reserved. This program
and the accompanying materials&#10;# are made available under the terms of
the Eclipse Public License v1.0&#10;# which accompanies this distribution,
and is available at&#10;# http://www.eclipse.org/legal/epl-v10.html&#10;#
&#10;# Contributors:&#10;# Boeing - initial API and
implementation</Data></Cell>
</Row>
<Row ss:AutoFitHeight="0" ss:Height="15">
<Cell ss:StyleID="s65"/>
<Cell ss:StyleID="s65"/>
</Row>
<Row ss:AutoFitHeight="0" ss:Height="14.25">
<Cell ss:StyleID="s66"><Data ss:Type="String">Factory
Class</Data></Cell>
<Cell ss:StyleID="s66"><Data ss:Type="String">Artifact Type
Name</Data></Cell>
<Cell ss:StyleID="s66"><Data ss:Type="String">Super Type
Name</Data></Cell>
</Row>
<Row ss:AutoFitHeight="0" ss:Height="13.5">
<Cell ss:StyleID="s67"><Data
ss:Type="String"> org.eclipse.osee.framework.skynet.core.artifact.factory.Arti factFactory </Data></Cell>
<Cell ss:StyleID="s68"><Data ss:Type="String">Signal</Data></Cell>
<Cell ss:StyleID="s69"><Data ss:Type="String">Artifact</Data></Cell>
</Row>
<Row ss:AutoFitHeight="0">
<Cell ss:StyleID="s70"/>
<Cell ss:StyleID="s71"/>
<Cell ss:StyleID="s70"/>
</Row>
<Row ss:AutoFitHeight="0" ss:Height="13.5"/>
<Row ss:AutoFitHeight="0" ss:Height="14.25">
<Cell ss:StyleID="s66"><Data ss:Type="String">Attribute Base
Type</Data></Cell>
<Cell ss:StyleID="s66"><Data ss:Type="String">Attribute Data
Provider</Data></Cell>
<Cell ss:StyleID="s66"><Data ss:Type="String">Attribute
Name</Data></Cell>
<Cell ss:StyleID="s66"><Data ss:Type="String">File
Extension</Data></Cell>
<Cell ss:StyleID="s66"><Data ss:Type="String">Tagger ID</Data></Cell>
<Cell ss:StyleID="s66"><Data ss:Type="String">Default
Value</Data></Cell>
<Cell ss:StyleID="s66"><Data ss:Type="String">Validity
Xml</Data></Cell>
<Cell ss:StyleID="s72"><Data ss:Type="String">Min
Occurrence</Data></Cell>
<Cell ss:StyleID="s72"><Data ss:Type="String">Max
Occurrence</Data></Cell>
<Cell ss:StyleID="s72"><Data ss:Type="String">Tip Text</Data></Cell>
</Row>
<Row ss:AutoFitHeight="0" ss:Height="12.75">
<Cell ss:StyleID="s73"><Data
ss:Type="String">org.eclipse.osee.framework.skynet.core.StringAttribute </Data></Cell>
<Cell ss:StyleID="s73"><Data
ss:Type="String"> org.eclipse.osee.framework.skynet.core.DefaultAttributeDataP rovider </Data></Cell>
<Cell ss:StyleID="s68"><Data ss:Type="String">Name</Data></Cell>
<Cell ss:StyleID="s68"/>
<Cell ss:StyleID="s68"><Data
ss:Type="String">DefaultAttributeTaggerProvider</Data></Cell >
<Cell ss:StyleID="s73"><Data ss:Type="String">unnamed</Data></Cell>
<Cell ss:StyleID="s73"><Data
ss:Type="String">&lt;not&gt;null&lt;/not&gt; </Data></Cell>
<Cell ss:StyleID="s73"><Data ss:Type="Number">1</Data></Cell>
<Cell ss:StyleID="s73"><Data ss:Type="Number">1</Data></Cell>
<Cell ss:StyleID="s73"><Data ss:Type="String">Descriptive
Name</Data></Cell>
</Row>
<Row ss:Index="11" ss:AutoFitHeight="0" ss:Height="11.25"/>
<Row ss:AutoFitHeight="0">
<Cell ss:StyleID="s74"><Data ss:Type="String">Artifact Type
Name</Data></Cell>
<Cell ss:StyleID="s74"><Data ss:Type="String">Attribute
Name</Data></Cell>
</Row>
<Row ss:AutoFitHeight="0" ss:Height="13.5">
<Cell ss:StyleID="s68"><Data ss:Type="String">Signal</Data></Cell>
<Cell ss:StyleID="s68"><Data ss:Type="String">Name</Data></Cell>
</Row>
<Row ss:AutoFitHeight="0">
<Cell ss:StyleID="s71"/>
<Cell ss:StyleID="s71"/>
</Row>
<Row ss:AutoFitHeight="0" ss:Height="14.25"/>
<Row ss:AutoFitHeight="0" ss:Height="13.5">
<Cell><Data ss:Type="String"># Side &quot;A/B&quot; Name should be a
free text descriptive name for the user - links between sides and artifact
types are performed in the table below.</Data></Cell>
</Row>
<Row ss:AutoFitHeight="0" ss:Height="13.5">
<Cell ss:StyleID="s66"><Data ss:Type="String">Relation type
name</Data></Cell>
<Cell ss:StyleID="s66"><Data ss:Type="String">Side A Name</Data></Cell>
<Cell ss:StyleID="s66"><Data ss:Type="String">A to B
Phrase</Data></Cell>
<Cell ss:StyleID="s72"><Data ss:Type="String">Side B Name</Data></Cell>
<Cell ss:StyleID="s72"><Data ss:Type="String">B to A
Phrase</Data></Cell>
<Cell ss:StyleID="s72"><Data ss:Type="String">Short Name</Data></Cell>
<Cell ss:StyleID="s72"><Data ss:Type="String">Ordered</Data></Cell>
</Row>
<Row ss:AutoFitHeight="0">
<Cell ss:StyleID="s73"><Data ss:Type="String">Data flow
(in)</Data></Cell>
<Cell ss:StyleID="s73"><Data ss:Type="String">Signal</Data></Cell>
<Cell ss:StyleID="s73"><Data ss:Type="String">consumes</Data></Cell>
<Cell ss:StyleID="s73"><Data ss:Type="String">Component</Data></Cell>
<Cell ss:StyleID="s73"><Data ss:Type="String">is consumed
by</Data></Cell>
<Cell ss:StyleID="s73"><Data ss:Type="String">DFI</Data></Cell>
<Cell ss:StyleID="s73"><Data ss:Type="String">No</Data></Cell>
</Row>
<Row ss:AutoFitHeight="0">
<Cell ss:StyleID="s73"><Data ss:Type="String">Data flow
(out)</Data></Cell>
<Cell ss:StyleID="s73"><Data ss:Type="String">Component</Data></Cell>
<Cell ss:StyleID="s73"><Data ss:Type="String">produces</Data></Cell>
<Cell ss:StyleID="s73"><Data ss:Type="String">Signal</Data></Cell>
<Cell ss:StyleID="s73"><Data ss:Type="String">is produced
by</Data></Cell>
<Cell ss:StyleID="s73"><Data ss:Type="String">DFO</Data></Cell>
<Cell ss:StyleID="s73"><Data ss:Type="String">No</Data></Cell>
</Row>
<Row ss:AutoFitHeight="0" ss:Height="13.5" ss:Span="1"/>
<Row ss:Index="22" ss:AutoFitHeight="0" ss:Height="13.5">
<Cell ss:StyleID="s76"><Data ss:Type="String">#the first max values
specified for an &lt;artifact type, relation type&gt; pair is used, so put
the constraint for a concreate type before the constraint for a
supertype</Data></Cell>
</Row>
<Row ss:AutoFitHeight="0" ss:Height="13.5">
<Cell><Data ss:Type="String"># An artifact of type &quot;Artifact
Type&quot; can be on side &quot;A&quot;, &quot;Side A Max&quot; number of
times for relation links of type &quot;Relation Type&quot;.</Data></Cell>
</Row>
<Row ss:AutoFitHeight="0" ss:Height="13.5">
<Cell><Data ss:Type="String"># An artifact of type &quot;Artifact
Type&quot; can be on side &quot;B&quot;, &quot;Side B Max&quot; number of
times for relation links of type &quot;Relation Type&quot;.</Data></Cell>
</Row>
<Row ss:AutoFitHeight="0" ss:Height="13.5">
<Cell ss:StyleID="s66"><Data ss:Type="String">Artifact
Type</Data><NamedCell
ss:Name="_FilterDatabase"/></Cell>
<Cell ss:StyleID="s66"><Data ss:Type="String">Relation
Type</Data><NamedCell
ss:Name="_FilterDatabase"/></Cell>
<Cell ss:StyleID="s66"><Data ss:Type="String">Side A
Max</Data><NamedCell
ss:Name="_FilterDatabase"/></Cell>
<Cell ss:StyleID="s72"><Data ss:Type="String">Side B
Max</Data><NamedCell
ss:Name="_FilterDatabase"/></Cell>
</Row>
<Row ss:AutoFitHeight="0" ss:Height="13.5">
<Cell ss:StyleID="s75"><Data ss:Type="String">Signal</Data><NamedCell
ss:Name="_FilterDatabase"/></Cell>
<Cell ss:StyleID="s73"><Data ss:Type="String">Data flow
(in)</Data><NamedCell
ss:Name="_FilterDatabase"/></Cell>
<Cell ss:StyleID="s77"><Data ss:Type="Number">1</Data><NamedCell
ss:Name="_FilterDatabase"/></Cell>
<Cell ss:StyleID="s77"><Data
ss:Type="String">UNLIMITED</Data><NamedCell
ss:Name="_FilterDatabase"/></Cell>
</Row>
<Row ss:AutoFitHeight="0" ss:Height="13.5">
<Cell ss:StyleID="s75"><Data ss:Type="String">Component</Data></Cell>
<Cell ss:StyleID="s73"><Data ss:Type="String">Data flow
(out)</Data></Cell>
<Cell ss:StyleID="s77"><Data ss:Type="String">UNLIMITED</Data></Cell>
<Cell ss:StyleID="s77"><Data ss:Type="Number">1</Data></Cell>
</Row>
<Row ss:AutoFitHeight="0" ss:Height="13.5">
<Cell ss:StyleID="s71"/>
<Cell ss:StyleID="s78"/>
<Cell ss:StyleID="s79"/>
<Cell ss:StyleID="s79"/>
</Row>
<Row ss:AutoFitHeight="0" ss:Height="13.5">
<Cell ss:StyleID="s71"/>
<Cell ss:StyleID="s78"/>
<Cell ss:StyleID="s79"/>
<Cell ss:StyleID="s79"/>
</Row>
<Row ss:AutoFitHeight="0" ss:Height="13.5"/>
<Row ss:AutoFitHeight="0">
<Cell ss:StyleID="s80"><Data ss:Type="String">#need method to record
whether allocation has been verified as complete and re-verify if changes
potentially impact the allocation</Data></Cell>
</Row>
</Table>
<WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
<PageSetup>
<Layout x:Orientation="Landscape"/>
</PageSetup>
<Unsynced/>
<Print>
<ValidPrinterInfo/>
<HorizontalResolution>600</HorizontalResolution>
<VerticalResolution>600</VerticalResolution>
</Print>
<Selected/>
<Panes>
<Pane>
<Number>3</Number>
<ActiveRow>13</ActiveRow>
<RangeSelection>R14:R15</RangeSelection>
</Pane>
</Panes>
<ProtectObjects>False</ProtectObjects>
<ProtectScenarios>False</ProtectScenarios>
</WorksheetOptions>
<Sorting xmlns="urn:schemas-microsoft-com:office:excel">
<Sort>Relation Type</Sort>
</Sorting>
</Worksheet>
</Workbook>
Re: Artifact type exists but can't create instance [message #16177 is a reply to message #15142] Tue, 30 June 2009 16:03 Go to previous messageGo to next message
Mark D-B is currently offline Mark D-BFriend
Messages: 188
Registered: July 2009
Senior Member
The problem was that the Default Hierarchy relationship was not created
for the new artifact type. The issue was resolved by editing the database
table osee_valid_relations directly (naughty, I know!).

I thought that the relationship should be inherited though as Signal was
based off the Super Type 'Artifact'?
Re: Artifact type exists but can't create instance [message #16259 is a reply to message #16177] Fri, 17 July 2009 02:22 Go to previous messageGo to next message
Ryan D. Brooks is currently offline Ryan D. BrooksFriend
Messages: 100
Registered: July 2009
Senior Member
Mark,

Currently, when importing type data, it is necessary to import a directory
containing all the spreadsheets with relevant type data. For example,
since the Default Hierarchical relationship is defined in
/org.eclipse.osee.framework.skynet.core/support/OseeTypes_Pr ogramAndCommon.xml
you need that spreadsheet to be read as part of the import along your your
custom type definitions in order for the inheritance to work. This is
because the inheritance is at import time only. There are plans to
support true type inheritance in the database schema in the future.

Thanks,
Ryan


Thanks,
Ryan Brooks
Re: Artifact type exists but can't create instance [message #16310 is a reply to message #16259] Fri, 17 July 2009 13:07 Go to previous message
Mark D-B is currently offline Mark D-BFriend
Messages: 188
Registered: July 2009
Senior Member
Thanks Ryan, much appreciated.
Re: Artifact type exists but can't create instance [message #573593 is a reply to message #14539] Thu, 07 May 2009 19:40 Go to previous message
Roberto Escobar is currently offline Roberto EscobarFriend
Messages: 10
Registered: July 2009
Junior Member
I am not sure what could be the problem. Have you checked in the Error log
to see if a problem is being reported. If you find an exception please
post so I can follow up.

Thanks
Re: Artifact type exists but can't create instance [message #573648 is a reply to message #14774] Fri, 08 May 2009 16:28 Go to previous message
Mark D-B is currently offline Mark D-BFriend
Messages: 188
Registered: July 2009
Senior Member
There's nothing appearing in the .log files in the configuration
directories for either the application server or client. Is there anywhere
else that error logs are written please?
Re: Artifact type exists but can't create instance [message #573737 is a reply to message #14864] Tue, 12 May 2009 15:12 Go to previous message
Mark D-B is currently offline Mark D-BFriend
Messages: 188
Registered: July 2009
Senior Member
Can anyone see what I've done wrong in the XML below that was supposed to
add the new artifact "Signal" please?

<?xml version="1.0"?>
<?mso-application progid="Excel.Sheet"?>
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:html="http://www.w3.org/TR/REC-html40">
<DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
<Author>Robert Fisher</Author>
<LastAuthor>Mark Dawson-Butterworth</LastAuthor>
<LastPrinted>2006-03-15T03:49:16Z</LastPrinted>
<Created>2005-07-01T21:31:12Z</Created>
<LastSaved>2009-05-01T12:32:37Z</LastSaved>
<Company>The Boeing Company</Company>
<Version>12.00</Version>
</DocumentProperties>
<OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office">
<DoNotRelyOnCSS/>
</OfficeDocumentSettings>
<ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">
<WindowHeight>6690</WindowHeight>
<WindowWidth>15480</WindowWidth>
<WindowTopX>360</WindowTopX>
<WindowTopY>4530</WindowTopY>
<ProtectStructure>False</ProtectStructure>
<ProtectWindows>False</ProtectWindows>
</ExcelWorkbook>
<Styles>
<Style ss:ID="Default" ss:Name="Normal">
<Alignment ss:Vertical="Bottom"/>
<Borders/>
<Font ss:FontName="Arial"/>
<Interior/>
<NumberFormat/>
<Protection/>
</Style>
<Style ss:ID="s62">
<Font ss:FontName="Arial" x:Family="Swiss" ss:Size="9"/>
</Style>
<Style ss:ID="s64">
<Alignment ss:Horizontal="Left" ss:Vertical="Bottom" ss:WrapText="1"/>
<Borders/>
<Font ss:FontName="Arial" x:Family="Swiss" ss:Size="9"/>
</Style>
<Style ss:ID="s65">
<Alignment ss:Horizontal="Left" ss:Vertical="Bottom" ss:WrapText="1"/>
<Borders>
<Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="3"/>
</Borders>
<Font ss:FontName="Arial" x:Family="Swiss" ss:Size="9"/>
</Style>
<Style ss:ID="s66">
<Alignment ss:Horizontal="Left" ss:Vertical="Bottom"/>
<Borders>
<Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="3"/>
<Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="3"/>
<Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="3"/>
<Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="3"/>
</Borders>
<Font ss:FontName="Arial" x:Family="Swiss" ss:Size="9" ss:Bold="1"/>
</Style>
<Style ss:ID="s67">
<Borders>
<Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="3"/>
</Borders>
<Font ss:FontName="Arial" x:Family="Swiss" ss:Size="9"/>
</Style>
<Style ss:ID="s68">
<Alignment ss:Horizontal="Left" ss:Vertical="Bottom"/>
<Borders>
<Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="3"/>
<Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="3"/>
</Borders>
<Font ss:FontName="Arial" x:Family="Swiss" ss:Size="9"/>
<NumberFormat/>
</Style>
<Style ss:ID="s69">
<Alignment ss:Horizontal="Left" ss:Vertical="Bottom"/>
<Borders>
<Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="3"/>
<Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="3"/>
</Borders>
<Font ss:FontName="Arial" x:Family="Swiss" ss:Size="9"/>
<NumberFormat ss:Format="Short Date"/>
</Style>
<Style ss:ID="s70">
<Alignment ss:Horizontal="Left" ss:Vertical="Bottom"/>
<Borders/>
<Font ss:FontName="Arial" x:Family="Swiss" ss:Size="9"/>
<NumberFormat ss:Format="Short Date"/>
</Style>
<Style ss:ID="s71">
<Alignment ss:Horizontal="Left" ss:Vertical="Bottom"/>
<Borders/>
<Font ss:FontName="Arial" x:Family="Swiss" ss:Size="9"/>
<NumberFormat/>
</Style>
<Style ss:ID="s72">
<Alignment ss:Horizontal="Left" ss:Vertical="Bottom"/>
<Borders>
<Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="3"/>
<Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="3"/>
<Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="3"/>
<Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="3"/>
</Borders>
<Font ss:FontName="Arial" x:Family="Swiss" ss:Size="9" ss:Bold="1"/>
<Interior/>
</Style>
<Style ss:ID="s73">
<Alignment ss:Horizontal="Left" ss:Vertical="Bottom"/>
<Borders>
<Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="3"/>
<Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="3"/>
</Borders>
<Font ss:FontName="Arial" x:Family="Swiss" ss:Size="9"/>
</Style>
<Style ss:ID="s74">
<Borders>
<Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="3"/>
<Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="3"/>
<Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="3"/>
<Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="3"/>
</Borders>
<Font ss:FontName="Arial" x:Family="Swiss" ss:Size="9" ss:Bold="1"/>
</Style>
<Style ss:ID="s75">
<Borders>
<Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="3"/>
<Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="3"/>
</Borders>
<Font ss:FontName="Arial" x:Family="Swiss" ss:Size="9"/>
</Style>
<Style ss:ID="s76">
<Font ss:FontName="Arial" x:Family="Swiss" ss:Size="9" ss:Bold="1"/>
</Style>
<Style ss:ID="s77">
<Alignment ss:Horizontal="Left" ss:Vertical="Bottom"/>
<Borders>
<Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="3"/>
<Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="3"/>
</Borders>
<Font ss:FontName="Arial" x:Family="Swiss" ss:Size="9"/>
<NumberFormat ss:Format="0"/>
</Style>
<Style ss:ID="s78">
<Alignment ss:Horizontal="Left" ss:Vertical="Bottom"/>
<Borders/>
<Font ss:FontName="Arial" x:Family="Swiss" ss:Size="9"/>
</Style>
<Style ss:ID="s79">
<Alignment ss:Horizontal="Left" ss:Vertical="Bottom"/>
<Borders/>
<Font ss:FontName="Arial" x:Family="Swiss" ss:Size="9"/>
<NumberFormat ss:Format="0"/>
</Style>
<Style ss:ID="s80">
<Alignment ss:Horizontal="Left" ss:Vertical="Bottom"/>
<Font ss:FontName="Arial" x:Family="Swiss" ss:Size="9"/>
<NumberFormat ss:Format="@"/>
</Style>
</Styles>
<Worksheet ss:Name="skynetBase">
<Names>
<NamedRange ss:Name="_FilterDatabase"
ss:RefersTo="=skynetBase!R25C1:R26C4"
ss:Hidden="1"/>
</Names>
<Table ss:ExpandedColumnCount="10" ss:ExpandedRowCount="31"
x:FullColumns="1"
x:FullRows="1" ss:StyleID="s62" ss:DefaultRowHeight="12">
<Column ss:StyleID="s62" ss:AutoFitWidth="0" ss:Width="339"/>
<Column ss:StyleID="s62" ss:Width="294.75"/>
<Column ss:StyleID="s62" ss:Width="108.75"/>
<Column ss:StyleID="s62" ss:AutoFitWidth="0" ss:Width="101.25"/>
<Column ss:StyleID="s62" ss:Width="132.75"/>
<Column ss:StyleID="s62" ss:Width="71.25"/>
<Column ss:StyleID="s62" ss:AutoFitWidth="0" ss:Width="101.25"/>
<Column ss:StyleID="s62" ss:Width="58.5"/>
<Column ss:StyleID="s62" ss:Width="75.75"/>
<Column ss:StyleID="s62" ss:Width="56.25"/>
<Row ss:AutoFitHeight="0" ss:Height="105">
<Cell ss:MergeAcross="1" ss:StyleID="s64"><Data ss:Type="String">#
Copyright (c) 2004, 2007 Boeing.&#10;# All rights reserved. This program
and the accompanying materials&#10;# are made available under the terms of
the Eclipse Public License v1.0&#10;# which accompanies this distribution,
and is available at&#10;# http://www.eclipse.org/legal/epl-v10.html&#10;#
&#10;# Contributors:&#10;# Boeing - initial API and
implementation</Data></Cell>
</Row>
<Row ss:AutoFitHeight="0" ss:Height="15">
<Cell ss:StyleID="s65"/>
<Cell ss:StyleID="s65"/>
</Row>
<Row ss:AutoFitHeight="0" ss:Height="14.25">
<Cell ss:StyleID="s66"><Data ss:Type="String">Factory
Class</Data></Cell>
<Cell ss:StyleID="s66"><Data ss:Type="String">Artifact Type
Name</Data></Cell>
<Cell ss:StyleID="s66"><Data ss:Type="String">Super Type
Name</Data></Cell>
</Row>
<Row ss:AutoFitHeight="0" ss:Height="13.5">
<Cell ss:StyleID="s67"><Data
ss:Type="String"> org.eclipse.osee.framework.skynet.core.artifact.factory.Arti factFactory </Data></Cell>
<Cell ss:StyleID="s68"><Data ss:Type="String">Signal</Data></Cell>
<Cell ss:StyleID="s69"><Data ss:Type="String">Artifact</Data></Cell>
</Row>
<Row ss:AutoFitHeight="0">
<Cell ss:StyleID="s70"/>
<Cell ss:StyleID="s71"/>
<Cell ss:StyleID="s70"/>
</Row>
<Row ss:AutoFitHeight="0" ss:Height="13.5"/>
<Row ss:AutoFitHeight="0" ss:Height="14.25">
<Cell ss:StyleID="s66"><Data ss:Type="String">Attribute Base
Type</Data></Cell>
<Cell ss:StyleID="s66"><Data ss:Type="String">Attribute Data
Provider</Data></Cell>
<Cell ss:StyleID="s66"><Data ss:Type="String">Attribute
Name</Data></Cell>
<Cell ss:StyleID="s66"><Data ss:Type="String">File
Extension</Data></Cell>
<Cell ss:StyleID="s66"><Data ss:Type="String">Tagger ID</Data></Cell>
<Cell ss:StyleID="s66"><Data ss:Type="String">Default
Value</Data></Cell>
<Cell ss:StyleID="s66"><Data ss:Type="String">Validity
Xml</Data></Cell>
<Cell ss:StyleID="s72"><Data ss:Type="String">Min
Occurrence</Data></Cell>
<Cell ss:StyleID="s72"><Data ss:Type="String">Max
Occurrence</Data></Cell>
<Cell ss:StyleID="s72"><Data ss:Type="String">Tip Text</Data></Cell>
</Row>
<Row ss:AutoFitHeight="0" ss:Height="12.75">
<Cell ss:StyleID="s73"><Data
ss:Type="String">org.eclipse.osee.framework.skynet.core.StringAttribute </Data></Cell>
<Cell ss:StyleID="s73"><Data
ss:Type="String"> org.eclipse.osee.framework.skynet.core.DefaultAttributeDataP rovider </Data></Cell>
<Cell ss:StyleID="s68"><Data ss:Type="String">Name</Data></Cell>
<Cell ss:StyleID="s68"/>
<Cell ss:StyleID="s68"><Data
ss:Type="String">DefaultAttributeTaggerProvider</Data></Cell >
<Cell ss:StyleID="s73"><Data ss:Type="String">unnamed</Data></Cell>
<Cell ss:StyleID="s73"><Data
ss:Type="String">&lt;not&gt;null&lt;/not&gt; </Data></Cell>
<Cell ss:StyleID="s73"><Data ss:Type="Number">1</Data></Cell>
<Cell ss:StyleID="s73"><Data ss:Type="Number">1</Data></Cell>
<Cell ss:StyleID="s73"><Data ss:Type="String">Descriptive
Name</Data></Cell>
</Row>
<Row ss:Index="11" ss:AutoFitHeight="0" ss:Height="11.25"/>
<Row ss:AutoFitHeight="0">
<Cell ss:StyleID="s74"><Data ss:Type="String">Artifact Type
Name</Data></Cell>
<Cell ss:StyleID="s74"><Data ss:Type="String">Attribute
Name</Data></Cell>
</Row>
<Row ss:AutoFitHeight="0" ss:Height="13.5">
<Cell ss:StyleID="s68"><Data ss:Type="String">Signal</Data></Cell>
<Cell ss:StyleID="s68"><Data ss:Type="String">Name</Data></Cell>
</Row>
<Row ss:AutoFitHeight="0">
<Cell ss:StyleID="s71"/>
<Cell ss:StyleID="s71"/>
</Row>
<Row ss:AutoFitHeight="0" ss:Height="14.25"/>
<Row ss:AutoFitHeight="0" ss:Height="13.5">
<Cell><Data ss:Type="String"># Side &quot;A/B&quot; Name should be a
free text descriptive name for the user - links between sides and artifact
types are performed in the table below.</Data></Cell>
</Row>
<Row ss:AutoFitHeight="0" ss:Height="13.5">
<Cell ss:StyleID="s66"><Data ss:Type="String">Relation type
name</Data></Cell>
<Cell ss:StyleID="s66"><Data ss:Type="String">Side A Name</Data></Cell>
<Cell ss:StyleID="s66"><Data ss:Type="String">A to B
Phrase</Data></Cell>
<Cell ss:StyleID="s72"><Data ss:Type="String">Side B Name</Data></Cell>
<Cell ss:StyleID="s72"><Data ss:Type="String">B to A
Phrase</Data></Cell>
<Cell ss:StyleID="s72"><Data ss:Type="String">Short Name</Data></Cell>
<Cell ss:StyleID="s72"><Data ss:Type="String">Ordered</Data></Cell>
</Row>
<Row ss:AutoFitHeight="0">
<Cell ss:StyleID="s73"><Data ss:Type="String">Data flow
(in)</Data></Cell>
<Cell ss:StyleID="s73"><Data ss:Type="String">Signal</Data></Cell>
<Cell ss:StyleID="s73"><Data ss:Type="String">consumes</Data></Cell>
<Cell ss:StyleID="s73"><Data ss:Type="String">Component</Data></Cell>
<Cell ss:StyleID="s73"><Data ss:Type="String">is consumed
by</Data></Cell>
<Cell ss:StyleID="s73"><Data ss:Type="String">DFI</Data></Cell>
<Cell ss:StyleID="s73"><Data ss:Type="String">No</Data></Cell>
</Row>
<Row ss:AutoFitHeight="0">
<Cell ss:StyleID="s73"><Data ss:Type="String">Data flow
(out)</Data></Cell>
<Cell ss:StyleID="s73"><Data ss:Type="String">Component</Data></Cell>
<Cell ss:StyleID="s73"><Data ss:Type="String">produces</Data></Cell>
<Cell ss:StyleID="s73"><Data ss:Type="String">Signal</Data></Cell>
<Cell ss:StyleID="s73"><Data ss:Type="String">is produced
by</Data></Cell>
<Cell ss:StyleID="s73"><Data ss:Type="String">DFO</Data></Cell>
<Cell ss:StyleID="s73"><Data ss:Type="String">No</Data></Cell>
</Row>
<Row ss:AutoFitHeight="0" ss:Height="13.5" ss:Span="1"/>
<Row ss:Index="22" ss:AutoFitHeight="0" ss:Height="13.5">
<Cell ss:StyleID="s76"><Data ss:Type="String">#the first max values
specified for an &lt;artifact type, relation type&gt; pair is used, so put
the constraint for a concreate type before the constraint for a
supertype</Data></Cell>
</Row>
<Row ss:AutoFitHeight="0" ss:Height="13.5">
<Cell><Data ss:Type="String"># An artifact of type &quot;Artifact
Type&quot; can be on side &quot;A&quot;, &quot;Side A Max&quot; number of
times for relation links of type &quot;Relation Type&quot;.</Data></Cell>
</Row>
<Row ss:AutoFitHeight="0" ss:Height="13.5">
<Cell><Data ss:Type="String"># An artifact of type &quot;Artifact
Type&quot; can be on side &quot;B&quot;, &quot;Side B Max&quot; number of
times for relation links of type &quot;Relation Type&quot;.</Data></Cell>
</Row>
<Row ss:AutoFitHeight="0" ss:Height="13.5">
<Cell ss:StyleID="s66"><Data ss:Type="String">Artifact
Type</Data><NamedCell
ss:Name="_FilterDatabase"/></Cell>
<Cell ss:StyleID="s66"><Data ss:Type="String">Relation
Type</Data><NamedCell
ss:Name="_FilterDatabase"/></Cell>
<Cell ss:StyleID="s66"><Data ss:Type="String">Side A
Max</Data><NamedCell
ss:Name="_FilterDatabase"/></Cell>
<Cell ss:StyleID="s72"><Data ss:Type="String">Side B
Max</Data><NamedCell
ss:Name="_FilterDatabase"/></Cell>
</Row>
<Row ss:AutoFitHeight="0" ss:Height="13.5">
<Cell ss:StyleID="s75"><Data ss:Type="String">Signal</Data><NamedCell
ss:Name="_FilterDatabase"/></Cell>
<Cell ss:StyleID="s73"><Data ss:Type="String">Data flow
(in)</Data><NamedCell
ss:Name="_FilterDatabase"/></Cell>
<Cell ss:StyleID="s77"><Data ss:Type="Number">1</Data><NamedCell
ss:Name="_FilterDatabase"/></Cell>
<Cell ss:StyleID="s77"><Data
ss:Type="String">UNLIMITED</Data><NamedCell
ss:Name="_FilterDatabase"/></Cell>
</Row>
<Row ss:AutoFitHeight="0" ss:Height="13.5">
<Cell ss:StyleID="s75"><Data ss:Type="String">Component</Data></Cell>
<Cell ss:StyleID="s73"><Data ss:Type="String">Data flow
(out)</Data></Cell>
<Cell ss:StyleID="s77"><Data ss:Type="String">UNLIMITED</Data></Cell>
<Cell ss:StyleID="s77"><Data ss:Type="Number">1</Data></Cell>
</Row>
<Row ss:AutoFitHeight="0" ss:Height="13.5">
<Cell ss:StyleID="s71"/>
<Cell ss:StyleID="s78"/>
<Cell ss:StyleID="s79"/>
<Cell ss:StyleID="s79"/>
</Row>
<Row ss:AutoFitHeight="0" ss:Height="13.5">
<Cell ss:StyleID="s71"/>
<Cell ss:StyleID="s78"/>
<Cell ss:StyleID="s79"/>
<Cell ss:StyleID="s79"/>
</Row>
<Row ss:AutoFitHeight="0" ss:Height="13.5"/>
<Row ss:AutoFitHeight="0">
<Cell ss:StyleID="s80"><Data ss:Type="String">#need method to record
whether allocation has been verified as complete and re-verify if changes
potentially impact the allocation</Data></Cell>
</Row>
</Table>
<WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
<PageSetup>
<Layout x:Orientation="Landscape"/>
</PageSetup>
<Unsynced/>
<Print>
<ValidPrinterInfo/>
<HorizontalResolution>600</HorizontalResolution>
<VerticalResolution>600</VerticalResolution>
</Print>
<Selected/>
<Panes>
<Pane>
<Number>3</Number>
<ActiveRow>13</ActiveRow>
<RangeSelection>R14:R15</RangeSelection>
</Pane>
</Panes>
<ProtectObjects>False</ProtectObjects>
<ProtectScenarios>False</ProtectScenarios>
</WorksheetOptions>
<Sorting xmlns="urn:schemas-microsoft-com:office:excel">
<Sort>Relation Type</Sort>
</Sorting>
</Worksheet>
</Workbook>
Re: Artifact type exists but can't create instance [message #574222 is a reply to message #15142] Tue, 30 June 2009 16:03 Go to previous message
Mark D-B is currently offline Mark D-BFriend
Messages: 188
Registered: July 2009
Senior Member
The problem was that the Default Hierarchy relationship was not created
for the new artifact type. The issue was resolved by editing the database
table osee_valid_relations directly (naughty, I know!).

I thought that the relationship should be inherited though as Signal was
based off the Super Type 'Artifact'?
Re: Artifact type exists but can't create instance [message #574394 is a reply to message #16177] Fri, 17 July 2009 02:22 Go to previous message
Ryan D. Brooks is currently offline Ryan D. BrooksFriend
Messages: 100
Registered: July 2009
Senior Member
Mark,

Currently, when importing type data, it is necessary to import a directory
containing all the spreadsheets with relevant type data. For example,
since the Default Hierarchical relationship is defined in
/org.eclipse.osee.framework.skynet.core/support/OseeTypes_Pr ogramAndCommon.xml
you need that spreadsheet to be read as part of the import along your your
custom type definitions in order for the inheritance to work. This is
because the inheritance is at import time only. There are plans to
support true type inheritance in the database schema in the future.

Thanks,
Ryan


Thanks,
Ryan Brooks
Re: Artifact type exists but can't create instance [message #574496 is a reply to message #16259] Fri, 17 July 2009 13:07 Go to previous message
Mark D-B is currently offline Mark D-BFriend
Messages: 188
Registered: July 2009
Senior Member
Thanks Ryan, much appreciated.
Previous Topic:Native Editor generates an exception
Next Topic:Getting an error on some branches when committed
Goto Forum:
  


Current Time: Wed Dec 04 10:51:14 GMT 2024

Powered by FUDForum. Page generated in 0.05660 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top