1 .. _docs_CM_flexible_designer_orchestrator:
3 Change Management Flexible Designer and Orchestrator
4 -----------------------------------------------------------------------------
9 The change management flexible designer and orchestrator enables a user to design a change workflow in SDC using a catalog of activities and distribute and deploy the workflow to SO for execution.
13 To use the flexible designer and orchestrator functionality, one has to execute the following steps:
15 1) Activity upload (SO to SDC)
17 2) Change workflow design and certification (in SDC)
19 3) Change workflow testing (in SDC)
21 4) Change workflow distribution and deployment (SDC to SO)
23 For steps 2-4, use the ONAP portal:
25 https://portal.api.simpledemo.onap.org:30225/ONAPPORTAL/login.htm
27 Login in designer: cs0008
29 Password for all users is: demo123456!
31 Activity upload - Source files
32 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
36 https://git.onap.org/so/tree/bpmn/so-bpmn-building-blocks/src/main/resources/ActivitySpec
38 Activity upload - How to use
39 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
41 Use the manual activity spec upload process for now - for every json file in ActivitySpec directory run the curl commands below
43 Deploy SO Activity Spec to SDC:
44 curl -X POST http://sdc-wfd-be:8080/v1.0/activity-spec -H "C
45 ontent-Type: application/json" -d @<activity name>.json
47 The output will be of the form:{"id":"...","versionId":"..."}
49 Make a note of id from the output.
51 Certify SO Activity Spec in SDC:
52 curl -X PUT "http://sdc-wfd-be:8080/v1.0/activity-spec/<id returned on deployment>/versions/latest/actions" -H "accept: */*" -H "Content-Type: application/json" -d "{ \"action\": \"CERTIFY\"}"
56 curl -X POST http://sdc-wfd-be:8080/v1.0/activity-spec -H "C
57 ontent-Type: application/json" -d @VNFUnsetInMaintFlagActivitySpec.json
60 {"id":"fad363f616d5422b94fe2351c8b44c48","versionId":"cd6af48e3c8247d2ab7568849d"}
61 curl -X PUT "http://sdc-wfd-be:8080/v1.0/activity-spec/fad363f616d5422b94fe2351c8b44c48/versions/latest/actions" -H "accept: */*" -H "Content-Type: application/json" -d "{ \"action\": \"CERTIFY\"}"
63 Change workflow design and certification
64 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
65 1) Go to SDC on the ONAP portal. Use login with role of designer (cs0008)
67 2) Disable protection for now
69 3) Go to Workflow and click on Add a workflow. Provide a Name and Description for the new workflow. After clicking on Create, it will display a page with General, Input/Output and Composition. In Input/output, provide a NF_id as input and status as output. Save the workflow
71 4) Go to Composition and design the new workflow.
73 5) Start and End indicates the start and end of the workflow. Add an activity after start. Make it a service event and add an activity using the details option on the right. Select the Activity Spec.
77 7) Certify the workflow. Once certified, the workflow design cannot be changed. If one needs to change it post certification, one can create a new version of the workflow.
79 8) Go back to Home and add a VF. Provide a name, category, description, Contact ID, vendor and vendor release for the VF. Save the VF. Go to Operation and Add a new operation. This is the step where you link the workflow to the VF.
81 9) Go to Home and add a Service. Provide a name, category, description, contact ID, project Code for the service. Save the service. Then go to Composition, select the VF previously created. Click on submit for testing. The service is ready for testing.
83 Change workflow testing
84 ~~~~~~~~~~~~~~~~~~~~~~~~~~
86 1) Switch the user with tester role (jm0007)
88 2) In Home, the service would be displayed as Ready for Testing
90 3) Click on the service and then start testing.
92 4) Click on Accept and provide Certification confirmation. Now the workflow is ready for distribution.
94 Change workflow distribution and deployment
95 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
97 1) Switch the user with governor role (gv0001). Governor is responsible for approving the distribution
99 2) Click on the service name and click on Approve. Provide the distribution confirmation comment. This approves the workflow distribution.
101 3) Switch the user with operator role (op0001).
103 4) Click on the service name and then click on Distribution. Click on Distribute to distribute the workflow to SO. Then click on Monitor to check the distribution status. The CSAR along with BPMN is distributed from SDC to SO.
105 5) Once distribution is completed from SDC to SO, SO will automatically deploy the workflow. SO automatically makes the workflow ready for execution.
107 Known Issues and Resolution
108 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
109 SO has an issue with workflow validation during execution.
110 https://jira.onap.org/browse/SO-1243
111 We would be resolving this as a maintenance patch in Casablanca.
112 For Casablanca, the workflow design, testing, distribution and deployment have been successfully tested.
114 SDC user guide can be found here: https://wiki.onap.org/display/DW/Design