Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

When you open a process design page and click on Databases, you will see a list of all relational database schemas tied to that process. If there is no schema yet you can simply click Import

...

Click on edit button:

Name
Will be updated.

Prefix
Will be updated. 

Click on details button:

Fields

Name
Will be updated.  

Type
Will be updated.  

  • Limited text
  • Unlimited text
  • Integer number
  • Floating number
  • Money
  • Yes/No
  • Date/Time
  • Unique identifier
  • Xml
  • Binary

Size
Will be updated.  

Languages
Will be updated.  

General

 

Primary Key
Will be updated.  

 

Authorize By
Will be updated.  

Relations

Click on add new relation button:

Name
Will be updated.  

Type
Will be updated.  
and add one of the existing schemas or click Add New Schema button to create a schema and its tables. All of the schema import, update and add operations are not executed until the process changes are committed.

Add New Schema

In order to add a new schema you have to enter a name and a prefix.

Clicking on Edit button unfolds a menu including:

Name
Name of schema, you can enter any name in to name field.

Prefix
Enter short name in to prefix field.

Click Details button to display all the tables of the schema and again click Details button of one of the tables listed: 

Fields

Name
Enter name of field. 

Type
Limited text, unlimited text, integer number, floating number, money, yes/no, date/time, unique identifier, xml and binary are listed. Select to type of field.

Size
Specifies the length of field in numbers of character. Only applicable to limited text type.

Languages
Under this section multiple language names can be added. For each language added, a separate column is added to table with the name "columnName_languageName". In this way corresponding translation of the column data is being stored in a distinct column and it is fetched depending on the user's culture choice.

General

Primary Key
Id, code and name are listed. Select to primary key. 

Authorize By
All the fields of unique identifier type from the table shows up in this section. Selecting one of them will restrict users to see only the row with selected field whose data is identical to their userId upon a select query.

Relations

Click on Add New Relation button:

Name
Enter a name for relation. It will be used later to call that relation. e.g. Word UserLogons is the relation name in usage Users.UserLogons

Type
Select relation type. Options are

  • One to many
  • One to one
  • One to one or zero
  • Many to one

Updated Rule
Will be updated.  

Target Schema
Will be updated.  

Target Table
Will be updated.  
Update Rule
Select update rule for related rows. With cascade rule, which is the only rule provided, when one of the records is updated or deleted, corresponding data on the other related table also gets updated or deleted.

Target Schema
Select a schema to create a relation to its table.

Target Table
Select a table from target schema to create a relation to.

Constraints

...

  • Source field :  Will be updated.  Select a field name from first table to relate from.
  • Target field : Will be updated.  

Initial Data

  •  Select a field name for second table to relate to.

Initial Data

For some purposes, for example testing, you can populate tables with initial data entered in XML format. 

Code Block
languagexml
titleSample Data
<InitialData Language="">
  <Properties />
  <Columns>
    <Column Name="Code" Type="System.String, mscorlib">
      <Properties />
      <Languages />
    </Column>
    <Column Name="Name" Type="System.String, mscorlib">
      <Properties />
      <Languages />
    </Column>
    <Column Name="Value" Type="System.Int32, mscorlib">
      <Properties />
      <Languages />
    </Column>
  </Columns>
  <Rows>
    <Row>
      <Cells>
        <Code Language=""><![CDATA[GB]]></Code>
        <Name Language=""><![CDATA[Data Sample 1]]></Name>
        <Value Language=""><![CDATA[122]]></Value>
      </Cells>
      <Tables />
    </Row>
    <Row>
      <Cells>
        <Code Language=""><![CDATA[KD]]></Code>
        <Name Language=""><![CDATA[Data Sample 2]]></Name>
        <Value Language=""><![CDATA[123]]></Value>
      </Cells>
      <Tables />
    </Row>
    <Row>
      <Cells>
        <Code Language=""><![CDATA[KK]]></Code>
        <Name Language=""><![CDATA[Data Sample 3]]></Name>
        <Value Language=""><![CDATA[124]]></Value>
      </Cells>
      <Tables />
    </Row>
    <Row>
      <Cells>
        <Code Language=""><![CDATA[TIK]]></Code>
        <Name Language=""><![CDATA[Data Sample 4]]></Name>
        <Value Language=""><![CDATA[125]]></Value>
      </Cells>
      <Tables />
    </Row>
  </Rows>
</InitialData>



Import

Displays all existing schemas. Select the ones you want to include in your process and click Ok.