Configuration
This section handles the processes configuration.
GET /processes
This method returns the list of processes accessible for the user.
Request parameters:
- company [mandatory]: the company name or id.
- session [mandatory]: the Id of the active session.
- id: The id of the process, to show only one.
Response:
- status: returns "0" on success, and an error code in any other case.
- data: returns the list of processes and its properties.
- message: "success" or a descriptive information of the error in any other case.
Example:
Request: {"type":"get", "url":"processes", "data":"company=demo04&session=QhuFhXB9MXprVKEfakhwaZxgA5osZg1o2NDaZeDunjRBX7cETnq6fehDH0K1&id=A0L1"} Reponse (success): "status": "0", "data": [ { "order": "00001", "id": "A0L1", "desc": "Robot Line 1", "calculation": "piezas", "cycleot": "0", "cyclet": "11", "maxcyclet": "0", "cycleq": "1", "npcauto": "0", "unit": "piezas", "minopers": "0", "opers": "3", "y0": "77,47", "g0": "87,15", "y1": "100", "g1": "100", "y2": "99,8", "g2": "99,8", "y3": "0", "g3": "0", "y4": "0", "g4": "0", "y5": "0", "g5": "0", "y6": "0", "g6": "0", "y7": "0", "g7": "0", "trace": "1", "next_processes": "", "resps": "", "stshort": "50", "prshort": "1", "microstop": "", "url": "", "lockrec": "525600", "man": "72", "genpstart": "0", "interign": "0", "limprodtosche": "0", "allowconf": "0", "type": "0", "requirenotify": "0", "wbs": "", "notifyratios": "0", "represent": "0", "excessordefect": "0", "schedulefields": "0", "img": "", "imgurl": "http://localhost/edinnm2/img/4444444444/Mach_A0L1_", "operationtime": "0" } ], "message": "Success"} Response (error): {"status":"1007", "data":"<a href='http:\/\/127.0.0.1:8080\/edinnM2\/help\/en\/API_Processes_Config.html'>for additional information follow this link<\/a>", "message":"Session not stablished"} |
GET /processes/{process}/reta
Returns the Id of the favorite tabs assigned to that process
Request attribute:
Process [mandatory]: the id of the process
Request parameters:
- company [mandatory]: the company name or id.
- session [mandatory]: the Id of the active session.
Response:
- status: returns "0" on success, and an error code in any other case.
- data: Returns the Id of the favorite tabs assigned to that process, or true if there is no data to be returned.
- message: "success" or a descriptive information of the error in any other case.
Example:
Request:
/processes/A0L1/reta
{
"session": 01qgmfcZmZ4nqg2eNGpxY4JlpmhJuKw1H31p5rtD1a112SSK8S8odROFIKgn
"company": DEMO04
}
Response:
{
"status": 0,
"Data":
{
true,
}
"message": "Success"
}
POST /processes
This method creates a process. The user must have the administrator role.
Request parameters (for additional information please review the process configuration):
- company [mandatory]: the company name or id.
- session [mandatory]: the Id of the active session.
- id [mandatory]: the id of the process.
- order: the relative order to be shown.
- desc: the description of the process.
- calculation: the calculation type of the process.
- cycleot: operator time in seconds. How many seconds from the Cycle Time (see next) correspond to the resource (person) work.
- cyclet: time in seconds per cycle of production. Please see Maximum speed.
- maxcyclet: this is the template cycle time to apply when creating new orders.
- cycleq: number of units expected per cycle of production. Please see Maximum speed.
- npcauto: indicates the number of units of results with a maintained speed for the system to automatically update the maximum speed of the process. Automatic update of maximum speed is disconnected if this value is left to 0.
- unit: the unit id of what the process produces.
- minopers: minimum number of working persons that can work at the process at a certain moment.
- opers: maximum number of working persons that can work at the process at a certain moment.
- y0: yellow objective for availability.
- g0: green objective for availability.
- y1: yellow objective for speed.
- g1: green objective for speed.
- y2: yellow objective for quality.
- g2: green objective for quality
- y3: yellow objective for productive availability.
- g3: green objective for productive availability.
- y4: yellow objective for the quantity of MTBF.
- g4: green objective for the quantity of MTBF.
- y5: yellow objective for the MTBF.
- g5: green objective for the MTBF.
- y6: yellow objective for the MTTR.
- g6: green objective for the MTTR.
- y7: yellow objective for the OCE.
- g7: green objective for the OCE.
- trace: indicates if the signals should be sent to the registry (0 for inactive, or 2 for active).
- next_processes: the list (separated by ,) of the next processes in the line.
- resps: the list of the responsibles (ids from Resources).
- stshort: minimum stop time in seconds in order to be registered as failure (FAI). Stops with less time will be registered as Microstops.
- prshort: minimum production time in seconds in order to be registered as production. This cannot be 0 and should be correctly configured considering server parameters. Contact your technical support and request to check this value according to option "Check Status Every" at the Monitor window of the server.
- microstop: status that will be automatically used to automatically justify microstops.
- url: document or application that will be opened when the user clicks on the
that appears after having clicked on the process, on the main window. Please see how to configure URLs.
- lockrec: indicates after how many minutes the time and production registers will be blocked for users without supervisor permission. This allows to force justifications before a certain time.
- man: combination of bits to indicate how the process is monitored manually.
- genpstart: this mark, when 1, indicates to the system to automatically generate a new status to indicate that a new work has started, every time a new result with 0 quantity is inserted, if at the status configuration the option Work start has been marked for one, and no more than one, status.
- interign: marks, when 1, the process as to be ignored when transferring from and to information to another system, like ERPs. Please see integration with other systems.
- limprodtosche: if marked, with 1, the process is restricted to follow the orders scheduled for it, and that can be viewed at the view schedule window.
- allowconf: if marked with 1, allows the user to configure the process and to add more statuses and more results.
- type: indicates, when 1, that the process is dedicated to attend services. This mark will, for example, show the working time of these processes as services in the FTE report.
- requirenotify: this selector, when 1, forces the user to indicate quantities when closing an order in the selected items.
- wbs: reserved for advanced scheduling of tasks.
- notifyratios: if selected, the system will notify by email (1) when the selected ratio (OEE, Availability, Speed or Quality) is below the yellow target, in any of the defined periods.
- represent: indicates, when 1, if the process is the representant of an area.
- excessordefect: in case notifyratios is set to Scheduling, then this will include the deviation % of excess or defect in production of orders to be notified.
- img:an image to upload that represents the process visually.
- schedulefields: (to be implemented) is a combination of bits to indicate which columns of the data grid in the Schedule window are visible for this process.
- operationtime: the time the process has been in operation.
Response:
- status: returns "0" on success, and an error code in any other case.
- data: returns the list of processes and its descriptions.
- message: "success" or a descriptive information of the error in any other case.
Example:
Content-Type: application/json Request: { "company": "demo01", "session": "LebEWTNf8GEhxfQeeGbBmVUlxmUIDLVdEoeVYrnWNzkdRXKxmgCNc92wnSjA", "order": "00001", "id": "1CON", "desc": "CONVEYOR 1", "calculation": "PIECES", "cyclet": "10", "maxcyclet": "0", "cycleq": "1", "npcauto": "0", "unit": "PIECES", "minopers": "0", "opers": "10", "y0": "60", "g0": "60", "y1": "90", "g1": "95", "y2": "95", "g2": "98", "y3": "60", "g3": "70", "y4": "0", "g4": "0", "y5": "0", "g5": "0", "y6": "0", "g6": "0", "y7": "60", "g7": "60", "trace": "0", "machnext": "2ROT", "resps": "", "stshort": "180", "prshort": "10", "microstop": "MIC", "url": "", "lockrec": "120", "man": "9", "genpstart": "0", "interign": "0", "limprodtosche": "0", "allowconf": "0", "type": "0", "requirenotify": "0", "wbs": "", "notifyratios": "0", "represent": "0", "img": "", "operationtime": "22", "schedulefields": "2" } Reponse (success): { "status": "0", "data": true, "message": "Success" } |
POST /processes (ISA-95 compliant, for more information please read the B2MML document)
This method creates a process using json encoded B2MML data. The user must have the administrator role.
Request parameters (for additional information please review the process configuration):
- company [mandatory]: the company name or id.
- session [mandatory]: the Id of the active session.
- data [mandatory]: the json encoded B2MML data defining the process.
Example:
{ "SyncEquipment": { "ApplicationArea": { "Sender": {"ComponentID": "ERP","ConfirmationCode": "Always"}, "CreationDateTime": "2019-04-10T16:30:32" }, "DataArea": { "Sync": {"ActionCriteria": {"ActionExpression": { "@actionCode": "Add" }}}, "Equipment": { "ID": "WC1", "Description": "WorkCell 1", "Location": { "EquipmentID": "DEMO01", "EquipmentElementLevel": "Enterprise", "Location": { "EquipmentID": "P1", "EquipmentElementLevel": "Site", "Location": { "EquipmentID": "PL1", "EquipmentElementLevel": "ProductionLine" } } }, "EquipmentProperty": [ {"ID": "Id_Calc","Value": {"ValueString": "CycleT","DataType": "string","UnitOfMeasure":""}}, {"ID": "CycleQ","Value": {"ValueString": "4","DataType": "int","UnitOfMeasure":""}}, {"ID": "CycleT","Value": {"ValueString": "3600","DataType": "int","UnitOfMeasure":""}}, {"ID": "NPCAuto","Value": {"ValueString": "0","DataType": "byte","UnitOfMeasure":""}}, {"ID": "Id_Unit","Value": {"ValueString": "M3","DataType": "string","UnitOfMeasure":""}}, {"ID": "Opers","Value": {"ValueString": "3","DataType": "int","UnitOfMeasure":""}}, {"ID": "StShort","Value": {"ValueString": "60","DataType": "int","UnitOfMeasure":""}}, {"ID": "PrShort","Value": {"ValueString": "60","DataType": "int","UnitOfMeasure":""}}, {"ID": "MachNext","Value": {"ValueString": "WC2,WC3","DataType": "string","UnitOfMeasure":""}}, {"ID": "Trace","Value": {"ValueString": "1","DataType": "integer","UnitOfMeasure":""}}, {"ID": "Resps","Value": {"ValueString": "PERS1","DataType": "string","UnitOfMeasure":""}}, {"ID": "URL","Value": {"ValueString": "nombre_del_archivo","DataType": "string","UnitOfMeasure":""}}, {"ID": "Id_StTU","Value": {"ValueString": "FAI","DataType": "string","UnitOfMeasure":""}}, {"ID": "LockRec","Value": {"ValueString": "10080","DataType": "integer","UnitOfMeasure":""}}, {"ID": "Man","Value": {"ValueString": "7","DataType": "integer","UnitOfMeasure":""}}, {"ID": "Type","Value": {"ValueString": "7","DataType": "integer","UnitOfMeasure":""}}, {"ID": "GenPStart","Value": {"ValueString": "0","DataType": "integer","UnitOfMeasure":""}}, {"ID": "InterIgn","Value": {"ValueString": "7","DataType": "integer","UnitOfMeasure":""}}, {"ID": "LimProdToSche","Value": {"ValueString": "7","DataType": "integer","UnitOfMeasure":""}}, {"ID": "AllowConf","Value": {"ValueString": "7","DataType": "integer","UnitOfMeasure":""}} ] } } } } |
Response example:
{ "status":"0", "data":"{ \"ConfirmBOD\":{ \"ApplicationArea\":{ \"Sender\":{\"ComponentID\":\"EDINN\",\"ConfirmationCode\":\"Always\"}, \"CreationDateTime\":\"2019-11-12T12:16:18\" }, \"DataArea\":{ \"Confirm\":{\"ResponseCriteria\":{\"ResponseExpression\":{\"@actionCode\":\"Accepted\"}}}, \"BOD\":{\"Description\":\"Accepted WC1\",\"Note\":[]} } } }", "message":"Success" } |
DELETE /processes/{id}
This method deletes a process. The user must have the administrator role.
Request attribute:
- id [mandatory]: the Id of the session to delete.
Request parameters:
- company [mandatory]: the company name or id.
- session [mandatory]: the Id of the active session.
Response:
- status: returns "0" on success, and an error code in any other case.
- data: returns the list of processes and its descriptions.
- message: "success" or a descriptive information of the error in any other case.
Example:
Content-Type: application/json Request: { "company": "demo01", "session": "LebEWTNf8GEhxfQeeGbBmVUlxmUIDLVdEoeVYrnWNzkdRXKxmgCNc92wnSjA" } Response (success): { "status": 0, "data": null, "message": "Success" } |