Creating a new service instance

About this task

Following modes are provided to create a new service instance:
  • Mode I: Using API BTTUtil.Workarea.addService with a service ID parameter, a new service instance is added at the end of the current column, and the added row ID is returned.
    Table 1. Mode I
    Input Output
    P1(service ID) A new service instance is added at the end of the current column. And the added row ID is returned.
  • Mode II: Using API BTTUtil.Workarea.addService with a row attribute parameter and a service attribute parameter, a new service instance is added in the specified row, and the added row ID is returned.
    Table 2. Mode II
    Input Output
    P1(row attribute), P2(service attribute) A new service instance is added in the specified row. And the added row ID is returned.
  • Mode III: Using API BTTUtil.Workarea.addService with a column ID parameter and a service ID parameter, a new service instance is added at the end of the specified column, and the added row ID is returned.
    Table 3. Mode III
    Input Output
    P1(column ID) , P2(service ID) A new service instance is added at the end of the specified column. And the added row ID is returned.
  • Mode IV: Using API BTTUtil.Workarea.addService with a column ID parameter, a row attribute parameter and a service attribute, a new service instance is added at the end of the specified column, and the added row ID is returned.
    Table 4. Mode IV
    Input Output
    P1(column ID), P2(row attribute), P3(service attribute) A new service instance is added at the end of the specified column. And the added row ID is returned.
  • Mode V: Using API BTTUtil.Workarea.addService with a row ID parameter, an index parameter and a service ID parameter, a new service instance is added at the relative position against the specified row, and the added row ID is returned.
    Table 5. Mode V
    Input Output
    P1(row ID), P3(index), P3(service ID) A new service instance is added at the relative position against the specified row. And the added row ID is returned.
  • Mode VI: Using API BTTUtil.Workarea.addService with a column ID parameter, an index parameter, and a service ID parameter, a new service instance is added at the specified position of the column, and the added row ID is returned.
    Table 6. Mode VI
    Input Output
    P1(column ID), P2(index), P3(service ID) A new service instance is added at the specified position of the column. And the added row ID is returned.
  • Mode VII: Using API BTTUtil.Workarea.addService with a column ID parameter, an index parameter, a row attribute parameter and a service attribute parameter, a new service instance is added before or after the corresponding service instance, and the added row ID is returned.
    Table 7. Mode VII
    Input Output
    P1(column ID), P2(index), P3(row attribute), P4(service attribute) A new service instance is added before or after the corresponding service instance. And the added row ID is returned.
  • Mode VIII: Using API BTTUtil.Workarea.addService with a row ID parameter, an index parameter, a row attribute parameter and a service attribute parameter, a new service instance is added in the corresponding column, and the added row ID is returned.
    Table 8. Mode VIII
    Input Output
    P1(row ID), P2(index), P3(row attribute), P4(service attribute) A new service instance is added in the corresponding column. And the added row ID is returned.