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.
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.
|
Do not disclose your project code, this is the key to access to your project. |
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:
Field | Field to be sent | Justification |
---|---|---|
Number of items in order | customFact | Add up how many items were requested by a requester |
Purchase order region | customField | Since the goal is to tell in which regions the applications were requested, it doesn’t have to be a fact field. |
Requester name | customField | It will only be used as a cluster |
Total order amount | customFact | To retrieve information such as average order amount of a region |
Below is a sample implementation of the event, with two fields filled out:
Note the conversion of the field to Double |
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")); } |