Communication to P5Automation1OrangeRaportSimple

For ease of implementation for send data from P5AutomationSerialController to Procesy5 APIwe created special simplified object with the following structure P5Automation1OrangeRaport-docbook.html or Communications schema between Automation Device and Procesy5 Api

To save data to API You can use the following tested scenario to use in Postman developper tool by the following case:
  1. We want to send two different ports state at same for Device id ID_DEVICE = 1
    IdPort InputValued PortCustName
    1 2.2 Poziom Promili ;)
    2 100 Poziom kondycji ;)
  2. We should prepare XML wich will fit Procesy5 API specification at http://procesy5.pl/procesy5-wfs-api-doc/data_insert.html, wchich should look like that:
         <Insert xmlns="http://www.opengis.net/wfs">
            <p5_default_db:P5Automation1OrangeRaportSimple>
                <DEVICE_ID>1</DEVICE_ID>
                <IdPort>1</IdPort>
                <InputValued>2.2</InputValued>
                <PortCustName>Poziom Promili ;)</PortCustName>
             </p5_default_db:P5Automation1OrangeRaportSimple>
             <p5_default_db:P5Automation1OrangeRaportSimple>
                <DEVICE_ID>1</DEVICE_ID>
                <IdPort>2</IdPort>
                <InputValued>100</InputValued>
                <PortCustName>Poziom kondycji ;)</PortCustName>
             </p5_default_db:P5Automation1OrangeRaportSimple>
        </Insert>
  3. Than if we post it to the API correctly with such settings in HTTP header contents:
    GET POST
    ?SERVICE=WFS &VERSION=1.0.0
    <Transaction
        xmlns="http://www.opengis.net/wfs"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        version="1.0.0"
        service="WFS"
        xmlns:p5_default_db="https://biuro.biall-net.pl/wfs/default_db"
        xmlns:gml="http://www.opengis.net/gml">
        <Insert xmlns="http://www.opengis.net/wfs">
            <p5_default_db:P5Automation1OrangeRaportSimple>
                <DEVICE_ID>1</DEVICE_ID>
                <IdPort>1</IdPort>
                <InputValued>2.2</InputValued>
                <PortCustName>Poziom Promili ;)</PortCustName>
             </p5_default_db:P5Automation1OrangeRaportSimple>
        </Insert>
        <Insert xmlns="http://www.opengis.net/wfs">
             <p5_default_db:P5Automation1OrangeRaportSimple>
                <DEVICE_ID>1</DEVICE_ID>
                <IdPort>2</IdPort>
                <InputValued>100</InputValued>
                <PortCustName>Poziom kondycji ;)</PortCustName>
             </p5_default_db:P5Automation1OrangeRaportSimple>
        </Insert>
    </Transaction>
  4. We should get the following result from Procesy5 API
    <?xml version="1.0" encoding="UTF-8"?>
    <wfs:WFS_TransactionResponse version="1.0.0"
    		xmlns:wfs="http://www.opengis.net/wfs"
    		xmlns:ogc="http://www.opengis.net/ogc"
    		xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <wfs:InsertResult>
            <ogc:FeatureId fid="P5Automation1OrangeRaportSimple.2" xmlns:ogc="http://www.opengis.net/ogc"/>
            <ogc:FeatureId fid="P5Automation1OrangeRaportSimple.3" xmlns:ogc="http://www.opengis.net/ogc"/>
        </wfs:InsertResult>
        <wfs:TransactionResult>
            <wfs:Status>
                <wfs:SUCCESS/>
            </wfs:Status>
        </wfs:TransactionResult>
    </wfs:WFS_TransactionResponse>
    Which inform us about the new created entries with its respective unical FeatureId, which can be further referenced to maybe some others operations.
    Note: The screenshot of this operation in Postman developper tool looks like that

    Figure: screnshot with testing of save transaction to API by using postman

    Note: Consider this data is also instantly aviable in WEB GUI

    Figure: if you log in to the main Procesy5 WEB GUI where is the system API You can find your transaction data to read

    Note: To be avaiable send/recieve data You must be associated to the correct process and user account according to http://procesy5.pl/procesy5-wfs-api-doc/procesy5_web_first_login.html. Process should be associated to the Simplified raport element P5Automation1OrangeRaportSimple according to http://procesy5.pl/procesy5-wfs-api-doc/web_route_urlaction_proceseditor_menuresources.html