Introduction:
This instruction These instructions are made based on the DLE POC developed for P2. P2 is an OEM PM partner, Oil and Gas service company which serve their clients with PM.
...
A data model (DM) is required to connect DLE to the process developed in PM. DM is based on a JSON file with the representative fields of a class / module / component information to be processed by the workflow. Example An example can be found later in this document.
Before developing any process it is required to deploy the data model, hence and then the baseline fields of the case are created automatically based on DM.
Always check if the versions of the data model are configured in the DLE instance, sometimes the instance is a copy of other client stack and DM versions aren't configured in that particular PM instance. Allways Always check this with the provisioner provider of the instance, since this can't be configured from the PM interface.
To test the DLE plugin it is required to simulate web service calls. Is It is suggested to install a an API development environment like Postman to do this.
To obtain the required access token to test de the web sercicesservices, open the web console in the design process view and extract the following parameter to use later as Bearer: (Inspect → Network → XHR → Request Headers)
Steps to reproduce a POC with DLE plugin:
- Request an instance with the DLE plugin configured
- Create a DM. Example of a Gas Well data model
- Load the DM into PM
- Create a HEDM process, selecting the deployed DM and its version
- Develop de the process using the pre loaded variables and save
- Activate the process
- Test the case with the following parameters with the API IDE
Method: Post URL: https://<<demo_name>>.processmaker.net:<<port>>/api/1.0/workflow/dle/requests
Headers:
- Authorization:<<Bearer>>
- Content-Type:application/json
Body (Raw):
Code Block | ||
---|---|---|
| ||
{ "data": { "resource": { "name": "gas_well", "id": "8874b288-7cba-45ef-958a-8b090e111b5e", "version": "application/vnd.hedtech.integration.v3+json" }, "id": "161623", "published": "2017-03-28T12:44:55.276Z", "operation": "replaced", "contentType": "resource-representation", "content": { "company_name": "STURGEON RESOURCES J V5", "company_phone": "3304242822", "well_name": "R HILL", "well_number": "1", "completed_date": "8/13/1976", "well_latitude": "40.7352355973684", "well_longitude": "-80.7979850890101", "status": "CA", "id": "8874b288-7cba-45ef-958a-8b090e111b5e" } } } |
...
- User notification is not working if is required once the case is started.
- Dropdown options configuration + Json string definition looks unestableunstable