Configure the API-Based Punches Import Integration
This topic describes how to configure this integration.
Tip: For an overview of API-based integrations and example APIs, see API-Based Integrations.
Before you start
Deploy the API-PunchImport integration pack; see Deploy Integrations.
Configure the integration
-
Open the Integration Template Designer: Select Main Menu
> Administration > Application Setup > Integrations Setup > Design Integration Templates. Uwaga: If prompted, enter your Username and Password. Kliknij Dotknij Log in.
- Wybierz kartę Zarządzaj > Zarządzanie atomem.
- Wybierz swoje środowisko.
- In Administration, kliknij dotknij Environment Extensions.
- In Process Filter, kliknij dotknij the magnifying glass
. It can take several seconds before the button becomes active. - Scroll to and select the integration pack: API-PunchImport > API-PunchImport.
Przestroga :Jeśli wybierzesz Użyj wartości domyślnej w ustawieniach połączenia i właściwościach procesu, upewnij się, że Wartość jest pusta. Jeśli Wartość nie jest pusta, wartość ta uchyla wartość domyślną niezależnie od tego, czy wybrano opcję Użyj domyślnej, czy wyczyszczono ją. Przykład: Jeśli wartość domyślna to abc, ale Wartość pokazuje xyz, integracja wykorzystuje xyz niezależnie od ustawienia Użyj wartości domyślnej.
- Select Connection Settings.
-
From the Connection dropdown list, select and configure:
Connection Settings Setting Required Actions APIGatewayServer Required Select URL. AuthenticationServer Required Select URL. PunchImportWSSListenerOperation Not required Select Object.
- Select Process Properties.
- Select AuthenticationProperties to define properties to connect to the authentication server and get the access token to execute APIs.
- From the Process Property dropdown list, select API-PunchImport_CRTConfig to define headers in cross-reference tables.
Tabele odsyłaczy (CRT) to tabele wyszukiwania używane przez integracje do tłumaczenia wartości parametrów. Co najmniej jedna wartość danych z systemu źródłowego może zostać użyta do przypisania co najmniej jednego parametru w systemie docelowym.
Przestroga :The Boomi™ application does not return default values for cross-reference table headers. You have to enter the headings in Value.
Uwaga: For details, see Configure cross-reference tables.
For each of the tables:
- Clear Use Default.
- In Value, enter the header column names, separated by commas (,) but no spaces, exactly as shown below the Value field. You can select and copy the headers from the screen, then paste them in the Value field.
- Repeat for the other tables.
-
Select DefaultProcessProperties to select the process properties that you want to use default values.
Clear DefaultEnableTransactionAssistant.
-
Select PunchImportTransactionAssistantProcessProperties.
Clear enableTransactionAssistant.
- Select RealTimePunchImport_ProcessProperties to set process properties that must be configured before the integration can run.
- FalconExecutionId
- ErrorMessage
- CallBackMessage
- ProcessStatus
- RunSummary
- Clear EnableTransactionAssistant (default).
- BatchName
- Select RunSinglePunch (default) to import punches from SinglePunchMap.
- Select RunDualPunch (default) to import punches from DualPunchMap.
- Select RunDualPunchPCE (default) to import punches and paycode edits from the DualPCE_PunchTotalCount.
- AmountType
- TimeFrameId
- Select CustomTransferProcessing (default) to form the organizational transfer path appending the Home Job to the path in the Account column of the output file.
- CreateRunSummary
- Select UpdateExistingPunches (default).
- If selected, the integration imports and replaces only updated punches from the input file.
- If cleared, the integration deletes all existing punches and imports the punches from the input file.
- API key
- PayCodeResponseLog
- HeaderValue
- RowValue
- APIErrorResponse
- APIResponseCode
- CallBackData
- Select RunSummaryIntegration to select the information to display in the run summary.
- Select RunSummaryStep to select the data to process for the run summary.
-
Select TransactionAssistantProcessProperties.
Clear EnableTransactionAssistant.
- Select Object Definitions.
- Do one of the following:
- Kliknij Dotknij Choose Locked Fields for Profile
. Select the fields. Kliknij Dotknij OK. - For Content Root, kliknij dotknij Choose Content Root for Profile
. Select the element. Kliknij Dotknij OK. - Kliknij Dotknij Edit Aliases
. Select the field. Enter the new label. Repeat for other fields. Kliknij Dotknij OK. - Kliknij Dotknij Edit User Defined Object Definition
. Edit the Name. Edit the Object Type. Select Selected Profiles. Kliknij Dotknij OK. - Kliknij Dotknij Delete User Defined Object Definition
. Kliknij Dotknij OK to confirm.
- Kliknij Dotknij Choose Locked Fields for Profile
Przestroga :Before a cross-reference table can be downloaded when the integration is run, you must clear Use Default in Process Property > {ProcessName}_CRTConfig and enter the header names for each cross-reference table. If the header names are already in the field, copy them to the clipboard or a text file, delete the header names from the field, and paste the header names back into the field. Also, you must select Override in the steps that follow.
Tabele odsyłaczy (CRT) to tabele wyszukiwania używane przez integracje do tłumaczenia wartości parametrów. Co najmniej jedna wartość danych z systemu źródłowego może zostać użyta do przypisania co najmniej jednego parametru w systemie docelowym.
Tabela odniesień (przeglądowa) (CRT) przekłada wartości parametrów w integracji w następujący sposób:
- Organizuje wartości danych w wierszach i kolumnach:
- Maksimum = 20 kolumn, 10 000 wierszy.
- Może łączyć wartości z wielu kolumn w celu określenia pojedynczej wartości wyjściowej.
- Jeśli więcej niż jeden wiersz jest zgodny z wartością odniesienia, pierwsze dopasowanie jest wartością wyjściową.
- Jeśli nie zostanie znalezione dopasowanie, wartość wyjściowa może mieć wartość null lub integracja może powodować błędy.
-
Przestroga :For the cross-reference tables that you are customizing, make sure that Use Default is not selected in Process Properties > {ProcessName}_CRTConfig, and that the headers are defined.
- Select Cross Reference.
- From the Cross Reference dropdown list, select PunchImportTimezoneLookup. You cannot change the name of the table.
- To allow the tables to be downloaded when you run the integration, select Override.
-
Wybierz Uchyl, aby:
- Pobrać tabele podczas uruchamiania integracji
- Edytować komórki tabeli w Rozszerzeniach
(Optional)
Mapa danych tłumaczy strukturę danych z formatu źródłowego na format docelowy. Przykłady: Zamapuj „PersonID” w źródle na „Person ID” w miejscu docelowym lub „LastName” na „Last Name”.
Każdy pakiet integracji ma domyślną mapę danych. Edytowanie domyślnej mapy ogranicza się do dodawania pól, zmiany mapowań lub wstawiania funkcji. Wszelkie zmiany uchylają poprzednie wartości. Jeśli wstępnie zdefiniowane pola nie odpowiadają Twoim wymaganiom, użyj domyślnej mapy jako przewodnika podczas tworzenia niestandardowej mapy danych.
Known issues
- The timecard collects punches from schedules which interfere with punch imports. Before importing punches, delete the schedules for the targeted employees and time periods.
- The timecard does not import break rule overrides, and these overrides break the timecard.
- Bad paycode IDs incorrectly trigger a system error rather than an API error.
- You cannot delete the first punch of a pair because it becomes a purple in-punch. Comments that are attached to these punches are not imported.
- A duplicate punch error incorrectly triggers a "duplicate comments not allowed” error.
Select a data map
- Select Data Maps.
-
From the Data Map dropdown list, select one of the following:
- DualPunchesPCECSV—DualPunchesPCECSV
- PunchCSV—PunchCSV
-
Wybierz
, aby rozwinąć lub
, aby zwinąć poziomy.Aby rozwinąć wszystkie poziomy, kliknij prawym przyciskiem myszy ikonę zielonych pól
. Wybierz Rozwiń wszystkoWiersze pokazują powiązania między polami w źródle (lewa strona), wszystkimi funkcjami pośrednimi i miejscem docelowym (prawa strona).
-
(Optional)
Przestroga :The default mappings are developed and tested based on best practices. If you make changes, you may get unexpected results. Modify and test carefully.
- Change mappings — When you customize a default data map, you can add fields only to the end of the map.
You can select and drag to change the links between the source (left column), function (middle column), and destination (right column) items. A single source field can link to multiple destination fields, but a destination field can link to only one source field.
- Transform the data — A map can include intermediate functions that transform the data. Examples: Perform mathematical calculations on the values or get values from a cross-reference table.
Uwaga: To override a field — for example because you cannot delete it from a default map — insert a function that has a null output.
- In Function, kliknij dotknij the plus button
to add an intermediate function.
- From Category, select a category of functions:
String — Trim, add to, concatenate, replace, remove, split, or change the case of text.
Przestroga : Do not use special characters such as angle brackets (< or >) in data in cross-reference tables, data maps, and input files. These characters can make the integration fail.
Numeric — Perform mathematical calculations on the data.
Date — Change the format or get the current date.
Lookup — Get data from a cross-reference table (CRT), document cache, SQL query, or define a key-value change.
Connector — Call a value from a connector to an application or data source.
Custom Scripting — Transform data by way of Groovy or JavaScript code.
Properties — Get or set process or document properties.
- Select the function from the list in the selected category.
- Kliknij Dotknij OK.
- If prompted in Configure Defaults, enter the relevant values. Select a Caching. Kliknij Dotknij OK.
- Select and drag from a source field to an input of the function.
- Select and drag from the output of the function to a destination field.
- Repeat to add another function.
- In Function, kliknij dotknij the plus button
- Change mappings — When you customize a default data map, you can add fields only to the end of the map.
- When you finish, kliknij dotknij OK.
This section provides detailed information to help you to assess whether this integration meets your business needs.
Punch integrations must ensure that incoming punches are displayed and interpreted correctly in the timecard as In, Out, Type, or Missing. The pay rules and schedules that are assigned to the employees distribute the durations to the right accounts and paycodes.
All imports are bulk because the source file lists many employees each with multiple punches.
This integration pack contains the following integrations:
- Punches only:
- Punch with employee ID, punch date and time
- Punch with override type
- Punch with the override type derived from the relationship of the punch to other punches or the day divide
- Punch with the override type derived from the account transfer of the punch
- Punches that are on the same row of the source file and that must be transformed into one row for each punch
- Punches with paycode edits:
- Non-canceling paycode edits
- Labor account transfers
- Work rule transfers
- Comments and notes
- Time zone, daylight savings
- Update existing punches with new attributes
- Filter out duplicate punches
Approaches to punch imports
-
Hands Off
Only the source file provides the punches. Upon import, the timecard sequences the punches based on date and time. However, interpretation and display of the punches is based on the pay rule and schedule.
If a punch is missing, the interpretation can be incorrect. Example:
This set of punches are interpreted as In Out In Out:
21003, 5/3/2016, 07:00
21003, 5/3/2016, 18:00,3100
21003, 5/3/2016, 19:00
21003, 5/3/2016, 21:00
A Missed Out Limit Rule of 10 Hours results in the following interpretation:
Example punch imports Date In Out Tues 5/03 7:00 am missing Tues 5/03 6:00 pm 7:00 pm Tues 5/03 9:00 pm missing A manager must manually override this interpretation if it is incorrect.
-
Override
Assign each punch a Type, or derive the Type from the punch sequence within each pair of punches or by the punch's relationship to the day divide or whether the punch carries an account transfer.
Punch override types
- Break
- In punch
- New shift
- Out punch
These punches are interpreted as follows:
21003, 5/3/2016, 07:00, In
21003, 5/3/2016, 18:00, Out
21003, 5/3/2016, 19:00, In
21003, 5/3/2016, 21:00, Out
| Date | In | Out |
|---|---|---|
| Tues 5/03 | 7:00 am | 6:00 pm |
| Tues 5/03 | 7:00 pm | 9:00 pm |
Updates
When punches from the source file are already in the timecard, perhaps from a previous import, from a data collection system, or manually added, the API generates errors for the duplicate punch records.
Updates of existing punches may be needed if the new versions have an added account transfer, comment, or other attribute.
To suppress the errors, integrations can identify and delete the duplicate punches from the timecard then import them again from source, or exclude the duplicate punches in the source file. First, the integration must retrieve, cache, and look up the existing punches.
Validation
Punch imports are validated to make sure that:
- The employee is configured.
- The punch contains both a date and a time.
- The date of the punch is on or after the employee's current active status date.
- Attributes of the punch, such as a business structure account transfer, a work rule transfer, a comment, or a time zone, are in the relevant data dictionaries.
Requests to the integration must be in JSON and have the following sections:
- Parameters: To pass from the source
- Data: For the integration to process