Logo
OpenText Developer Cloud public resources API Documentation

IMaaS Contract sample app - contract approval use case

Number of APIs: 17


Overview

This collection mirrors the OpenText Sample App

Note: This app requires a free trial of the IMaaS developer plan for you to test Sign-up here

For detailed step-by-step from sign-up to first test of the sample app watch this video: Sample App How-To

What you get out of trying this sample app with our IMaaS bundle

Are you looking to move information between Apps or Line of business systems? This sample app gives you a testable starting point for how our IM Services can be used. For the purposes of testing you can use React and any User Interface to test our services once you sign-up so you can access our cloud services

This example shows how to develop an application in React which allows to upload a document, store document related data, do document analysis for Personally Identifiable Information (PII) data, and use a workflow to automate a simple approval step.

Application Scenario

  1. An employee logs on to the Contract Approval application
  2. She creates a contract entry, specifies the contract value and uploads a contract (PDF).
  3. The uploaded document is sent to Magellan Risk Guard where it is analyzed for sensitive information.
  4. Based on this analysis, the contract gets a risk level assigned.
  5. When the contract value is below or equal to 1000 and the risk level is below high - the contract is automatically approved.
  6. When the value is above 1000 or when the risk level is high or very high the contract first has to be approved by the contract manager.
  7. At the end the employee receives an email with the status of the contract approval.

Learning points

Build an application with React. The application will have secure login, tabs, grids and pagination. Use a business process model created with the Workflow Modeler. Use different multiple IMaaS services: Content Storage Service (CSS), Content Metadata Service (CMS), Workflow Service, and Magellan Risk Guard.

Requirements

NodeJs version 14.2.0

Active OpenText IMaaS account

A Github account to download the sample app code

Be sure to save your Service password that is displayed when signing up for the 90 days trial


1. get-access-token

POST {{apigee_host}}/tenants/{{tenant_id}}/oauth2/token



2. create-namespace

POST {{apigee_host}}/cms/namespaces



3. create-cms-contract-file-type

POST {{apigee_host}}/cms/type-definitions/file



4. create-workflow-model-for-contract-approval

POST {{apigee_host}}/workflow/v1/runtime/models



5. misc - get-namespaces

GET {{apigee_host}}/cms/namespaces



6. misc - get-all-cms-contract-file-type

GET {{apigee_host}}/cms/type-definitions?items-per-page=20



7. misc - get-cms-contract-file-type

GET {{apigee_host}}/cms/type-definitions/ot2_app_contract



8. misc - delete-cms-contract-file-type

DELETE {{apigee_host}}/cms/type-definitions/ot2_app_contract



9. misc - get-all-attributes-from-cms-contract-file-type

GET {{apigee_host}}/cms/type-definitions/ot2_app_contract/attributes



10. misc - get-attribute-from-cms-contract-file-type

GET {{apigee_host}}/cms/type-definitions/ot2_app_contract/attributes/862b118d-70e4-4560-ba8f-4e3e79852c42



11. misc - add-attribute-to-cms-contract-file-type

POST {{apigee_host}}/cms/type-definitions/ot2_app_contract/attributes



12. misc - get-all-workflow-models

GET {{apigee_host}}/workflow/v1/runtime/models



13. misc - delete-workflow-model

DELETE {{apigee_host}}/workflow/v1/runtime/models/cec260f7-3378-11ec-b023-eeee0affc492



14. misc - delete-all-cms-contract-files

GET {{apigee_host}}/cms/instances/file/ot2_app_contract



15. misc - get-cms-contract-file

GET {{apigee_host}}/cms/instances/file/ot2_app_contract/7e2aeeef-e924-4864-89ce-cb4b263b462b



16. misc - delete-cms-contract-file

DELETE {{apigee_host}}/cms/instances/file/ot2_app_contract/f5bc7555-7f25-41b0-87b7-574f5ca4dfa7



17. misc - process-document-with-riskguard

POST {{apigee_host}}/mtm-riskguard/api/v1/process



ENDPOINTS