Versions Compared

Key

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

...

  1. Open and Navigates to (ZTE) WF Designer


Rest APIs of (ZTE) WF

...

Designer:

Define the Rest APIs of (ZTE) WF Designer, these APIs will be provided by ZTE.

...

For a new workflow, before it be opened, the catalog (workflow manager) should create it first.  The Sequence Diagram shows as follow:

...

Navigate to the (ZTE) WF Designer UI, load the workflow data with the given id from Catalog (Workflow Manager).

Generate WF ID(s) BPMN Artifact:

First, The generator call query API to retrieve the json content of the workflow from Catalog.

Secend, The generator convert the data of the workflow from json format to BPMN format.

After then, the generator call save API to save the BPMN content back to the  Catalog.

The Sequence for Generate BPMN Artifacts as follow:

Image Removed

URL:

Code Block
languagebash
POST http://{wf-designer-ip}:{port}/api/workflow-modeler/v1/generateBPMN

Request:

Body Parameters:

...

.

Response:

...


...

Rest APIs of Catalog

...

Define the rest APIs of Catalog (Workflow Manager), these APIs will be provided by Amdocs/AT&T.

Get

...

Workflow Content by WF ID

...

URL:

Code Block
languagebash
GET http://{sdc-ip}:{port}/api/sdc/v1/workflow-modeler/models/{id}

Request:

Path Parameters:

NameData TypeRequiredDescriptionComment
idStringYesUnique UUID of the workflow

Response:

Return the information of the workflow in json format. see data information WorkflowInfo for details.

Get Brief Information of Extend BPMN Activities (from Catalog)

...

Get the extend Activities such as 'Stop Traffic', 'Stop VNF', 'Create VNF', etc.

URL:

Code Block
languagebash
GET http://{sdc-ip}:{port}/api/sdc/v1/workflow-modeler/ext-activities

Request:

Query Parameters:

NameData TypeRequiredDescriptionComment
sceneEnumYes

the scene of the workflow designer. Valid value as follow:

resource - open a VNF's workflow

service - open a Service's workflow

different scene may has different activities extend.

Response:

NameData TypeRequiredDescriptionComment
activities
ExtendActivityBriefInfo[]
Yes
extend activity brief/base information list

Get Detail Information of

...

Extend BPMN

...

Activites (from Catalog):

URL:

Code Block
languagebash
GET http://{sdc-ip}:{port}/api/sdc/v1/workflow-modeler/ext-activities/{id}

Request:

Path Parameters:

NameData TypeRequiredDescriptionComment
id
StringYes

Uniqued id of the extend bpmn activity.


Response:

Return the detail information of the extend activity. see data information ExtendActivity for details.

Save

...

Workflow Content with WF ID (to Catalog)

...

Save the JSON workflow content of the workflow to the Catalog.

URL:

Code Block
languagebash
PUT http://{sdc-ip}:{port}/api/sdc/v1/workflow-modeler/models/{id}

Request:

Pah Parameters:

NameData TypeRequiredDescriptionComment
idStringYesUnique UUID of the workflow

Body Parameters:

The information of the workflow in json format, for details to see data information WorkflowInfo.

Response:

...

Store BPMN Artifact against WF ID:

Save the BPMN content of the workflow to the Catalog.

URL:

Code Block
languagebash
PUT http://{sdc-ip}:{port}/api/sdc/v1/workflow-modeler/models/{id}/bpmn

Request:

Path Parameters:

...

Body Parameters:

...

Response:

NameData TypeRequiredDescriptionComment
idStringYesUnique UUID of the workflow saved


Data Information:

WorkflowInfo:

...