Versions Compared

Key

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

...

Param

Description

userId

The id of the user logged into SDC.

userRole

The role of the connected user, options ADMIN, DESIGNER, TESTER, OPS, GOVERNOR.

displayType

The type of view the plugin is opened in tab/context.

contextType

The type of the context where the plugin is opened: VF/CP/VL/VFC/SERVICE

uuid

Unique id of the context the designer plugin is opened in.

lifecycleState

The state the context /resource or service are currently in:
                                READY_FOR_CERTIFICATION/                CERTIFICATION_IN_PROGRESS/

                CERTIFIED/          NOT_CERTIFIED_CHECKIN/

NOT_CERTIFIED_CHECKOUT;

isOwner

A Boolean value describing if the logged user is the owner/lastUpdator of the resource/service.

version

The version of the item displayed.

parentUrl

The URL of the SDC the plugin is opened in. used to subscribe to the event bus in SDC.

eventsClientId

The name with which the plugin needs to register with to the event bus.

...

Info
iconfalse

{

    type: "CHECK_IN"

    data:

originId: "sdc-hub"

}

Check out event example


Info
iconfalse

{

    type: "_CHECK_OUT"

    data: {

         uuid: a21af8a1daa948f78e30f9b269a253ba ,

         version:1.1

    }

    originId: "sdc-hub"

}

Submit for testing event example

...

Info
iconfalse

{

    type: "UNDO_CHECK_OUT"

    data: {

         uuid: a21af8a1daa948f78e30f9b269a253ba ,

         version:1.1

    }

    originId: "sdc-hub"

}

...

Ready event example

Info
iconfalse

{

    type: "READY"

    data:

originId: "pluginName"

}

...

Action completed event example


Info
iconfalse

{

    type: "ACTION_COMPLETED"

    data:

originId: "pluginName"

}

...

more information in the Appendix.


Appendix A – References

SDC external API’s

SDC consumer definition