Árvore de páginas

 

Warning

Starting with Fluig 1.2, the Analysis and Processes Central was discontinued and evolved into Fluig Analytics.


Fluig has an advanced Analytics feature, which enables the creation of Dashboards and Views for monitoring information indicators that occur within the Fluig platform. This service is available in cloud only, which ensures that the entire broad processing of new information and data analysis occurs with great scalability.

Note

As the Analytics service is in cloud, the server must be enabled for communication on port 443 to analytics.fluig.com; if it is not enabled, it will not be possible to send the data.

To enable Analytics in your environment, the following steps should be followed.

    Open a call via the Customer Portal in "Calls > Software > Fluig" using the following parameters:

    Version

    Fluig

    Module/Product

    Fluig

    Process or Routine

    Analytics

    Summary

    Creating project Analytics

    Incident

    Information for creating context:

    1. Company Name
    2. CNPJ (Corporate Taxpayer's Registry)
    3. TOTVS customer code
    4. Code of context to be created (usually company name, may contain space, characters without diacritics and numbers) 
    5. Administrator’s name and last name
    6. Analytics environment administrator’s e-mail


    As a result of the call, two environments will be released: one for production and the other for testing, in which the administrator will receive an e-mail invitation to participate in the Analytics project, and will receive, in the call, the codes of the projects created.


    In the environment with Fluig that you want to connect the integration with Analytics, you will need to access the WCM administrator environment (with the WCMAdmin user). In this environment, go to:

    1.  Menu option: Control panel
    2. Click on the WCM tab
    3. then go to the Companies option

    In this option, select the company you want to enable Analytics, then click Edit. Then go to Register additional data and on the following screen add the following keys and values

    Key

    Value

    analytics.gd.project.id

    <your project code sent by support>

    analytics.gd.user

    <e-mail in which you received the invitation from support>

    analytics.gd.pass

    <password registered after the invitation>

    analytics.gd.active

    true

    With the invitation received by mail, complete your registration on Fluig Analytics. With this user and password, you will be able to monitor the data being sent.

    Warning

    Do not disclose your project code, this is the key to access to your project.


    Sending Data

    Data is sent in regular intervals of 15 minutes. Only data that has changed over this period is sent. Communication is always made from the server to analytics.fluig.com. The firewall must be disabled for this address.

    To send specific Workflow processes data, the event beforeSendData must be used for configuration of the data sent to Analytics

    The function to treat this process event has two parameters customField and customFact. The first parameter is an array of strings already instantiated, with 10 positions (0 to 9). The second parameter is an array of 10 positions, but the data must be double type and its  content will be treated as a "fact". The big difference between a customField and a customFact field is that in a fact field (customFact), as it is a number, operations such as sum, average, maximum and minimum can be calculated. These are some examples of field types and the value that should read:

    FieldField to be sentJustification
    Number of items in ordercustomFactAdd up how many items were requested by a requester 
    Purchase order regioncustomFieldSince the goal is to tell in which regions the applications were requested, it doesn’t have to be a fact field.
    Requester namecustomFieldIt will only be used as a cluster
    Total order amountcustomFactTo retrieve information such as average order amount of a region

    Below is a sample implementation of the event, with two fields filled out:

    Warning

    Note the conversion of the field to Double

    Example of Workflows Event
    function beforeSendData(customField, customFact) {
        customField[0] ="1";
        customField[1] =hAPI.getCardValue("campo_do_formulario");
    
        customFact[0]=10.53;
        customFact[1]=java.lang.Double.parseDouble(hAPI.getCardValue("campo_valor"));
    }


    • Sem rótulos